Skip to content
Xavier Serrat Bordas edited this page Mar 13, 2015 · 3 revisions

Environments that support: DEV and PROD

To enjoy all the functionalities of the development environment we must create two virtualhosts as follow:

  • Development Environment:
<VirtualHost *:80>
        DocumentRoot /www/framework/public
        ServerName framework.dev
        ServerAlias *.framework.dev

        RewriteEngine On
        #Allowed media extensions (includes .txt files for robots or .html, e.g: Google hosted HTMLs):
        RewriteCond %{REQUEST_FILENAME} !^(.+)\.(js|css|gif|png|jpg|swf|ico|txt|html)$
        RewriteRule ^/(.+) /index_dev.php [QSA,L]
</VirtualHost>
  • Production Environment:
<VirtualHost *:80>
        DocumentRoot /www/framework/public
        ServerName framework.prod
        ServerAlias *.framework.prod
          
        RewriteEngine On
        #Allowed media extensions (includes .txt files for robots or .html, e.g: Google hosted HTMLs):
        RewriteCond %{REQUEST_FILENAME} !^(.+)\.(js|css|gif|png|jpg|swf|ico|txt|html)$
        RewriteRule ^/(.+) /index.php [QSA,L]
</VirtualHost>
Clone this wiki locally