113 lines
3 KiB
Text
113 lines
3 KiB
Text
<Directory /data/home/*/www/html>
|
|
Options Includes MultiViews SymlinksIfOwnerMatch
|
|
AllowOverride AuthConfig FileInfo Indexes Limit Options
|
|
|
|
Require all granted
|
|
|
|
AllowMethods GET POST OPTIONS
|
|
|
|
DirectoryIndex index.html
|
|
<IfModule include_module>
|
|
DirectoryIndex index.shtml
|
|
</IfModule>
|
|
|
|
<IfModule ssl_module>
|
|
<FilesMatch "\.(shtml|php)$">
|
|
SSLOptions +StdEnvVars
|
|
</FilesMatch>
|
|
</IfModule>
|
|
|
|
<IfModule proxy_fcgi_module>
|
|
DirectoryIndex index.php
|
|
|
|
<FilesMatch "\.php$">
|
|
<If "-f %{REQUEST_FILENAME}">
|
|
SetHandler proxy:fcgi://127.0.0.1:9000/
|
|
</If>
|
|
</FilesMatch>
|
|
</IfModule>
|
|
</Directory>
|
|
|
|
<Directory /data/home/*/www/cgi-bin>
|
|
Options Includes MultiViews SymLinksIfOwnerMatch
|
|
AllowOverride None
|
|
|
|
Require all granted
|
|
|
|
AllowMethods GET POST OPTIONS
|
|
|
|
DirectoryIndex disabled
|
|
|
|
<IfModule ssl_module>
|
|
SSLOptions +StdEnvVars
|
|
</IfModule>
|
|
</Directory>
|
|
|
|
<VirtualHost 192.168.67.6:80 [2001:470:1f1d:58::67:6]:80 _default_:80>
|
|
ServerName afterdark.org.uk
|
|
ServerAlias www.afterdark.org.uk
|
|
|
|
SetEnvIf REQUEST_URI ^/robots\.txt$ no_log
|
|
SetEnvIf REQUEST_URI ^/favicon\.ico$ no_log
|
|
SetEnvIf REQUEST_URI ^/\.well-known/.*$ no_log
|
|
|
|
<IfModule ssl_module>
|
|
RedirectMatch permanent ^/(?!(\.well-known|httpd-errordocs)/)(.*) https://afterdark.org.uk/$2
|
|
</IfModule>
|
|
<IfModule !ssl_module>
|
|
ScriptAlias /cgi-bin/ /data/var/www/cgi-bin/
|
|
|
|
DocumentRoot /data/var/www/html/
|
|
|
|
CustomLog /data/var/www/logs/httpd-access VHostCombined env=!no_log
|
|
|
|
<Proxy *>
|
|
Require all granted
|
|
</Proxy>
|
|
# Do NOT add backslashes to the end of the urls.
|
|
ProxyPass /git http://127.0.0.1:9100
|
|
ProxyPassReverse /git http://127.0.0.1:9100
|
|
ProxyPass /ts http://127.0.0.1:9200
|
|
ProxyPassReverse /ts http://127.0.0.1:9200
|
|
|
|
<IfModule userdir_module>
|
|
UserDir /data/home/*/www/html
|
|
UserDir Disabled root
|
|
</IfModule>
|
|
</IfModule>
|
|
</VirtualHost>
|
|
|
|
<IfModule ssl_module>
|
|
<VirtualHost 192.168.67.6:443 [2001:470:1f1d:58::67:6]:443>
|
|
ServerName afterdark.org.uk
|
|
ServerAlias www.afterdark.org.uk
|
|
|
|
SSLEngine On
|
|
SSLCertificateFile /etc/certificates/afterdark.org.uk-cert.pem
|
|
SSLCertificateKeyFile /etc/certificates/afterdark.org.uk-key.pem
|
|
SSLCertificateChainFile /etc/certificates/afterdark.org.uk-chain.pem
|
|
|
|
SetEnvIf REQUEST_URI ^/robots\.txt$ no_log
|
|
SetEnvIf REQUEST_URI ^/favicon\.ico$ no_log
|
|
|
|
ScriptAlias /cgi-bin/ /data/var/www/cgi-bin/
|
|
|
|
DocumentRoot /data/var/www/html/
|
|
|
|
CustomLog /data/var/www/logs/httpd-access VHostCombined env=!no_log
|
|
|
|
<Proxy *>
|
|
Require all granted
|
|
</Proxy>
|
|
# Dot NOT add backslashes to the end of the urls.
|
|
ProxyPass /git http://127.0.0.1:9100
|
|
ProxyPassReverse /git http://127.0.0.1:9100
|
|
ProxyPass /ts http://127.0.0.1:9200
|
|
ProxyPassReverse /ts http://127.0.0.1:9200
|
|
|
|
<IfModule userdir_module>
|
|
UserDir /data/home/*/www/html
|
|
UserDir Disabled root
|
|
</IfModule>
|
|
</VirtualHost>
|
|
</IfModule>
|