Last active
December 9, 2015 20:01
-
-
Save chalasr/06898e549750c4e81cab to your computer and use it in GitHub Desktop.
Apache2 VHOST example for sportroops local environment (dev)
This file contains 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 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> |
This file contains 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
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 :
Then, browse
http://localhost:8000
.