Created
February 25, 2012 09:12
-
-
Save DaRaFF/1907461 to your computer and use it in GitHub Desktop.
apache2 symfony2 example configs
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 nzz.lo | |
| DocumentRoot /home/daraff/eos/www/web | |
| ErrorLog ${APACHE_LOG_DIR}/www.error.log | |
| CustomLog ${APACHE_LOG_DIR}/www.access.log common | |
| <Location /> | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^(.*)$ /app_dev.php [QSA,L] | |
| </Location> | |
| </VirtualHost> | |
| <VirtualHost *:80> | |
| ServerName digital.nzz.lo | |
| DocumentRoot /home/daraff/eos/digital-version/web | |
| ErrorLog ${APACHE_LOG_DIR}/digital-version.error.log | |
| CustomLog ${APACHE_LOG_DIR}/digital-version.access.log common | |
| <Location /> | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^(.*)$ /app_dev.php [QSA,L] | |
| </Location> | |
| </VirtualHost> | |
| <VirtualHost *:80> | |
| ServerName mobile.nzz.lo | |
| DocumentRoot /home/daraff/eos/mobile/web | |
| ErrorLog ${APACHE_LOG_DIR}/mobile.error.log | |
| CustomLog ${APACHE_LOG_DIR}/mobile.access.log common | |
| <Location /> | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^(.*)$ /app_dev.php [QSA,L] | |
| </Location> | |
| </VirtualHost> | |
| <VirtualHost *:80> | |
| ServerName new-mobile.nzz.lo | |
| DocumentRoot /home/daraff/eos/new-mobile/web | |
| ErrorLog ${APACHE_LOG_DIR}/new-mobile.error.log | |
| CustomLog ${APACHE_LOG_DIR}/new-mobile.access.log common | |
| <Location /> | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^(.*)$ /app_dev.php [QSA,L] | |
| </Location> | |
| </VirtualHost> | |
| <VirtualHost *:80> | |
| ServerName browser.nzz.lo | |
| DocumentRoot /home/daraff/eos/phpcrbrowser/www | |
| ErrorLog ${APACHE_LOG_DIR}/browser.error.log | |
| CustomLog ${APACHE_LOG_DIR}/browser.access.log common | |
| <Location /> | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^(.*)$ /index.php [QSA,L] | |
| </Location> | |
| </VirtualHost> | |
| # attention! you have to call like that http://api.nzz.lo/eos/v1/article.json | |
| <VirtualHost *:80> | |
| ServerName api.nzz.lo | |
| ServerAlias api.nzz.lo image.nzz.lo image.api.nzz.lo | |
| DocumentRoot /home/daraff/eos/backend/web | |
| ErrorLog ${APACHE_LOG_DIR}/backend.error.log | |
| CustomLog ${APACHE_LOG_DIR}/backend.access.log common | |
| <Directory /home/daraff/eos/backend/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