Updates for apache http configs.

This commit is contained in:
Darren 'Tadgy' Austin 2026-03-19 20:00:02 +00:00
commit 4bf8d740a6
7 changed files with 82 additions and 24 deletions

View file

@ -66,9 +66,21 @@ ZXRjL2FwYWNoZTIvbW9kcy1lbmFibGVkL3Byb3h5X2ZjZ2kubG9hZA== 1771512801.568005995 17
ZXRj 1773949446.172698365 1771501908.000000000 root:root 0755 - - ZXRj 1773949446.172698365 1771501908.000000000 root:root 0755 - -
YXBhY2hlMg== - - YXBhY2hlMg== - -
bW9kcy1lbmFibGVk - - bW9kcy1lbmFibGVk - -
ZXRjL2FwYWNoZTIvbW9kcy1lbmFibGVkL3Byb3h5X2h0dHAubG9hZA== 1773512305.071354981 1773512305.071354981 root:root 0777 - -
ZXRj 1773949446.172698365 1771501908.000000000 root:root 0755 - -
YXBhY2hlMg== - -
bW9kcy1lbmFibGVk - -
ZXRjL2FwYWNoZTIvbW9kcy1lbmFibGVkL3Jld3JpdGUubG9hZA== 1773519967.649760800 1773519967.649760800 root:root 0777 - - ZXRjL2FwYWNoZTIvbW9kcy1lbmFibGVkL3Jld3JpdGUubG9hZA== 1773519967.649760800 1773519967.649760800 root:root 0777 - -
ZXRj 1773949446.172698365 1771501908.000000000 root:root 0755 - - ZXRj 1773949446.172698365 1771501908.000000000 root:root 0755 - -
YXBhY2hlMg== - - YXBhY2hlMg== - -
bW9kcy1lbmFibGVk - -
ZXRjL2FwYWNoZTIvbW9kcy1lbmFibGVkL3NvY2FjaGVfc2htY2IubG9hZA== 1773343134.250327036 1773343134.250327036 root:root 0777 - -
ZXRj 1773949446.172698365 1771501908.000000000 root:root 0755 - -
YXBhY2hlMg== - -
bW9kcy1lbmFibGVk - -
ZXRjL2FwYWNoZTIvbW9kcy1lbmFibGVkL3NzbC5sb2Fk 1773343014.364235719 1773343014.364235719 root:root 0777 - -
ZXRj 1773949446.172698365 1771501908.000000000 root:root 0755 - -
YXBhY2hlMg== - -
c2l0ZXMtYXZhaWxhYmxl - - c2l0ZXMtYXZhaWxhYmxl - -
ZXRjL2FwYWNoZTIvc2l0ZXMtYXZhaWxhYmxlLy5naXRpZ25vcmU= 1766069274.068541443 1766069263.648712326 root:root 0644 - - ZXRjL2FwYWNoZTIvc2l0ZXMtYXZhaWxhYmxlLy5naXRpZ25vcmU= 1766069274.068541443 1766069263.648712326 root:root 0644 - -
ZXRj 1773949446.172698365 1771501908.000000000 root:root 0755 - - ZXRj 1773949446.172698365 1771501908.000000000 root:root 0755 - -
@ -76,6 +88,10 @@ YXBhY2hlMg== - -
c2l0ZXMtYXZhaWxhYmxl - - c2l0ZXMtYXZhaWxhYmxl - -
ZXRjL2FwYWNoZTIvc2l0ZXMtYXZhaWxhYmxlL2NvcmUuc2xhY2t3YXJlLnVrLm5ldC5jb25m 1773519943.102151242 1757785113.000000000 root:root 0644 - - ZXRjL2FwYWNoZTIvc2l0ZXMtYXZhaWxhYmxlL2NvcmUuc2xhY2t3YXJlLnVrLm5ldC5jb25m 1773519943.102151242 1757785113.000000000 root:root 0644 - -
ZXRj 1773949446.172698365 1771501908.000000000 root:root 0755 - - ZXRj 1773949446.172698365 1771501908.000000000 root:root 0755 - -
YXBhY2hlMg== - -
c2l0ZXMtZW5hYmxlZA== - -
ZXRjL2FwYWNoZTIvc2l0ZXMtZW5hYmxlZC8wMC1jb3JlLnNsYWNrd2FyZS51ay5uZXQuY29uZg== 1773340506.404142422 1773340506.404142422 root:root 0777 - -
ZXRj 1773949446.172698365 1771501908.000000000 root:root 0755 - -
YXB0 - - YXB0 - -
ZXRjL2FwdC8uZ2l0aWdub3Jl 1762532662.236312315 1762532566.409854495 root:root 0644 - - ZXRjL2FwdC8uZ2l0aWdub3Jl 1762532662.236312315 1762532566.409854495 root:root 0644 - -
ZXRj 1773949446.172698365 1771501908.000000000 root:root 0755 - - ZXRj 1773949446.172698365 1771501908.000000000 root:root 0755 - -

View file

