Skip to content

Commit

Permalink
Merge pull request #257 from tmaeno/master
Browse files Browse the repository at this point in the history
http config for event MPM
  • Loading branch information
tmaeno authored Oct 24, 2023
2 parents 869b724 + 28027d8 commit a00ddc0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
2 changes: 1 addition & 1 deletion PandaPkgInfo.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
release_version = "0.0.68"
release_version = "0.0.69"
28 changes: 9 additions & 19 deletions templates/panda_server-httpd-FastCGI.conf.rpmnew.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ MaxClients ${PANDA_SERVER_CONF_MAX_WORKERS}
MaxRequestsPerChild 2000
</IfModule>

<IfModule mpm_event_module>
StartServers ${PANDA_SERVER_CONF_MIN_WORKERS}
MinSpareThreads ${PANDA_SERVER_CONF_MIN_WORKERS}
ServerLimit ${PANDA_SERVER_CONF_MAX_WORKERS}
MaxSpareThreads ${PANDA_SERVER_CONF_MAX_WORKERS}
MaxRequestWorkers ${PANDA_SERVER_CONF_MAX_WORKERS}
MaxConnectionsPerChild 2000
</IfModule>

ServerName ${PANDA_SERVER_CONF_SERVERNAME}

DocumentRoot "@@install_purelib@@/pandaserver"
Expand Down Expand Up @@ -67,21 +76,6 @@ Alias /auth/ "/opt/panda/etc/panda/auth/"
Header set Content-Encoding gzip
</Directory>

<IfModule mod_fastcgi.c>
FastCgiIpcDir /var/log/panda/fastsocks
FastCgiServer /pandaserver/server/panda.py \
-processes 25 -idle-timeout 300 -listen-queue-depth 1 -flush \
-initial-env PYTHONPATH \
-initial-env TZ \
-initial-env HOME \
-initial-env PANDA_HOME \
-initial-env X509_CERT_DIR \
-initial-env X509_USER_PROXY \
-initial-env PANDA_URL \
-initial-env PANDA_URL_SSL
ScriptAliasMatch ^/server/panda/(.+)$ @@install_purelib@@/pandaserver/server/panda.py
</IfModule>

<IfModule mod_wsgi.c>
WSGIPythonHome /opt/panda
WSGIDaemonProcess pandasrv_daemon processes=${PANDA_SERVER_CONF_NUM_WSGI} threads=1 home=/home/atlpan
Expand All @@ -99,8 +93,6 @@ Listen ${PANDA_SERVER_CONF_PORT}
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
# use Cassandra for cache
RewriteRule ^/cscache/(.*)$ /server/panda/getFile?fileName=$1 [PT,L]

<Directory "@@install_purelib@@/pandaserver/server">

Expand Down Expand Up @@ -135,8 +127,6 @@ Listen ${PANDA_SERVER_CONF_PORT_SSL}
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
# use Cassandra for cache
RewriteRule ^/cscache/(.*)$ /server/panda/getFile?fileName=$1 [PT,L]

# CERN security recommendation to only allow the seven strongest ssl ciphers
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
Expand Down

0 comments on commit a00ddc0

Please sign in to comment.