Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- VirtualHost *:80>
- ServerName example.com
- ServerAdmin admin@example.com
- WSGIScriptAlias / /var/www/FlaskApp/flaskapp.wsgi
- <Directory /var/www/FlaskApp/FlaskApp/>
- Order allow,deny
- Allow from all
- </Directory>
- Alias /static /var/www/FlaskApp/FlaskApp/static
- <Directory /var/www/FlaskApp/FlaskApp/static/>
- Order allow,deny
- Allow from all
- </Directory>
- ErrorLog ${APACHE_LOG_DIR}/error.log
- LogLevel warn
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- </VirtualHost>
- <VirtualHost *:5000>
- ServerName example.com
- <Directory /var/www/FlaskApp/FlaskApp/>
- Order allow,deny
- Allow from all
- </Directory>
- SSLEngine on
- SSLCertificateFile /etc/apache2/ssl/STAR_file.crt
- SSLCertificateKeyFile /etc/apache2/ssl/STAR_file.key
- SSLCertificateChainFile /etc/apache2/ssl/STAR_file_bundle.pem
- <Location />
- SSLRequireSSL On
- SSLVerifyClient optional
- SSLVerifyDepth 1
- SSLOptions +StdEnvVars +StrictRequire
- </Location>
- ErrorLog ${APACHE_LOG_DIR}/sslerror.log
- LogLevel warn
- CustomLog ${APACHE_LOG_DIR}/sslaccess.log combined
- <FilesMatch ".(cgi|shtml|phtml|php)$">
- SSLOptions +StdEnvVars
- </FilesMatch>
- <Directory /usr/lib/cgi-bin>
- SSLOptions +StdEnvVars
- </Directory>
- BrowserMatch "MSIE [2-6]"
- nokeepalive ssl-unclean-shutdown
- downgrade-1.0 force-response-1.0
- # MSIE 7 and newer should be able to use keepalive
- BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
- </VirtualHost>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement