From 0904a68ff6a48411990516bc44ac15552e8029e5 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Wed, 29 Oct 2025 16:59:42 +0000 Subject: [PATCH] Update http configs. --- etc/apache2/httpd.conf | 23 +++++++++++-------- .../sites.d/core.slackware.uk.net.conf | 17 ++++++++++++++ 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/etc/apache2/httpd.conf b/etc/apache2/httpd.conf index 4d7c941..ed7bf31 100644 --- a/etc/apache2/httpd.conf +++ b/etc/apache2/httpd.conf @@ -38,6 +38,9 @@ LoadModule authn_file_module /usr/lib/apache2/mod_authn_file.so LoadModule authz_core_module /usr/lib/apache2/mod_authz_core.so LoadModule authz_user_module /usr/lib/apache2/mod_authz_user.so +# Custom headers. +LoadModule headers_module /usr/lib/apache2/mod_headers.so + # Proxying. # # LoadModule proxy_module /usr/lib/apache2/mod_proxy.so @@ -66,7 +69,7 @@ ServerSignature Email ServerTokens Major User apache Group apache -DefaultRuntimeDir /run/apache2 +DefaultRuntimeDir /run Mutex pthread ScriptSock cgid.sock @@ -119,6 +122,16 @@ BrowserMatch "MSIE [2-5]" nokeepalive downgrade-1.0 force-response-1.0 +# PHP. + + DirectoryIndex index.php index.phtml + + + SetHandler proxy:unix:/run/php-fpm83/php-fpm.sock|fcgi://localhost/ + + + + # Filters and Handlers. AddOutputFilter INCLUDES .shtml .html @@ -195,14 +208,6 @@ Alias /.well-known/acme-challenge/ /srv/dehydrated/ SSLOptions +StdEnvVars - - - DirectoryIndex index.php index.phtml - - - SetHandler proxy:unix:/run/php-fpm84/php-fpm.sock|fcgi://localhost/ - - diff --git a/etc/apache2/sites.d/core.slackware.uk.net.conf b/etc/apache2/sites.d/core.slackware.uk.net.conf index 9712618..2b9c4a0 100644 --- a/etc/apache2/sites.d/core.slackware.uk.net.conf +++ b/etc/apache2/sites.d/core.slackware.uk.net.conf @@ -1,3 +1,17 @@ + + Options FollowSymlinks + AllowOverride None + Require all granted + + + + # include /etc/fusiondirectory/fusiondirectory.secrets + + AllowOverride None + Require all granted + AddType application/wasm .wasm + + ServerName core.slackware.uk.net @@ -23,5 +37,8 @@ ScriptAlias /cgi-bin/ /data/sites/core.slackware.uk.net/cgi-bin/ DocumentRoot /data/sites/core.slackware.uk.net/html + + Alias /fd /srv/fusiondirectory/html + Alias /pla /srv/pla