Current File : //etc/apache2/keyhelp/vhosts/kundensystem.conf |
#
# Created by KeyHelp on 2023-05-09 02:18:02
#
# DO NOT CHANGE ANYTHING IN THIS FILE!
# CHANGES WILL BE LOST ON NEXT UPDATE.
#
<Directory "/home/users/kundensystem/www/">
Require all granted
Options SymLinksIfOwnerMatch
</Directory>
# kundensystem.cc
<VirtualHost *:443>
ServerName kundensystem.cc
ServerAdmin enrico@scriptfabrik.de
DocumentRoot "/home/users/kundensystem/www/"
SuexecUserGroup "kundensystem" "kundensystem"
# SSL
SSLEngine On
SSLCertificateFile /etc/ssl/keyhelp/letsencrypt/kundensystem/kundensystem.cc/complete.pem
SSLCertificateChainFile /etc/ssl/keyhelp/letsencrypt/kundensystem/kundensystem.cc/chain.pem
# HSTS
<IfModule mod_headers.c>
Header set Strict-Transport-Security "max-age=10368000; includeSubDomains; preload"
</IfModule>
# Logging
LogLevel warn
CustomLog "/home/users/kundensystem/logs/kundensystem.cc/access.log" keyhelp_log
ErrorLog "/home/users/kundensystem/logs/kundensystem.cc/error.log"
# PHP support
<FilesMatch "\.php$">
<If "-f %{REQUEST_FILENAME}">
SetHandler "proxy:unix:/run/php/keyhelp_kundensystem_php82.socket|fcgi://keyhelp_kundensystem_php82.socket"
</If>
</FilesMatch>
# Set proxy properties (the string "unique-domain-name-string" should match
# the one set in the FilesMatch directive.
<Proxy fcgi://keyhelp_kundensystem_php82.socket>
ProxySet connectiontimeout=5 timeout=60
</Proxy>
<LocationMatch "/(fpm-ping|fpm-status)">
SetHandler "proxy:unix:/run/php/keyhelp_kundensystem_php82.socket|fcgi://kundensystem.cc"
</LocationMatch>
# Perl support
AddHandler cgi-script .cgi .pl
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi)>
SetHandler fcgid-script
Options +SymLinksIfOwnerMatch +ExecCGI
</Files>
</IfModule>
ScriptAlias /cgi-bin/ "/home/users/kundensystem/www/cgi-bin/"
<Directory "/home/users/kundensystem/www/">
AllowOverride AuthConfig FileInfo Indexes Limit Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Options -Indexes
Options +ExecCGI
CGIPassAuth On
</Directory>
# Include global directives
IncludeOptional /etc/apache2/keyhelp/global_directives.conf
</VirtualHost>
# Force HTTPS redirect
<VirtualHost *:80>
ServerName kundensystem.cc
Redirect 301 / https://kundensystem.cc/
</VirtualHost>
# www.kundensystem.cc
<VirtualHost *:443>
ServerName www.kundensystem.cc
ServerAdmin enrico@scriptfabrik.de
DocumentRoot "/home/users/kundensystem/www/"
SuexecUserGroup "kundensystem" "kundensystem"
# SSL
SSLEngine On
SSLCertificateFile /etc/ssl/keyhelp/letsencrypt/kundensystem/www.kundensystem.cc/complete.pem
SSLCertificateChainFile /etc/ssl/keyhelp/letsencrypt/kundensystem/www.kundensystem.cc/chain.pem
# HSTS
<IfModule mod_headers.c>
Header set Strict-Transport-Security "max-age=10368000; includeSubDomains; preload"
</IfModule>
# Logging
LogLevel warn
CustomLog "/home/users/kundensystem/logs/www.kundensystem.cc/access.log" keyhelp_log
ErrorLog "/home/users/kundensystem/logs/www.kundensystem.cc/error.log"
# PHP support
<FilesMatch "\.php$">
<If "-f %{REQUEST_FILENAME}">
SetHandler "proxy:unix:/run/php/keyhelp_kundensystem_php82.socket|fcgi://keyhelp_kundensystem_php82.socket"
</If>
</FilesMatch>
# Set proxy properties (the string "unique-domain-name-string" should match
# the one set in the FilesMatch directive.
<Proxy fcgi://keyhelp_kundensystem_php82.socket>
ProxySet connectiontimeout=5 timeout=60
</Proxy>
<LocationMatch "/(fpm-ping|fpm-status)">
SetHandler "proxy:unix:/run/php/keyhelp_kundensystem_php82.socket|fcgi://www.kundensystem.cc"
</LocationMatch>
# Perl support
AddHandler cgi-script .cgi .pl
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi)>
SetHandler fcgid-script
Options +SymLinksIfOwnerMatch +ExecCGI
</Files>
</IfModule>
ScriptAlias /cgi-bin/ "/home/users/kundensystem/www/cgi-bin/"
<Directory "/home/users/kundensystem/www/">
AllowOverride AuthConfig FileInfo Indexes Limit Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Options -Indexes
Options +ExecCGI
CGIPassAuth On
</Directory>
# Include global directives
IncludeOptional /etc/apache2/keyhelp/global_directives.conf
</VirtualHost>
# Force HTTPS redirect
<VirtualHost *:80>
ServerName www.kundensystem.cc
Redirect 301 / https://www.kundensystem.cc/
</VirtualHost>