22 lines
702 B
Plaintext
22 lines
702 B
Plaintext
|
<VirtualHost *:80>
|
||
|
ServerName kontrakurs.org
|
||
|
ServerAlias www.kontrakurs.org
|
||
|
RewriteEngine on
|
||
|
RewriteCond %{SERVER_NAME} =www.kontrakurs.org [OR]
|
||
|
RewriteCond %{SERVER_NAME} =kontrakurs.org
|
||
|
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
||
|
</VirtualHost>
|
||
|
|
||
|
<VirtualHost *:443>
|
||
|
ServerName kontrakurs.org
|
||
|
ServerAlias www.kontrakurs.org
|
||
|
DocumentRoot /home/urosm/public_html/kontrakurs.org
|
||
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||
|
<Directory "/home/urosm/public_html/kontrakurs.org">
|
||
|
AddHandler cgi-script .cgi
|
||
|
Options +ExecCGI
|
||
|
</Directory>
|
||
|
ErrorDocument 404 /home/urosm/public_html/kontrakurs.org/ikiwiki.cgi
|
||
|
</VirtualHost>
|