Last active
February 21, 2017 10:00
-
-
Save esmiz/83c7a6895f4d5383a7216bce27e26221 to your computer and use it in GitHub Desktop.
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> | |
| DocumentRoot /home/<project>/www/current/web | |
| ServerName www.<project>.com | |
| ServerAlias preview..<project>.com | |
| DirectoryIndex app.php | |
| ErrorLog /var/log/apache2/<project>-error.log | |
| LogLevel warn | |
| CustomLog /var/log/apache2/<project>-access.log combined | |
| <Directory /home/<project>/www/current/web> | |
| AllowOverride All | |
| Allow from All | |
| RewriteEngine On | |
| RewriteCond %{HTTP_HOST} !^www\. | |
| RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] | |
| Rewritecond %{REQUEST_URI} !^/css/.* | |
| Rewritecond %{REQUEST_URI} !^/js/.* | |
| Rewritecond %{REQUEST_URI} !^/images/.* | |
| Rewritecond %{REQUEST_URI} !^/mobile_images/.* | |
| Rewritecond %{REQUEST_URI} !^/uploads/.* | |
| Rewritecond %{REQUEST_URI} !^/downloads/.* | |
| Rewritecond %{REQUEST_URI} !^/fonts/.* | |
| Rewritecond %{REQUEST_URI} !^/mobile_fonts/.* | |
| Rewritecond %{REQUEST_URI} !^/bundles/.* | |
| RewriteRule ^(.*)$ app.php [QSA,L] | |
| </Directory> | |
| php_value error_log /var/log/php/php_<project>.log | |
| </VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment