# <VirtualHost 10.22.22.50:80 192.168.5.38:80>
<VirtualHost *:80>
# 10.22.22.50 is the address of the server on the SES VLAN
# 192.168.5.38 is the address of the server on the standard LAN
ServerAdmin webmaster@enameling.com
ServerName enameling.com
ServerAlias www.enameling.com
ServerAlias enameling
ServerAlias enameling.kihakkt.jetcafe.org
ServerAlias 162.191.242.49
DocumentRoot /home/ses/WWW/sesv2/
<If "req('Host') != 192.168.5.38">
Deny from all
</If>
<If "req('HTTP_X_FORWARDED_HOST') != 192.168.5.38">
Deny from all
</If>
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/ses/WWW/sesv2/>
Options FollowSymLinks MultiViews
AllowOverride None
Require all granted
# Order allow,deny
# allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options -ExecCGI -MultiViews +SymLinksIfOwnerMatch
<RequireAny>
Require ip 127.0.0.0/255.0.0.0
Require ip 10.8.1.0/255.255.255.0
Require ip 10.8.2.0/255.255.255.0
Require ip 192.168.0.0/255.255.0.0
Require ip 162.191.242.49/255.255.0.0
Require ip ::1/128
</RequireAny>
# Order allow,deny
# allow from all
</Directory>
RewriteEngine on
RewriteCond %{SERVER_NAME} =enameling [OR]
RewriteCond %{SERVER_NAME} =enameling.com [OR]
RewriteCond %{SERVER_NAME} =enameling.kihakkt.jetcafe.org [OR]
RewriteCond %{SERVER_NAME} =www.enameling.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>