Initial commit..
This commit is contained in:
94
apache-vhost.example
Normal file
94
apache-vhost.example
Normal file
@@ -0,0 +1,94 @@
|
||||
# --- civicrm.oopen.de
|
||||
|
||||
<VirtualHost 37.27.67.118:80 [2a01:4f9:3081:34d1::118]:80>
|
||||
|
||||
ServerAdmin admin@oopen.de
|
||||
|
||||
ServerName civicrm.oopen.de
|
||||
|
||||
RewriteEngine on
|
||||
RewriteCond %{HTTPS} !=on
|
||||
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
|
||||
|
||||
CustomLog /var/log/apache2/ip_requests.log base_requests
|
||||
|
||||
CustomLog /var/www/civicrm.oopen.de/logs/civicrm.oopen.de-access.log combined
|
||||
ErrorLog /var/www/civicrm.oopen.de/logs/civicrm.oopen.de-error.log
|
||||
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost 37.27.67.118:443 [2a01:4f9:3081:34d1::118]:443>
|
||||
|
||||
ServerAdmin admin@oopen.de
|
||||
|
||||
ServerName civicrm.oopen.de
|
||||
|
||||
#ProxyErrorOverride On
|
||||
|
||||
<FilesMatch \.php$>
|
||||
SetHandler "proxy:unix:/run/php/php-8.4-fpm.www.sock|fcgi://php/"
|
||||
</FilesMatch>
|
||||
|
||||
# Define a matching worker.
|
||||
# The part that is matched to the SetHandler is the part that
|
||||
# follows the pipe. If you need to distinguish, "localhost; can
|
||||
# be anything unique.
|
||||
#
|
||||
<Proxy "fcgi://php/">
|
||||
|
||||
# Recycle connections to the fastcgi dispatcher (PHP FPM).
|
||||
#
|
||||
# Use persistent connections to reduce the constant overhead of setting
|
||||
# up new connections
|
||||
#
|
||||
ProxySet enablereuse=on
|
||||
|
||||
# max - the most proxied request per server
|
||||
#
|
||||
# max = pm.max_children / max number of servers
|
||||
# = pm.max_children / (MaxRequestWorkers / ThreadsPerChild)
|
||||
#
|
||||
ProxySet max=16
|
||||
|
||||
# Forces the module to flush every chunk of data received from the FCGI backend
|
||||
# as soon as it receives it, without buffering.
|
||||
#
|
||||
ProxySet flushpackets=on
|
||||
|
||||
# connectiontimeout
|
||||
#
|
||||
# Connect timeout in seconds. The number of seconds Apache httpd waits for the
|
||||
# creation of a connection to the backend to complete. By adding a postfix of ms,
|
||||
# the timeout can be also set in milliseconds.
|
||||
#
|
||||
ProxySet connectiontimeout=5
|
||||
|
||||
# timeout
|
||||
#
|
||||
# Socket timeout in seconds. The number of seconds Apache httpd waits for data
|
||||
# sent by / to the backend.
|
||||
#
|
||||
ProxySet timeout=30
|
||||
</Proxy>
|
||||
|
||||
<IfModule dir_module>
|
||||
DirectoryIndex index.php index.html index.htm
|
||||
</IfModule>
|
||||
|
||||
DocumentRoot /var/www/civicrm.oopen.de/htdocs
|
||||
<Directory "/var/www/civicrm.oopen.de/htdocs">
|
||||
Require all granted
|
||||
AllowOverride All
|
||||
</Directory>
|
||||
|
||||
SSLEngine on
|
||||
|
||||
SSLCertificateFile /var/lib/dehydrated/certs/civicrm.oopen.de/fullchain.pem
|
||||
SSLCertificateKeyFile /var/lib/dehydrated/certs/civicrm.oopen.de/privkey.pem
|
||||
|
||||
CustomLog /var/log/apache2/ip_requests.log base_requests
|
||||
|
||||
CustomLog /var/www/civicrm.oopen.de/logs/civicrm.oopen.de-access.log combined
|
||||
ErrorLog /var/www/civicrm.oopen.de/logs/civicrm.oopen.de-error.log
|
||||
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user