File tree 2 files changed +9
-17
lines changed
2 files changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,25 @@ as needed:
7
7
8
8
<VirtualHost *:8080>
9
9
Use CCVHost creativecommons.org http /var/www/creativecommons.org /var/log/apache2/creativecommons.org
10
+ UseCanonicalName On
10
11
</VirtualHost>
11
12
12
13
<VirtualHost *:443>
13
14
Use CCVHost creativecommons.org https /var/www/creativecommons.org /var/log/apache2/creativecommons.org
15
+ UseCanonicalName On
14
16
SSLEngine on
15
17
SSLCertificateFile /etc/ssl/private/creativecommons.org.crt
16
18
SSLCertificateKeyFile /etc/ssl/private/creativecommons.org.key
17
19
SSLCACertificateFile /etc/ssl/certs/RapidSSL_CA_bundle.pem
18
20
</VirtualHost>
19
21
22
+ The <code >UseCanonicalName</code > option forces URLs to redirect to
23
+ the canonical host name, you can remove it if you want to use other
24
+ names to access the site (e.g., an Amazon EC2 hostname before you get
25
+ DNS set-up).
26
+
27
+
28
+
20
29
You'll need the <code >macro</code > Apache module. On Debian-like systems you can try:
21
30
22
31
apt-get install libapache2-mod-macro
Original file line number Diff line number Diff line change 17
17
18
18
Options +ExecCGI
19
19
20
- SuexecUserGroup webadmin webadmin
21
-
22
20
<Location /licenses>
23
21
DirectoryIndex deed
24
22
DefaultType text/html
46
44
ForceType text/html
47
45
</LocationMatch>
48
46
49
- # We only want relative URLs to point to creativecommons.org and nothing else
50
- # like www.CC.org, etc.
51
- UseCanonicalName On
52
-
53
- # Let's have Apache set some caching options for most images on CC.org
54
- <Directory ${dir}/docroot/wp-content/uploads>
55
- ExpiresActive On
56
- ExpiresDefault A60480800
57
- </Directory>
58
-
59
- <Directory ${dir}/docroot/images>
60
- ExpiresActive On
61
- ExpiresDefault A60480800
62
- </Directory>
63
-
64
47
DirectoryIndex index.php index.html
65
48
66
49
### ------------------------- ####
You can’t perform that action at this time.
0 commit comments