@ -12,7 +12,7 @@ LoadModule mpm_event_module /usr/lib/apache2/modules/mod_mpm_event.so
LoadModule setenvif_module /usr/lib/apache2/modules/mod_setenvif.so LoadModule setenvif_module /usr/lib/apache2/modules/mod_setenvif.so
#LoadModule unixd_module /usr/lib/apache2/mod_unixd.so #LoadModule unixd_module /usr/lib/apache2/mod_unixd.so
# Load extra modules. # Load optional modules.
IncludeOptional /etc/apache2/mods-enabled/*.load IncludeOptional /etc/apache2/mods-enabled/*.load
@ -34,9 +34,9 @@ ServerSignature Email
ServerTokens Major ServerTokens Major
User www-data User www-data
Group www-data Group www-data
DefaultRuntimeDir /var/run/apache2 DefaultRuntimeDir /run/apache2
PidFile /var/run/apache2/apache2.pid PidFile /run/apache2/apache2.pid
ScriptSock /var/run/apache2/cgid.sock ScriptSock /run/apache2/socks/cgid.sock
Mutex pthread Mutex pthread
@ -44,7 +44,7 @@ Mutex pthread
LogFormat "%h %l %u %t \"%r\" %>s %b" Common LogFormat "%h %l %u %t \"%r\" %>s %b" Common
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" Combined LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" Combined
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" VHostCombined LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" VHostCombined
CustomLog "|/usr/bin/logger -p local1.info -t httpd" VHostCombined env=!no_log CustomLog "|/usr/bin/logger -p local5.info -t httpd" VHostCombined env=!no_log
LogLevel warn allowmethods:crit authz_core:crit LogLevel warn allowmethods:crit authz_core:crit
<IfModule include_module> <IfModule include_module>
LogLevel include:crit LogLevel include:crit
@ -52,7 +52,7 @@ LogLevel warn allowmethods:crit authz_core:crit
<IfModule ssl_module> <IfModule ssl_module>
LogLevel ssl:crit LogLevel ssl:crit
</IfModule> </IfModule>
ErrorLog syslog:local0 ErrorLog syslog:local4
# Resource limits for event MPM. # Resource limits for event MPM.
@ -128,7 +128,7 @@ BrowserMatch "Konqueror/4" redirect-carefully
DirectoryIndex index.php index.phtml DirectoryIndex index.php index.phtml
<If "-f %{REQUEST_FILENAME} && %{REQUEST_URI} =~ /.+\.ph(ar|p|tml)$/"> <If "-f %{REQUEST_FILENAME} && %{REQUEST_URI} =~ /.+\.ph(ar|p|tml)$/">
SetHandler proxy:unix:/run/php-fpm83/php-fpm.sock|fcgi://localhost/ SetHandler proxy:unix:/run/php/php-fpm.sock|fcgi://localhost/
</If> </If>
</IfModule> </IfModule>
@ -170,7 +170,7 @@ MIMEMagicFile /etc/apache2/magic
# Lets Encrypt validation. # Lets Encrypt validation.
Alias /.well-known/acme-challenge/ /srv/dehydrated/ Alias /.well-known/acme-challenge/ /var/www/dehydrated/
# Access control. # Access control.
@ -184,13 +184,7 @@ Alias /.well-known/acme-challenge/ /srv/dehydrated/
Require all denied Require all denied
</Directory> </Directory>
<Directory /var/empty/> <Directory /var/www/dehydrated/>
Options None
AllowOverride None
Require all granted
</Directory>
<Directory /srv/dehydrated/>
Options None Options None
AllowOverride None AllowOverride None
Require all granted Require all granted

View file

@ -0,0 +1 @@
../mods-available/proxy_http.load

View file

@ -0,0 +1 @@
../mods-available/socache_shmcb.load

View file

@ -0,0 +1 @@
../mods-available/ssl.load

View file

@ -1,15 +1,46 @@
<Directory /srv/pla/> <Directory /usr/share/dokuwiki/>
Options FollowSymlinks Options +FollowSymLinks
AllowOverride All
Require all granted
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase //wiki
RewriteRule ^lib - [L]
RewriteRule ^doku.php - [L]
RewriteRule ^feed.php - [L]
RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L]
RewriteRule ^$ doku.php [L]
RewriteRule (.*) doku.php?id=$1 [QSA,L]
</IfModule>
</Directory>
<Directory /usr/share/dokuwiki/bin/>
Require all denied
</Directory>
<Directory /usr/share/fusiondirectory/html/>
Options FollowSymLinks
AllowOverride None
Require all granted
AddType application/wasm .wasm
IncludeOptional /etc/fusiondirectory/fusiondirectory.secrets
</Directory>
<Directory /usr/share/javascript/>
Options FollowSymLinks
AllowOverride None AllowOverride None
Require all granted Require all granted
</Directory> </Directory>
<Directory /srv/fusiondirectory> <Directory /usr/share/phpldapadmin/htdocs/>
# include /etc/fusiondirectory/fusiondirectory.secrets Options FollowSymlinks
AllowOverride None AllowOverride None
Require all granted Require all granted
AddType application/wasm .wasm
</Directory> </Directory>
<VirtualHost 5.101.171.215:80 [2a01:a500:2981:1::d7]:80> <VirtualHost 5.101.171.215:80 [2a01:a500:2981:1::d7]:80>
@ -38,7 +69,20 @@
DocumentRoot /data/sites/core.slackware.uk.net/html DocumentRoot /data/sites/core.slackware.uk.net/html
Alias /fd /srv/fusiondirectory/html Alias /fd /usr/share/fusiondirectory/html
Alias /pla /srv/pla Alias /javascript /usr/share/javascript
Alias /pla /usr/share/phpldapadmin/htdocs
Alias /wiki /usr/share/dokuwiki/
AliasMatch ^/wiki/sites/[^/]+$ /usr/share/dokuwiki/
AliasMatch ^/wiki/sites/[^/]+/(.*)$ /usr/share/dokuwiki/$1
<Proxy *>
Require all granted
</Proxy>
# Dot NOT add backslashes to the end of the urls.
ProxyPass /prometheus http://127.0.0.1:9090
ProxyPassReverse /prometheus http://127.0.0.1:9090
ProxyPass /ts http://127.0.0.1:9200
ProxyPassReverse /ts http://127.0.0.1:9200
</VirtualHost> </VirtualHost>
</IfModule> </IfModule>

View file

@ -0,0 +1 @@
../sites-available/core.slackware.uk.net.conf