Update http configs.
This commit is contained in:
parent
8556a9836a
commit
0904a68ff6
2 changed files with 31 additions and 9 deletions
|
|
@ -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.
|
||||
#<IfModule !proxy_module>
|
||||
# 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
|
|||
</IfModule>
|
||||
|
||||
|
||||
# PHP.
|
||||
<IfModule proxy_fcgi_module>
|
||||
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/
|
||||
</If>
|
||||
</IfModule>
|
||||
|
||||
|
||||
# Filters and Handlers.
|
||||
<IfModule include_module>
|
||||
AddOutputFilter INCLUDES .shtml .html
|
||||
|
|
@ -195,14 +208,6 @@ Alias /.well-known/acme-challenge/ /srv/dehydrated/
|
|||
SSLOptions +StdEnvVars
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
|
||||
<IfModule proxy_fcgi_module>
|
||||
DirectoryIndex index.php index.phtml
|
||||
|
||||
<If "-f %{REQUEST_FILENAME} && %{REQUEST_URI} =~ /.+\.ph(ar|p|tml)$/">
|
||||
SetHandler proxy:unix:/run/php-fpm84/php-fpm.sock|fcgi://localhost/
|
||||
</If>
|
||||
</IfModule>
|
||||
</Directory>
|
||||
|
||||
<IfModule cgid_module>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue