mirror of
https://github.com/danog/php.git
synced 2025-01-22 04:51:20 +01:00
Make the root more obvious, fix DirectoryIndex to php first
This commit is contained in:
parent
97c1d907b3
commit
c06a6485d6
@ -36,6 +36,8 @@ Listen 80
|
|||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
DocumentRoot /var/www/html
|
||||||
|
|
||||||
AccessFileName .htaccess
|
AccessFileName .htaccess
|
||||||
<FilesMatch "^\.ht">
|
<FilesMatch "^\.ht">
|
||||||
Require all denied
|
Require all denied
|
||||||
@ -52,6 +54,9 @@ CustomLog /proc/self/fd/1 combined
|
|||||||
<FilesMatch \.php$>
|
<FilesMatch \.php$>
|
||||||
SetHandler application/x-httpd-php
|
SetHandler application/x-httpd-php
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
DirectoryIndex index.php
|
|
||||||
|
|
||||||
DocumentRoot /var/www/html
|
# Multiple DirectoryIndex directives within the same context will add
|
||||||
|
# to the list of resources to look for rather than replace
|
||||||
|
# https://httpd.apache.org/docs/current/mod/mod_dir.html#directoryindex
|
||||||
|
DirectoryIndex disabled
|
||||||
|
DirectoryIndex index.php index.html
|
||||||
|
@ -36,6 +36,8 @@ Listen 80
|
|||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
DocumentRoot /var/www/html
|
||||||
|
|
||||||
AccessFileName .htaccess
|
AccessFileName .htaccess
|
||||||
<FilesMatch "^\.ht">
|
<FilesMatch "^\.ht">
|
||||||
Require all denied
|
Require all denied
|
||||||
@ -52,6 +54,9 @@ CustomLog /proc/self/fd/1 combined
|
|||||||
<FilesMatch \.php$>
|
<FilesMatch \.php$>
|
||||||
SetHandler application/x-httpd-php
|
SetHandler application/x-httpd-php
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
DirectoryIndex index.php
|
|
||||||
|
|
||||||
DocumentRoot /var/www/html
|
# Multiple DirectoryIndex directives within the same context will add
|
||||||
|
# to the list of resources to look for rather than replace
|
||||||
|
# https://httpd.apache.org/docs/current/mod/mod_dir.html#directoryindex
|
||||||
|
DirectoryIndex disabled
|
||||||
|
DirectoryIndex index.php index.html
|
||||||
|
@ -36,6 +36,8 @@ Listen 80
|
|||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
DocumentRoot /var/www/html
|
||||||
|
|
||||||
AccessFileName .htaccess
|
AccessFileName .htaccess
|
||||||
<FilesMatch "^\.ht">
|
<FilesMatch "^\.ht">
|
||||||
Require all denied
|
Require all denied
|
||||||
@ -52,6 +54,9 @@ CustomLog /proc/self/fd/1 combined
|
|||||||
<FilesMatch \.php$>
|
<FilesMatch \.php$>
|
||||||
SetHandler application/x-httpd-php
|
SetHandler application/x-httpd-php
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
DirectoryIndex index.php
|
|
||||||
|
|
||||||
DocumentRoot /var/www/html
|
# Multiple DirectoryIndex directives within the same context will add
|
||||||
|
# to the list of resources to look for rather than replace
|
||||||
|
# https://httpd.apache.org/docs/current/mod/mod_dir.html#directoryindex
|
||||||
|
DirectoryIndex disabled
|
||||||
|
DirectoryIndex index.php index.html
|
||||||
|
@ -36,6 +36,8 @@ Listen 80
|
|||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
DocumentRoot /var/www/html
|
||||||
|
|
||||||
AccessFileName .htaccess
|
AccessFileName .htaccess
|
||||||
<FilesMatch "^\.ht">
|
<FilesMatch "^\.ht">
|
||||||
Require all denied
|
Require all denied
|
||||||
@ -52,6 +54,9 @@ CustomLog /proc/self/fd/1 combined
|
|||||||
<FilesMatch \.php$>
|
<FilesMatch \.php$>
|
||||||
SetHandler application/x-httpd-php
|
SetHandler application/x-httpd-php
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
DirectoryIndex index.php
|
|
||||||
|
|
||||||
DocumentRoot /var/www/html
|
# Multiple DirectoryIndex directives within the same context will add
|
||||||
|
# to the list of resources to look for rather than replace
|
||||||
|
# https://httpd.apache.org/docs/current/mod/mod_dir.html#directoryindex
|
||||||
|
DirectoryIndex disabled
|
||||||
|
DirectoryIndex index.php index.html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user