Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. /**
  2. * @Route("/", name="landingPage")
  3. */
  4. public function loginAction(Request $request)
  5. {
  6. return $this->redirectToRoute('mainPage', array(), 301);
  7. }
  8.  
  9. <VirtualHost *:80>
  10. ServerAdmin webmaster@localhost
  11. DocumentRoot /var/www/html/my-directory/web/
  12.  
  13. ErrorLog ${APACHE_LOG_DIR}/error.log
  14. CustomLog ${APACHE_LOG_DIR}/access.log combined
  15. </VirtualHost>
  16.  
  17. <IfModule mod_ssl.c>
  18. <VirtualHost _default_:443>
  19. ServerAdmin webmaster@localhost
  20.  
  21. DocumentRoot /var/www/html/my-directory/web
  22.  
  23. ErrorLog ${APACHE_LOG_DIR}/error.log
  24. CustomLog ${APACHE_LOG_DIR}/access.log combine
  25.  
  26. SSLEngine on
  27. SSLCertificateFile /etc/ssl/certs/www.my-url.com.pem
  28. SSLCertificateKeyFile /etc/ssl/private/www.my-url.com.key
  29.  
  30. <FilesMatch ".(cgi|shtml|phtml|php)$">
  31. SSLOptions +StdEnvVars
  32. </FilesMatch>
  33. <Directory /usr/lib/cgi-bin>
  34. SSLOptions +StdEnvVars
  35. </Directory>
  36.  
  37. BrowserMatch "MSIE [2-6]"
  38. nokeepalive ssl-unclean-shutdown
  39. downgrade-1.0 force-response-1.0
  40. BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
  41.  
  42. </VirtualHost>
  43.  
  44. access_control:
  45. - { path: ^/admin/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
  46. - { path: ^/admin, roles: ROLE_ADMIN }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement