Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Directory /var/www/qpa.sch/public>
- Options Indexes FollowSymLinks MultiViews
- AllowOverride All
- Order allow,deny
- allow from all
- Require all granted
- </Directory>
- <VirtualHost *:80>
- ServerName qpa.sch
- RewriteEngine On
- RewriteCond %{HTTPS} off
- RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
- ServerAdmin webmaster@localhost
- ErrorLog ${APACHE_LOG_DIR}/qpa.sch-error.log
- CustomLog ${APACHE_LOG_DIR}/qpa.sch-access.log combined
- </VirtualHost>
- <ifModule mod_ssl.c>
- <VirtualHost _default_:443>
- ServerName qpa.sch
- ServerAdmin adamtorok@sch.bme.hu
- DocumentRoot /var/www/qpa.sch/public
- ErrorLog ${APACHE_LOG_DIR}/qpa.sch-ssl-error.log
- CustomLog ${APACHE_LOG_DIR}/qpa.sch-ssl-access.log combined
- SSLEngine on
- SSLCertificateFile /etc/apache2/ssl/qpa.sch.crt
- SSLCertificateKeyFile /etc/apache2/ssl/qpa.sch.key
- <FilesMatch "\.(cgi|shtml|phtml|php)$">
- SSLOptions +StdEnvVars
- </FilesMatch>
- <Directory /usr/lib/cgi-bin>
- SSLOptions +StdEnvVars
- </Directory>
- </VirtualHost>
- </IfModule>
- # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement