Symfony on MAMP - Apache VirtualHost


/ Published in: Apache
Save to your folder(s)

Basic starting point for an Apache VirtualHost that points to a Symfony project being developed on MAMP


Copy this code and paste it in your HTML
  1. <VirtualHost myapp.example.com:8888>
  2. ServerName myapp.example.com
  3. DocumentRoot "/Applications/MAMP/htdocs/symfony/myproject/web"
  4. DirectoryIndex index.php
  5. Alias /sf /Applications/MAMP/htdocs/symfony/1.0/data/web/sf
  6. <Directory "/Applications/MAMP/htdocs/symfony/1.0/data/web/sf">
  7. AllowOverride All
  8. Allow from All
  9. </Directory>
  10. <Directory "/Applications/MAMP/htdocs/symfony/myproject/web">
  11. AllowOverride All
  12. Allow from All
  13. </Directory>
  14. </VirtualHost>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.