Update httpd config.

This commit is contained in:
Darren 'Tadgy' Austin 2024-08-21 15:38:05 +01:00
commit b2ac4a5d10
3 changed files with 39 additions and 10 deletions

View file

@ -9,20 +9,35 @@
RedirectMatch permanent ^/(?!(\.well-known|httpd-errordocs)/)(.*) https://afterdark.org.uk/$2
</IfModule>
<IfModule !ssl_module>
ScriptAlias /cgi-bin/ /srv/www/cgi-bin/
ScriptAlias /cgi-bin /srv/www/cgi-bin
DocumentRoot /srv/www/html/
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
Alias /racktables /srv/www/html/racktables/wwwroot
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
@ -31,6 +46,25 @@
</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