-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
02530ed
commit b60c7a7
Showing
6 changed files
with
78 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# worker MPM | ||
# StartServers: initial number of server processes to start | ||
# MinSpareThreads: minimum number of worker threads which are kept spare | ||
# MaxSpareThreads: maximum number of worker threads which are kept spare | ||
# ThreadLimit: ThreadsPerChild can be changed to this maximum value during a | ||
# graceful restart. ThreadLimit can only be changed by stopping | ||
# and starting Apache. | ||
# ThreadsPerChild: constant number of worker threads in each server process | ||
# MaxRequestWorkers: maximum number of threads | ||
# MaxConnectionsPerChild: maximum number of requests a server process serves | ||
|
||
<IfModule mpm_worker_module> | ||
ServerLimit 8 | ||
StartServers 1 | ||
MinSpareThreads 8 | ||
MaxSpareThreads 8 | ||
ThreadLimit 64 | ||
ThreadsPerChild 8 | ||
MaxRequestWorkers 64 | ||
MaxConnectionsPerChild 0 | ||
</IfModule> | ||
|
||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Redirect to local php-fpm if mod_php is not available | ||
<IfModule !mod_php7.c> | ||
<IfModule proxy_fcgi_module> | ||
# Enable http authorization headers | ||
<IfModule setenvif_module> | ||
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 | ||
</IfModule> | ||
|
||
<FilesMatch ".+\.ph(ar|p|tml)$"> | ||
SetHandler "proxy:fcgi://127.0.0.1:9000/" | ||
</FilesMatch> | ||
|
||
<Proxy "fcgi://127.0.0.1:9000" enablereuse=off max=8> | ||
ProxySet timeout=600 | ||
</Proxy> | ||
|
||
# The default configuration works for most of the installation, however it could | ||
# be improved in various ways. One simple improvement is to not pass files that | ||
# doesn't exist to the handler as shown below, for more configuration examples | ||
# see https://wiki.apache.org/httpd/PHP-FPM | ||
# <FilesMatch ".+\.ph(ar|p|tml)$"> | ||
# <If "-f %{REQUEST_FILENAME}"> | ||
# SetHandler "proxy:unix:/run/php/php7.4-fpm.sock|fcgi://localhost" | ||
# </If> | ||
# </FilesMatch> | ||
<FilesMatch ".+\.phps$"> | ||
# Deny access to raw php sources by default | ||
# To re-enable it's recommended to enable access to the files | ||
# only in specific virtual host or directory | ||
Require all denied | ||
</FilesMatch> | ||
# Deny access to files without filename (e.g. '.php') | ||
<FilesMatch "^\.ph(ar|p|ps|tml)$"> | ||
Require all denied | ||
</FilesMatch> | ||
</IfModule> | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters