mirror of
https://github.com/danog/php.git
synced 2024-11-27 12:24:58 +01:00
58 lines
1.2 KiB
ApacheConf
58 lines
1.2 KiB
ApacheConf
|
# see http://sources.debian.net/src/apache2/2.4.10-1/debian/config-dir/apache2.conf
|
||
|
|
||
|
Mutex file:/var/lock/apache2 default
|
||
|
PidFile /var/run/apache2/apache2.pid
|
||
|
Timeout 300
|
||
|
KeepAlive On
|
||
|
MaxKeepAliveRequests 100
|
||
|
KeepAliveTimeout 5
|
||
|
User www-data
|
||
|
Group www-data
|
||
|
HostnameLookups Off
|
||
|
ErrorLog /proc/self/fd/2
|
||
|
LogLevel warn
|
||
|
|
||
|
IncludeOptional mods-enabled/*.load
|
||
|
IncludeOptional mods-enabled/*.conf
|
||
|
|
||
|
# ports.conf
|
||
|
Listen 80
|
||
|
<IfModule ssl_module>
|
||
|
Listen 443
|
||
|
</IfModule>
|
||
|
<IfModule mod_gnutls.c>
|
||
|
Listen 443
|
||
|
</IfModule>
|
||
|
|
||
|
<Directory />
|
||
|
Options FollowSymLinks
|
||
|
AllowOverride None
|
||
|
Require all denied
|
||
|
</Directory>
|
||
|
|
||
|
<Directory /var/www/>
|
||
|
Options Indexes FollowSymLinks
|
||
|
AllowOverride All
|
||
|
Require all granted
|
||
|
</Directory>
|
||
|
|
||
|
AccessFileName .htaccess
|
||
|
<FilesMatch "^\.ht">
|
||
|
Require all denied
|
||
|
</FilesMatch>
|
||
|
|
||
|
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
|
||
|
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
||
|
LogFormat "%h %l %u %t \"%r\" %>s %O" common
|
||
|
LogFormat "%{Referer}i -> %U" referer
|
||
|
LogFormat "%{User-agent}i" agent
|
||
|
|
||
|
CustomLog /proc/self/fd/1 combined
|
||
|
|
||
|
<FilesMatch \.php$>
|
||
|
SetHandler application/x-httpd-php
|
||
|
</FilesMatch>
|
||
|
DirectoryIndex index.php
|
||
|
|
||
|
DocumentRoot /var/www/html
|