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

@ -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 unixd_module /usr/lib/apache2/mod_unixd.so
# Load extra modules.
# Load optional modules.
IncludeOptional /etc/apache2/mods-enabled/*.load
@ -34,9 +34,9 @@ ServerSignature Email
ServerTokens Major
User www-data
Group www-data
DefaultRuntimeDir /var/run/apache2
PidFile /var/run/apache2/apache2.pid
ScriptSock /var/run/apache2/cgid.sock
DefaultRuntimeDir /run/apache2
PidFile /run/apache2/apache2.pid
ScriptSock /run/apache2/socks/cgid.sock
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 \"%{Referer}i\" \"%{User-Agent}i\"" Combined
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
<IfModule include_module>
LogLevel include:crit
@ -52,7 +52,7 @@ LogLevel warn allowmethods:crit authz_core:crit
<IfModule ssl_module>
LogLevel ssl:crit
</IfModule>
ErrorLog syslog:local0
ErrorLog syslog:local4
# Resource limits for event MPM.
@ -128,7 +128,7 @@ BrowserMatch "Konqueror/4" redirect-carefully
DirectoryIndex index.php index.phtml
<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>
</IfModule>
@ -170,7 +170,7 @@ MIMEMagicFile /etc/apache2/magic
# Lets Encrypt validation.
Alias /.well-known/acme-challenge/ /srv/dehydrated/
Alias /.well-known/acme-challenge/ /var/www/dehydrated/
# Access control.
@ -184,13 +184,7 @@ Alias /.well-known/acme-challenge/ /srv/dehydrated/
Require all denied
</Directory>
<Directory /var/empty/>
Options None
AllowOverride None
Require all granted
</Directory>
<Directory /srv/dehydrated/>
<Directory /var/www/dehydrated/>
Options None
AllowOverride None
Require all granted