Skip to content

Legacy legal code translations and general support issues

License

Notifications You must be signed in to change notification settings

go5515/creativecommons.org

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CC WordPress 2013

Sample Apache config file, place in /etc/apache* and tweak the paths as needed:

Include /var/www/creativecommons.org/apache.conf

<VirtualHost *:8080>
    Use CCVHost creativecommons.org http /var/www/creativecommons.org /var/log/apache2/creativecommons.org
UseCanonicalName On
</VirtualHost>

<VirtualHost *:443>
    Use CCVHost creativecommons.org https /var/www/creativecommons.org /var/log/apache2/creativecommons.org
UseCanonicalName On
    SSLEngine on
    SSLCertificateFile /etc/ssl/private/creativecommons.org.crt
    SSLCertificateKeyFile /etc/ssl/private/creativecommons.org.key
    SSLCACertificateFile /etc/ssl/certs/RapidSSL_CA_bundle.pem
</VirtualHost>

The UseCanonicalName option forces URLs to redirect to the canonical host name, you can remove it if you want to use other names to access the site (e.g., an Amazon EC2 hostname before you get DNS set-up).

You'll need the macro Apache module. On Debian-like systems you can try:

apt-get install libapache2-mod-macro
a2enmod macro

There is a setup script, server_bootstrap.sh, in this checkout, it primarily sets up the python environment. It should "just work", but if it doesn't then give it a read. It requires some basic Python utilities like virtualenv and pip.

To configure WordPress, there is a sample config file at docroot/wp-config-local.php.sample, copy it to docroot/wp-config-local.php and fill in the information as needed by the WP install.

Happy hacking!

About

Legacy legal code translations and general support issues

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 99.9%
  • Other 0.1%