Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2008-08-20 16:40:00
Size: 1033
Editor: LukeWilliams
Comment:
Revision 3 as of 2014-03-13 14:47:39
Size: 1587
Editor: ScottYoung
Comment:
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
Most HTTPS services are hosted under https://secure.ucc.asn.au, which also points to mussel (though it uses the interface listening on 130.95.13.28, not 130.95.13.18). Originally, this was because we didn't want to buy an SSL certificate for every machine. Now we have a wildcard certificate, so subdomains* can be accessed using HTTPS as well!
Line 13: Line 14:
Secure sockets layer is secure ^.^
Anyone else want to cover this?
* SSL wildcards are not actually wildcards — they only support one level of subdomain, so {{*.ucc.asn.au}}} won't match {{{something.weird.ucc.asn.au}}}.

Have a look at {{{/etc/apache2/sites-available/secure}}} on mussel to see how it's configured (it's world-readable).

UCC uses Apache 2 as a webserver for its website and member web-hosting services.

Reverse Proxy

Member domains (username.ucc.asn.au) and the main website resolve as CNAMEs to mooneye.

The configuration for member VirtualHosts is on mooneye in /etc/apache2/sites-available/members. These VirtualHost entries simply proxy pass-through to http://realwww.ucc.gu.uwa.edu.au/~username (a CNAME to mussel). ProxyPassthroughReverse is also used so that HTTP headers don't come back to the user with the wrong domain name. For some reason this doesn't seem to work for URLs pointing to a directory without a trailing slash.

Web Serving

Most web-serving happens on mussel, and most of the configuration for this is stored in /etc/apache2/sites-available/. Most of the file names are fairly self-explanatory, but it is worth noting that both the main website and member webspace are configured in default.

SSL

Most HTTPS services are hosted under https://secure.ucc.asn.au, which also points to mussel (though it uses the interface listening on 130.95.13.28, not 130.95.13.18). Originally, this was because we didn't want to buy an SSL certificate for every machine. Now we have a wildcard certificate, so subdomains* can be accessed using HTTPS as well!

* SSL wildcards are not actually wildcards — they only support one level of subdomain, so *.ucc.asn.au} won't match something.weird.ucc.asn.au.

Have a look at /etc/apache2/sites-available/secure on mussel to see how it's configured (it's world-readable).