27 Jun 2008 14:23
TAGS: files lighttpd proxy serving static transfer wikidot
Today I've configured the mirror server, to serve static files (static.wikidot.com) from the main server using Lighttpd.
The only thing to do is assign an IP address (preferably a portable one) and make a change in DNS settings.
Now static files are server with a proxy from lighttpd working on the main server, but we could change it later.
This thing closes work that needed to be done with the mirror server (as4). All we have to deal with is now magic file detection and ozone_session errors.
PS: we have two lighttpd configuration files now:
- /etc/lighttpd.conf — for serving static files
- /etc/lighttpd-mirror.conf — for acting as a live mirror.
After assigning an IP address to the static server, we may want to produce one lighttpd configuration based on IP (or host name), but it's not important now.