100 lines
3 KiB
Text
100 lines
3 KiB
Text
<VirtualHost 172.16.5.39:80 _default_:80>
|
|
ServerName void.coventry
|
|
|
|
SetEnvIf REQUEST_URI ^/robots\.txt$ no_log
|
|
SetEnvIf REQUEST_URI ^/favicon\.ico$ no_log
|
|
SetEnvIf REQUEST_URI ^/\.well-known/.*$ no_log
|
|
|
|
<IfModule ssl_module>
|
|
RedirectMatch permanent ^/(?!(\.well-known|httpd-errordocs)/)(.*) https://afterdark.org.uk/$2
|
|
</IfModule>
|
|
<IfModule !ssl_module>
|
|
ScriptAlias /cgi-bin /srv/www/cgi-bin
|
|
|
|
DocumentRoot /srv/www/html
|
|
|
|
# Alias /racktables /srv/www/html/racktables/wwwroot
|
|
Alias /netbox/static /opt/netbox/netbox/static
|
|
|
|
<Directory /opt/netbox/netbox/static>
|
|
Options Indexes FollowSymLinks MultiViews
|
|
AllowOverride None
|
|
Require all granted
|
|
</Directory>
|
|
|
|
<Proxy *>
|
|
Require all granted
|
|
</Proxy>
|
|
ProxyPreserveHost On
|
|
# Do NOT add backslashes to the end of the urls.
|
|
#ProxyPass /git http://127.0.0.1:9100
|
|
#ProxyPassReverse /git http://127.0.0.1:9100
|
|
|
|
#ProxyPass /terrastate http://127.0.0.1:9200
|
|
#ProxyPassReverse /terrastate http://127.0.0.1:9200
|
|
|
|
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
|
|
ProxyPassMatch ^/netbox(?!/static) http://127.0.0.1:9300
|
|
ProxyPassReverse /netbox http://127.0.0.1:9300
|
|
|
|
|
|
|
|
<IfModule userdir_module>
|
|
UserDir /data/home/*/www/html
|
|
UserDir Disabled root
|
|
</IfModule>
|
|
</IfModule>
|
|
</VirtualHost>
|
|
|
|
Listen 0.0.0.0:9097
|
|
<VirtualHost 172.16.5.39:9097>
|
|
DocumentRoot /srv/www/html/bacularis/htdocs
|
|
ServerName void.coventry
|
|
# <Directory /srv/www/html/bacularis/htdocs>
|
|
# RewriteEngine On
|
|
# RewriteCond %{REQUEST_FILENAME} !-d
|
|
# RewriteCond %{REQUEST_FILENAME} !-f
|
|
# RewriteRule ^(.*)$ https://google.co.uk/
|
|
#http://void.coventry:9097/index.php/$1
|
|
# [L]
|
|
# <IfModule mod_authz_core.c>
|
|
# Require all granted
|
|
# </IfModule>
|
|
# </Directory>
|
|
</VirtualHost>
|
|
|
|
|
|
|
|
<IfModule ssl_module>
|
|
<VirtualHost 172.16.5.39:443 [2001:470:1f1d:58::67:6]:443>
|
|
ServerName void.coventry
|
|
|
|
SSLEngine On
|
|
SSLCertificateFile /etc/certificates/afterdark.org.uk-cert.pem
|
|
SSLCertificateKeyFile /etc/certificates/afterdark.org.uk-key.pem
|
|
SSLCertificateChainFile /etc/certificates/afterdark.org.uk-chain.pem
|
|
|
|
SetEnvIf REQUEST_URI ^/robots\.txt$ no_log
|
|
SetEnvIf REQUEST_URI ^/favicon\.ico$ no_log
|
|
|
|
ScriptAlias /cgi-bin/ /data/www/cgi-bin/
|
|
|
|
DocumentRoot /data/www/html/
|
|
|
|
CustomLog /data/www/logs/httpd-access VHostCombined env=!no_log
|
|
|
|
<Proxy *>
|
|
Require all granted
|
|
</Proxy>
|
|
# Dot NOT add backslashes to the end of the urls.
|
|
ProxyPass /git http://127.0.0.1:9100
|
|
ProxyPassReverse /git http://127.0.0.1:9100
|
|
ProxyPass /terrastate http://127.0.0.1:9200
|
|
ProxyPassReverse /terrastate http://127.0.0.1:9200
|
|
|
|
<IfModule userdir_module>
|
|
UserDir /data/home/*/www/html
|
|
UserDir Disabled root
|
|
</IfModule>
|
|
</VirtualHost>
|
|
</IfModule>
|