Update httpd config.
This commit is contained in:
parent
d84640a315
commit
b2ac4a5d10
3 changed files with 39 additions and 10 deletions
|
|
@ -42,7 +42,7 @@ LoadModule authz_user_module /usr/libexec/httpd/mod_authz_user.so
|
||||||
#LoadModule autoindex_module /usr/libexec/httpd/mod_autoindex.so
|
#LoadModule autoindex_module /usr/libexec/httpd/mod_autoindex.so
|
||||||
|
|
||||||
# Custom headers.
|
# Custom headers.
|
||||||
#LoadModule headers_module /usr/libexec/httpd/mod_headers.so
|
LoadModule headers_module /usr/libexec/httpd/mod_headers.so
|
||||||
|
|
||||||
# Expires headers.
|
# Expires headers.
|
||||||
#LoadModule expires_module /usr/libexec/httpd/mod_expires.so
|
#LoadModule expires_module /usr/libexec/httpd/mod_expires.so
|
||||||
|
|
@ -55,6 +55,7 @@ LoadModule authz_user_module /usr/libexec/httpd/mod_authz_user.so
|
||||||
LoadModule proxy_module /usr/libexec/httpd/mod_proxy.so
|
LoadModule proxy_module /usr/libexec/httpd/mod_proxy.so
|
||||||
</IfModule>
|
</IfModule>
|
||||||
LoadModule proxy_http_module /usr/libexec/httpd/mod_proxy_http.so
|
LoadModule proxy_http_module /usr/libexec/httpd/mod_proxy_http.so
|
||||||
|
LoadModule proxy_uwsgi_module /usr/libexec/httpd/mod_proxy_uwsgi.so
|
||||||
|
|
||||||
# Server status.
|
# Server status.
|
||||||
# LoadModule status_module /usr/libexec/httpd/mod_status.so
|
# LoadModule status_module /usr/libexec/httpd/mod_status.so
|
||||||
|
|
|
||||||
|
|
@ -9,20 +9,35 @@
|
||||||
RedirectMatch permanent ^/(?!(\.well-known|httpd-errordocs)/)(.*) https://afterdark.org.uk/$2
|
RedirectMatch permanent ^/(?!(\.well-known|httpd-errordocs)/)(.*) https://afterdark.org.uk/$2
|
||||||
</IfModule>
|
</IfModule>
|
||||||
<IfModule !ssl_module>
|
<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 *>
|
<Proxy *>
|
||||||
Require all granted
|
Require all granted
|
||||||
</Proxy>
|
</Proxy>
|
||||||
|
ProxyPreserveHost On
|
||||||
# Do NOT add backslashes to the end of the urls.
|
# Do NOT add backslashes to the end of the urls.
|
||||||
#ProxyPass /git http://127.0.0.1:9100
|
#ProxyPass /git http://127.0.0.1:9100
|
||||||
#ProxyPassReverse /git http://127.0.0.1:9100
|
#ProxyPassReverse /git http://127.0.0.1:9100
|
||||||
|
|
||||||
#ProxyPass /terrastate http://127.0.0.1:9200
|
#ProxyPass /terrastate http://127.0.0.1:9200
|
||||||
#ProxyPassReverse /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>
|
<IfModule userdir_module>
|
||||||
UserDir /data/home/*/www/html
|
UserDir /data/home/*/www/html
|
||||||
|
|
@ -31,6 +46,25 @@
|
||||||
</IfModule>
|
</IfModule>
|
||||||
</VirtualHost>
|
</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>
|
<IfModule ssl_module>
|
||||||
<VirtualHost 172.16.5.39:443 [2001:470:1f1d:58::67:6]:443>
|
<VirtualHost 172.16.5.39:443 [2001:470:1f1d:58::67:6]:443>
|
||||||
ServerName void.coventry
|
ServerName void.coventry
|
||||||
|
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
# See sysctl.conf(5)
|
|
||||||
|
|
||||||
# Enable keyboard mouse button emulation.
|
|
||||||
dev.mac_hid.mouse_button_emulation = 1
|
|
||||||
dev.mac_hid.mouse_button2_keycode = 100
|
|
||||||
dev.mac_hid.mouse_button3_keycode = 97
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue