Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. VirtualHost *:80>
  2. ServerName example.com
  3. ServerAdmin admin@example.com
  4. WSGIScriptAlias / /var/www/FlaskApp/flaskapp.wsgi
  5. <Directory /var/www/FlaskApp/FlaskApp/>
  6. Order allow,deny
  7. Allow from all
  8. </Directory>
  9. Alias /static /var/www/FlaskApp/FlaskApp/static
  10. <Directory /var/www/FlaskApp/FlaskApp/static/>
  11. Order allow,deny
  12. Allow from all
  13. </Directory>
  14. ErrorLog ${APACHE_LOG_DIR}/error.log
  15. LogLevel warn
  16. CustomLog ${APACHE_LOG_DIR}/access.log combined
  17. </VirtualHost>
  18.  
  19. <VirtualHost *:5000>
  20. ServerName example.com
  21. <Directory /var/www/FlaskApp/FlaskApp/>
  22. Order allow,deny
  23. Allow from all
  24. </Directory>
  25.  
  26.  
  27. SSLEngine on
  28. SSLCertificateFile /etc/apache2/ssl/STAR_file.crt
  29. SSLCertificateKeyFile /etc/apache2/ssl/STAR_file.key
  30. SSLCertificateChainFile /etc/apache2/ssl/STAR_file_bundle.pem
  31. <Location />
  32. SSLRequireSSL On
  33. SSLVerifyClient optional
  34. SSLVerifyDepth 1
  35. SSLOptions +StdEnvVars +StrictRequire
  36. </Location>
  37. ErrorLog ${APACHE_LOG_DIR}/sslerror.log
  38. LogLevel warn
  39. CustomLog ${APACHE_LOG_DIR}/sslaccess.log combined
  40. <FilesMatch ".(cgi|shtml|phtml|php)$">
  41. SSLOptions +StdEnvVars
  42. </FilesMatch>
  43. <Directory /usr/lib/cgi-bin>
  44. SSLOptions +StdEnvVars
  45. </Directory>
  46.  
  47. BrowserMatch "MSIE [2-6]"
  48. nokeepalive ssl-unclean-shutdown
  49. downgrade-1.0 force-response-1.0
  50. # MSIE 7 and newer should be able to use keepalive
  51. BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
  52. </VirtualHost>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement