Sharp.Augeas/Sharp.Augeas.Test/root/etc/apache2/sites-available/example.com.conf

27 lines
841 B
Plaintext
Raw Permalink Normal View History

2022-11-04 20:09:06 +03:00
<VirtualHost 91.218.230.167:80>
2022-11-12 21:03:16 +03:00
ServerName www.example.com
ServerAlias example.com
2022-11-04 20:09:06 +03:00
#SSLEngine on
#SSLProxyEngine on
#SSLProxyVerify none
#SSLProxyCheckPeerCN off
#SSLProxyCheckPeerName off
#SSLProxyCheckPeerExpire off
2022-11-12 21:03:16 +03:00
ServerAdmin admin@example2.com
2022-11-04 20:09:06 +03:00
ProxyRequests Off
ProxyPreserveHost On
AllowEncodedSlashes NoDecode
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / https://127.0.0.1:8080/ nocanon
ProxyPassReverse / https://127.0.0.1:8080/
#RequestHeader set X-Forwarded-Proto "https"
#RequestHeader set X-Forwarded-Port "443"
RewriteEngine on
2022-11-12 21:03:16 +03:00
RewriteCond %{SERVER_NAME} =www.example.com [OR]
RewriteCond %{SERVER_NAME} =example.com
2022-11-04 20:09:06 +03:00
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>