瀏覽代碼

Eliminate need for access_compat module in Apache

The directives provided by `mod_access_compat` are deprecated.  This
patch eliminates references to them.
Mike Ashley 8 年之前
父節點
當前提交
97b11e3953

+ 1
- 2
roles/git/templates/etc_apache2_sites-available_cgit.j2 查看文件

12
     <Directory "/var/www/htdocs/cgit/">
12
     <Directory "/var/www/htdocs/cgit/">
13
         AllowOverride None
13
         AllowOverride None
14
         Options +ExecCGI
14
         Options +ExecCGI
15
-        Order allow,deny
16
-        Allow from all
15
+        Require all granted
17
     </Directory>
16
     </Directory>
18
 
17
 
19
     Alias /cgit.png         /var/www/htdocs/cgit/cgit.png
18
     Alias /cgit.png         /var/www/htdocs/cgit/cgit.png

+ 1
- 3
roles/monitoring/files/etc_apache2_sites-available_00-status.conf 查看文件

3
 <VirtualHost *:80>
3
 <VirtualHost *:80>
4
   <Location />
4
   <Location />
5
     SetHandler server-status
5
     SetHandler server-status
6
-    Order deny,allow
7
-    Deny from all
8
-    Allow from 127.0.0.1
6
+    Require ip 127.0.0.1
9
   </Location>
7
   </Location>
10
 </VirtualHost>
8
 </VirtualHost>

+ 1
- 2
roles/news/templates/etc_apache2_sites-available_selfoss.j2 查看文件

16
 
16
 
17
     <Directory /var/www/selfoss>
17
     <Directory /var/www/selfoss>
18
         AllowOverride All
18
         AllowOverride All
19
-        Order allow,deny
20
-        allow from all
19
+        Require all granted
21
         DirectoryIndex index.php
20
         DirectoryIndex index.php
22
     </Directory>
21
     </Directory>
23
 </VirtualHost>
22
 </VirtualHost>

+ 1
- 2
roles/readlater/templates/etc_apache2_sites-available_wallabag.j2 查看文件

16
 
16
 
17
     <Directory /var/www/wallabag>
17
     <Directory /var/www/wallabag>
18
         AllowOverride All
18
         AllowOverride All
19
-        Order allow,deny
20
-        allow from all
19
+        Require all granted
21
         DirectoryIndex index.php
20
         DirectoryIndex index.php
22
     </Directory>
21
     </Directory>
23
 </VirtualHost>
22
 </VirtualHost>

Loading…
取消
儲存