[Nottingham]Web server questions

Graeme Fowler graeme at graemef.net
Sat Apr 9 17:22:18 BST 2005


Hi

On Sat, 2005-04-09 at 16:11 +0100, Joshua Lock wrote:
> Firstly I want to host two sites on one virtual server.

Tricky. Not impossible, but it does mean that you need to make use of
some other services to be able to do it...

> So for example I would put site1 and site2 folders in my public_html 
> folder, the problem would then be I'd like my main domain name to point 
> to the one site's folder and a totally different domain to point to the 
> second site.
> What I'd ideally like to do is have the sites only accessible by the 
> domain names assigned to them. I wonder if this is even possible? If so 
> how would I go about doing this considering I don't have access to the 
> httpd.conf for the server.

If you don't have access to the webserver config, then no amount of file
wrangling is going to make the webserver answer requests correctly for a
virtual host it isn't aware of.

What you *could* do, however, is get your additional site setup as a
subdirectory of your main site, and then use something like [wearing
work-related hat] 123-Reg's web forwarding facility. Other registration
services are also available ;-)

What that allows you to do is to forward web requests for one domain to
another, in a way which is all but transparent to the average end user.

> Also does anyone know how to stop search engines from indexing certain 
> folders?

robots.txt (as mentioned previously).

Graeme




More information about the Nottingham mailing list