You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

40 line
988 B

  1. LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
  2. <VirtualHost *:80>
  3. ServerName localhost
  4. DocumentRoot /app
  5. <Directory "/app">
  6. Options Indexes FollowSymLinks Includes execCGI
  7. AllowOverride All
  8. Require all granted
  9. allow from all
  10. </Directory>
  11. ErrorLog ${APACHE_LOG_DIR}/error.log
  12. CustomLog ${APACHE_LOG_DIR}/access.log combined
  13. </VirtualHost>
  14. <VirtualHost _default_:443>
  15. DocumentRoot "/app"
  16. ServerName localhost:443
  17. ErrorLog ${APACHE_LOG_DIR}/error.log
  18. CustomLog ${APACHE_LOG_DIR}/access.log combined
  19. SSLEngine on
  20. SSLCertificateFile "/etc/apache2/sites-available/ssl/localhost.crt"
  21. SSLCertificateKeyFile "/etc/apache2/sites-available/ssl/localhost.key"
  22. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  23. SSLOptions +StdEnvVars
  24. </FilesMatch>
  25. <Directory "/app">
  26. Options Indexes FollowSymLinks Includes execCGI
  27. AllowOverride All
  28. Require all granted
  29. </Directory>
  30. </VirtualHost>