JohnWittle comments on Interested in learning Linux? Need hosting? Free shells! - Less Wrong
You are viewing a comment permalink. View the original post to see all comments and the full post content.
You are viewing a comment permalink. View the original post to see all comments and the full post content.
Comments (37)
Apache virtual hosts. For instance:
'johnwittle.com' is registered and has its A record pointed at the server, so when you type johnwittle.com into your browser, it goes to 98.158.26.222 (the ip of the server).
Now, apache, the webserver, has the following in its configuration files:
Then you just set up a virtualhost block for every domain/subdomain you want.
and fcgi 404 handler or whatever would be set up similarly?
the two lines i posted are the bare minimum needed to set a vhost. Things like 404 pages, per-vhost access and error logs, servername aliases (*.foo.com to www.foo.com), etc. are all possible.
Afaik, this is the standard method of going about doing this.