Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. NameVirtualHost *:80
  2.  
  3. <VirtualHost *:80>
  4. ServerName test
  5.  
  6. DocumentRoot /var/www/html/test/public
  7. <Directory /var/www/html/test/public>
  8. AllowOverride None
  9. Require all granted
  10. Allow from All
  11.  
  12. <IfModule mod_rewrite.c>
  13. Options -MultiViews
  14. RewriteEngine On
  15. RewriteCond %{REQUEST_FILENAME} !-f
  16. RewriteRule ^(.*)$ index.php [QSA,L]
  17. </IfModule>
  18. </Directory>
  19.  
  20. <Directory /var/www/html/test/public/bundles>
  21. <IfModule mod_rewrite.c>
  22. RewriteEngine Off
  23. </IfModule>
  24. </Directory>
  25. ErrorLog /var/log/apache2/test.log
  26. CustomLog /var/log/apache2/test.log combined
  27.  
  28. # optionally set the value of the environment variables used in the application
  29. #SetEnv APP_ENV prod
  30. #SetEnv APP_SECRET <app-secret-id>
  31. #SetEnv DATABASE_URL "mysql://root:@localhost/symfony
  32. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement