Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:443>
- ServerName example.com
- ServerAdmin admin@example.com.media
- DocumentRoot /var/www/example.com/htdocs
- Protocols http/1.1
- ForensicLog /var/www/example.com/logs/forensic.log
- LogLevel warn
- ErrorLog /var/www/example.com/logs/apache2.error.ssl.log
- CustomLog /var/www/example.com/logs/apache2.access.ssl.log combined
- KeepAliveTimeout 1
- ProxyPass "/" "unix:///var/www/example.com/services/gitea.sock|fcgi://example.com:51000/" nocanon
- ProxyPassReverse "/" "https://example.com/"
- ProxyPreserveHost On
- ProxyRequests off
- AllowEncodedSlashes NoDecode
- SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
- SetEnv proxy-chain-auth On
- SSLEngine on
- SSLCertificateFile /root/ssl/example.com.crt
- SSLCertificateKeyFile /root/ssl/example.com.key
- SSLCertificateChainFile /root/ssl/example.com.crt
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement