[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: url forward



Thanks! That's a start , because the page is not locally hosted.

Greetings,
Sebastiaan.

On Sat, 18 Nov 2000, Martin Würtele wrote:

> On Sat, Nov 18, 2000 at 05:55:20PM +0100, Sebastiaan wrote:
> > Ok, does anyone know an elegant (and fast) method to accomplish this, so
> > that the original domain name (www.dorpsnet.nl) stays in the url (so that
> > www.dorpsnet.nl is equivalent to 194.235.126.184/~sebas)?
> > 
> set the ip for www.dorpsnet.nl to 194.235.126.184 and in apache use
> virtualhosts:
> 
> --begin--
> 
> NameVirtualHost 194.235.126.184
> 
> <VirtualHost 194.235.126.184>
> ServerName www.dorpsnet.nl
> # ad this line if you want access without www as well:
> ServerAlias dorpsnet.nl	
> # tell apache where the files ar:
> DocumentRoot /home/sebas/public_html 
> # log files:
> ErrorLog /var/log/apache/dorpsnet_error.log
> TransLog /var/log/apache/sorpsnet_access.log
> 
> # open index.html and index.htm automatically
> DirectoryIndex index.html index.htm
> </VirtualHost>
> 
> --end--
> 
> this should do the job.
> 
> hth martin
> 



Reply to: