Skip to content

Instantly share code, notes, and snippets.

@mykiwi
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mykiwi/a959ad028d9b9a0d701f to your computer and use it in GitHub Desktop.
Save mykiwi/a959ad028d9b9a0d701f to your computer and use it in GitHub Desktop.
NameVirtualHost *:80
<VirtualHost *:80>
ServerName {{ hostname }}
DocumentRoot {{ application.root_path }}/web
DirectoryIndex app.php
RewriteEngine off
<Location />
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /app.php [NC,L]
</Location>
<Directory "{{ application.root_path }}/web">
Allow from all
AllowOverride None
</Directory>
</VirtualHost>
NameVirtualHost *:80
<VirtualHost *:80>
ServerName {{ hostname }}
DocumentRoot {{ application.root_path }}/web
DirectoryIndex app.php
RewriteEngine off
<Location />
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /app.php [NC,L]
</Location>
<Directory "{{ application.root_path }}/web">
Require all granted
AllowOverride None
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment