folderweb/devel/apache/default.conf

21 lines
609 B
Text
Raw Normal View History

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory /var/www/html>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex disabled
# Route all requests through the router
RewriteEngine On
# Don't rewrite if it's already going to /app/
RewriteCond %{REQUEST_URI} !^/app/
RewriteRule ^(.*)$ /app/router.php [L,QSA]
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>