-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttps.conf
More file actions
44 lines (35 loc) · 1.43 KB
/
https.conf
File metadata and controls
44 lines (35 loc) · 1.43 KB
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
# got sign.sh from http://www.modssl.org/
# Followed Apple's instructions for creatin server.* files
# http://developer.apple.com/internet/serverside/modssl.html
# got http conf settings from several sites ...
#http://ricroberts.com/articles/setting-up-ssl-for-rails-and-testing-it-on-your-mac
#http://wiki.brightbox.co.uk/docs:apache#configuring_ssl
#http://www.subelsky.com/2007/11/testing-rails-ssl-requirements-on-your.html# http://www.jasonfox.com/2010/03/installing-apache2-with-ssl-support-on-mac-os-x/
# http://www.eclectica.ca/howto/ssl-cert-howto.php
# http://www.buildingwebapps.com/articles/79189-using-ssl-in-rails-applications/24347-servers-for-web-application-hosting-and
Listen 443
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
#
# This somehow sometimes interferes with validation and testing?????
#
#<VirtualHost *:80>
#ServerName dev.sph.berkeley.edu
#
#ProxyPass / http://localhost:3000/
#ProxyPassReverse / http://localhost:3000
#ProxyPreserveHost on
#
#DocumentRoot "/Users/jakewendt/github_repo/jakewendt/ucb_sph_ccls/public"
#
#</VirtualHost>
#<VirtualHost dev.sph.berkeley.edu:443>
<VirtualHost *:443>
SSLEngine On
ServerName dev.sph.berkeley.edu
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000
ProxyPreserveHost on
RequestHeader set X_FORWARDED_PROTO 'https'
DocumentRoot "/Users/jakewendt/github_repo/jakewendt/ucb_sph_ccls/public"
</VirtualHost>