Created
March 7, 2014 14:15
-
-
Save jlaso/9412228 to your computer and use it in GitHub Desktop.
symfony2 apache virtualhost configuration
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 project-sf2.dev | |
ServerAlias www.project-sf2.dev | |
DirectoryIndex app.php | |
DocumentRoot "~/projects/project-sf2.dev/web" | |
ErrorLog "~/logs/project-sf2_error.log" | |
CustomLog "~/logs/project-sf2_access.log" common | |
<Directory "~/projects/project-sf2.dev/web"> | |
Options Indexes FollowSymLinks | |
AllowOverride None | |
Order allow,deny | |
Allow from all | |
<IfModule mod_rewrite.c> | |
Options -MultiViews | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ app.php [QSA,L] | |
</IfModule> | |
</Directory> | |
KeepAlive On | |
MaxKeepAliveRequests 200 | |
KeepAliveTimeout 5 | |
AddOutputFilterByType DEFLATE text/css text/plain text/html application/xhtml+xml text/xml application/xml | |
<IfModule mod_headers.c> | |
Header append Vary User-Agent env=!dont-vary | |
ExpiresActive On | |
ExpiresDefault "now plus 1 week" | |
ExpiresByType image/x-icon "now plus 1 month" | |
ExpiresByType image/gif "now plus 1 month" | |
ExpiresByType image/png "now plus 1 month" | |
ExpiresByType image/jpeg "now plus 1 month" | |
</IfModule> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment