Skip to content

Commit 362f5d3

Browse files
committed
remove some apache options we shouldn't need; move one into README as a deployment note
1 parent c0e3951 commit 362f5d3

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,25 @@ as needed:
77

88
<VirtualHost *:8080>
99
Use CCVHost creativecommons.org http /var/www/creativecommons.org /var/log/apache2/creativecommons.org
10+
UseCanonicalName On
1011
</VirtualHost>
1112

1213
<VirtualHost *:443>
1314
Use CCVHost creativecommons.org https /var/www/creativecommons.org /var/log/apache2/creativecommons.org
15+
UseCanonicalName On
1416
SSLEngine on
1517
SSLCertificateFile /etc/ssl/private/creativecommons.org.crt
1618
SSLCertificateKeyFile /etc/ssl/private/creativecommons.org.key
1719
SSLCACertificateFile /etc/ssl/certs/RapidSSL_CA_bundle.pem
1820
</VirtualHost>
1921

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+
2029
You'll need the <code>macro</code> Apache module. On Debian-like systems you can try:
2130

2231
apt-get install libapache2-mod-macro

apache.conf

-17
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
Options +ExecCGI
1919

20-
SuexecUserGroup webadmin webadmin
21-
2220
<Location /licenses>
2321
DirectoryIndex deed
2422
DefaultType text/html
@@ -46,21 +44,6 @@
4644
ForceType text/html
4745
</LocationMatch>
4846

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-
6447
DirectoryIndex index.php index.html
6548

6649
### ------------------------- ####

0 commit comments

Comments
 (0)