Skip to content

Instantly share code, notes, and snippets.

@chalasr
Last active December 9, 2015 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chalasr/06898e549750c4e81cab to your computer and use it in GitHub Desktop.
Save chalasr/06898e549750c4e81cab to your computer and use it in GitHub Desktop.
Apache2 VHOST example for sportroops local environment (dev)
<VirtualHost *:80>
ServerName sportroops.dev
ServerAlias api.sportroops.dev
DocumentRoot /var/www/html/sutunam/sportroops/web/
<Directory "/var/www/html/sutunam/sportroops/web">
AllowOverride All
Order allow,deny
Allow from all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /app_dev.php [QSA,L]
</IfModule>
</Directory>
</VirtualHost>
# app/config/parameters.yml
parameters:
database_host: 127.0.0.1
database_port: null
database_name: sportroops
database_user: root
database_password: root
mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: null
mailer_password: null
secret: YourSecretToken
domain: sportroops.dev
@chalasr
Copy link
Author

chalasr commented Dec 9, 2015

If you work on back-office, you can use php built-in server by running php app/console server:run .
Set your domain as the following :

# app/config/parameters.yml
parameters:
    # ...
    domain: localhost

Then, browse http://localhost:8000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment