24 lines
677 B
Plaintext
24 lines
677 B
Plaintext
<VirtualHost *:80>
|
|
DocumentRoot /srv/public
|
|
<Directory /srv/public>
|
|
Options Indexes FollowSymLinks MultiViews
|
|
AllowOverride All
|
|
Require all granted
|
|
Order allow,deny
|
|
allow from all
|
|
</Directory>
|
|
<IfModule mod_rewrite.c>
|
|
AddType application/x-httpd-php .php
|
|
Options +MultiViews
|
|
RewriteEngine On
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^([^\.]+)$ $1.php [NC,L]
|
|
</IfModule>
|
|
ErrorLog /var/log/apache2/error.log
|
|
CustomLog /var/log/apache2/access.log combined
|
|
ErrorDocument 404 /errors/404.php
|
|
ErrorDocument 500 /errors/500.php
|
|
ErrorDocument 503 /errors/503.php
|
|
</VirtualHost>
|