Browse Source

fix update from apache2 30.01.25:20.56

root 2 months ago
parent
commit
e64894442c
3 changed files with 4 additions and 6 deletions
  1. 2 3
      docs/apache2_examples/examples.conf
  2. 2 2
      src/avto4certbot.conf
  3. 0 1
      src/avto4certbot.sh

+ 2 - 3
docs/apache2_examples/examples.conf

@@ -1,10 +1,9 @@
1 1
 <VirtualHost *:8080>
2 2
 ServerName example.com
3 3
 ServerAlias www.example.com
4
-DocumentRoot /home/www/plug
4
+DocumentRoot /var/www/plug
5 5
 
6
-
7
-<Directory /home/www/plug>
6
+<Directory /var/www/plug>
8 7
 Options -Indexes +FollowSymLinks +MultiViews
9 8
 AllowOverride All
10 9
 Require all granted

+ 2 - 2
src/avto4certbot.conf

@@ -29,8 +29,8 @@ apache2_service="apache2";
29 29
 path_ssl="/etc/ssl";
30 30
 path_cert="/etc/letsencrypt/live";
31 31
 
32
-## temp directory for create request
33
-tmp_dir="/tmp/certbot";
32
+## temporary directory to create the request - Warning! for apache2 I recommend using the path: /var/www...
33
+tmp_dir="/var/www/certbot";
34 34
 
35 35
 ## log file
36 36
 log_file="/var/log/syslog";

+ 0 - 1
src/avto4certbot.sh

@@ -252,7 +252,6 @@ for ((xd=0; xd != ${#domains[@]}; xd++)); do
252 252
   site_port="${site_data[2]}";
253 253
   ## apache2 config
254 254
   if [[ "$opt" != "" ]] && [[ $opt != "nginx" ]] && [[ "$opt" == "apache" ]]; then
255
-    ## добавить проверку режима apache2 и путь для активации конфигурации
256 255
     echo >$conf_dir/$site_name.conf;
257 256
     echo -e '<VirtualHost *:'"$site_port"'>' >>$conf_dir/$site_name.conf;
258 257
     echo -e '  ServerName '"$site_name"'' >>$conf_dir/$site_name.conf;