28 lines
759 B
Plaintext
28 lines
759 B
Plaintext
|
<VirtualHost *:80>
|
||
|
ServerName git.example.net
|
||
|
|
||
|
RewriteEngine on
|
||
|
RewriteCond %{HTTPS} off
|
||
|
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
|
||
|
RewriteCond %{SERVER_NAME} =git.example.net
|
||
|
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
||
|
</VirtualHost>
|
||
|
|
||
|
<VirtualHost *:443>
|
||
|
ServerName git.example.net
|
||
|
ServerAdmin webmaster@example.net
|
||
|
DocumentRoot /var/www/html
|
||
|
|
||
|
ErrorLog ${APACHE_LOG_DIR}/git-error.log
|
||
|
CustomLog ${APACHE_LOG_DIR}/git-access.log combined
|
||
|
|
||
|
SSLProxyEngine on
|
||
|
ProxyPreserveHost on
|
||
|
AllowEncodedSlashes NoDecode
|
||
|
ProxyPass / http://localhost:3001/ nocanon
|
||
|
|
||
|
SSLEngine on
|
||
|
SSLCertificateFile /etc/ssl/private/wildcard.example.net.crt
|
||
|
SSLCertificateKeyFile /etc/ssl/private/wildcard.example.net.key
|
||
|
</VirtualHost>
|