Created
January 23, 2014 08:16
-
-
Save guilu/8574820 to your computer and use it in GitHub Desktop.
configuracion de un host virtual en apache, este fichero debe estar incluido en la configuracion global de apache (httpd.conf)
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
#-------------------------------------------------------- proyecto Symfony2 | |
#-------------------------------------------------------- sustituir [ruta_hasta_proyecto] y [nombre_proyecto] por sus valores correspondientes | |
<VirtualHost *:80> | |
ServerName [nombre_proyecto].local | |
ServerAlias www.[nombre_proyecto] | |
DocumentRoot "[ruta_hasta_proyecto]/[nombre_proyecto].local/web" | |
DirectoryIndex app.php | |
<Directory "/Users/diegobarrioh/www/[nombre_proyecto].local/web"> | |
AllowOverride None | |
Allow from All | |
<IfModule mod_rewrite.c> | |
Options -MultiViews | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ app.php [QSA,L] | |
</IfModule> | |
</Directory> | |
CustomLog /var/log/apache2/[nombre_proyecto]-access.log combined | |
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