1
0
Fork 0

update `apache2` config

urosm 2024-02-17 21:45:10 +01:00
parent 039f53c2e5
commit a590e359af
4 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,6 @@
<VirtualHost *:80>
ServerName bavbavhaus.localhost
DocumentRoot /home/urosm/public_html/bavbavhaus.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

View File

@ -0,0 +1,11 @@
<VirtualHost *:80>
ServerName kontrakurs.localhost
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>

View File

@ -0,0 +1,21 @@
<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>

View File

@ -0,0 +1,4 @@
<VirtualHost *:80>
ServerName mail.kontrakurs.org
DocumentRoot /var/www/html/mail.kontrakurs.org
</VirtualHost>