Symfony2 installation version2.6 on amazon AWS Ubuntu OS

VirtualHost for the DEV and PROD environement: Please read the comments (#) and adapt to your system.

############DEV env################

##change to your web path####
DocumentRoot /srv/www/tests/symfony2.6/htdocs/web
##change to your web path####

Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
# add your .htaccess data here####
##


DirectoryIndex app_dev.php


RewriteEngine On
RewriteRule ^/bundles/ - [L]
RewriteRule ^/css/.*\.css - [L]
RewriteRule ^/js/.*\.js - [L]
RewriteRule ^/robots\.txt  - [L]
RewriteRule ^/config\.php  - [L]

RewriteRule .* /app_dev.php


LogLevel error
##change to your logs path####
ErrorLog /srv/www/tests/symfony2.6/logs/error.log
CustomLog /srv/www/tests/symfony2.6/logs/access.log combined
##change to your (sub)domain ####
ServerName dev.sym26.local.de


############Prod env################

##change to your web path####

Options FollowSymLinks
AllowOverride None



DirectoryIndex app.php


RewriteEngine On
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
# Sets the HTTP_AUTHORIZATION header removed by apache
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^app\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [L]
RewriteRule ^/bundles/ - [L]
RewriteRule ^/css/.*\.css - [L]
RewriteRule ^/js/.*\.js - [L]

# Rewrite all other queries to the front controller.
RewriteRule .? %{ENV:BASE}/app.php [L]




# When mod_rewrite is not available, we instruct a temporary redirect of
# the start page to the front controller explicitly so that the website
# and the generated links can still be used.
RedirectMatch 302 ^/$ /app.php/
# RedirectTemp cannot be used instead


##change to your web path####
DocumentRoot /srv/www/tests/symfony2.6/htdocs/web
##change to your (sub)domain ####
ServerName prod.sym26.local.de

LogLevel    error
##change to your logs path####
ErrorLog      /srv/www/tests/symfony2.6/logs/error_prod.log
CustomLog     /srv/www/tests/symfony2.6/logs/access_prod.log combined


ModPagespeed off