DocumentRoot /srv/public Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted Order allow,deny allow from all AddType application/x-httpd-php .php Options +MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] 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