Advertisement
edems96

qpa.sch apache2.conf

Mar 9th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.09 KB | None | 0 0
  1. <Directory /var/www/qpa.sch/public>
  2.     Options Indexes FollowSymLinks MultiViews
  3.     AllowOverride All
  4.     Order allow,deny
  5.     allow from all
  6.     Require all granted
  7. </Directory>
  8.  
  9. <VirtualHost *:80>
  10.     ServerName qpa.sch
  11.    
  12.     RewriteEngine On
  13.     RewriteCond %{HTTPS} off
  14.     RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  15.  
  16.     ServerAdmin webmaster@localhost
  17.  
  18.     ErrorLog ${APACHE_LOG_DIR}/qpa.sch-error.log
  19.     CustomLog ${APACHE_LOG_DIR}/qpa.sch-access.log combined
  20. </VirtualHost>
  21.  
  22. <ifModule mod_ssl.c>
  23.     <VirtualHost _default_:443>
  24.         ServerName qpa.sch
  25.         ServerAdmin adamtorok@sch.bme.hu
  26.  
  27.         DocumentRoot /var/www/qpa.sch/public
  28.  
  29.         ErrorLog ${APACHE_LOG_DIR}/qpa.sch-ssl-error.log
  30.         CustomLog ${APACHE_LOG_DIR}/qpa.sch-ssl-access.log combined
  31.  
  32.         SSLEngine on
  33.  
  34.         SSLCertificateFile  /etc/apache2/ssl/qpa.sch.crt
  35.         SSLCertificateKeyFile /etc/apache2/ssl/qpa.sch.key
  36.        
  37.         <FilesMatch "\.(cgi|shtml|phtml|php)$">
  38.                 SSLOptions +StdEnvVars
  39.         </FilesMatch>
  40.         <Directory /usr/lib/cgi-bin>
  41.                 SSLOptions +StdEnvVars
  42.         </Directory>
  43.     </VirtualHost>
  44. </IfModule>
  45.  
  46. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement