Created
January 16, 2014 04:56
-
-
Save rmzamora/8450000 to your computer and use it in GitHub Desktop.
Apache vhost for symfony2 apps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName www.domain.com.localhost | |
ServerAlias domain.com.localhost | |
ServerAdmin webmaster@localhost | |
DocumentRoot /home/user/www/project/web | |
<Directory /home/user/www/project/web/> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride None | |
Order allow,deny | |
allow from all | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ /app.php [QSA,L] | |
</IfModule> | |
</Directory> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment