-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapache.cfg
59 lines (47 loc) · 1.83 KB
/
apache.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Listen YYYYYYYYYY:80
Listen YYYYYYYYYY:443
<VirtualHost YYYYYYYYYY:80>
ServerAdmin postmaster@XXXXXXXX
ServerName openid.XXXXXXXX
ServerAlias *.openid.XXXXXXXX
AddDefaultCharset UTF-8
ErrorLog /home/ZZZZZZZZZ/logs/apache2/openid/error.log
CustomLog /home/ZZZZZZZZZ/logs/apache2/openid/common.log combined
<Proxy http://127.0.0.1:65531/>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
<Location />
RequestHeader set X-Forwarded-Protocol "https" env=HTTPS
RequestHeader set X-Forwarded-Protocol "http" env=!HTTPS
ErrorDocument 503 "Backend not there!"
ProxyPass http://127.0.0.1:65531/
ProxyPassReverse http://127.0.0.1:65531/
</Location>
#ProxyPreserveHost on
</VirtualHost>
<VirtualHost YYYYYYYYYY:443>
ServerAdmin ZZZZZZZZZ@XXXXXXXX
ServerName openid.XXXXXXXX
ServerAlias *.openid.XXXXXXXX
ErrorLog /home/ZZZZZZZZZ/logs/apache2/openid-ssl/error.log
CustomLog /home/ZZZZZZZZZ/logs/apache2/openid-ssl/common.log "%h %l %{SSL_CLIENT_S_DN_Email}x %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
SSLEngine on
SSLCertificateFile /home/ZZZZZZZZZ/configs/ssl/apache2/openid/XXXXXXXX.crt.pem
SSLCertificateKeyFile /home/ZZZZZZZZZ/configs/ssl/apache2/openid/XXXXXXXX.key.pem
SSLCertificateChainFile /etc/ssl/certs/cacert.org.pem
<Proxy http://127.0.0.1:65531/>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
<Location />
RequestHeader set X-Forwarded-Protocol "https" env=HTTPS
RequestHeader set X-Forwarded-Protocol "http" env=!HTTPS
ErrorDocument 503 "Backend not there!"
ProxyPass http://127.0.0.1:65531/
ProxyPassReverse http://127.0.0.1:65531/
</Location>
# ProxyPreserveHost on
</VirtualHost>