On Fri, May 20, 2005 at 01:04:25PM +0100, Colm MacCarthaigh wrote:
>> <VirtualHost *>
> ServerName www.example.com
> DocumentRoot /var/www/html/
> </VirtualHost>
>> <VirtualHost *>
> ServerName test.example.com
> DocumentRoot /var/www/testhtml/
> </VirtualHost>
Thanks this works.
> > #
> > # <VirtualHost *>
> > DocumentRoot /var/www/html/sub1
> > ServerName test.jcorcoran.net
> > ServerPath /sub1/
>> Is the <VirtualHost> line really commented out? Do you really
> need ServerPath?
>>It was an editing problem was not hashed out on my web server
> > RewriteEngine On
> > RewriteRule ^(/sub1/.*) /var/www/html$1
The example I gave was from the httpd.apache.org site, but as Kae pointed out simple steps would have been better :)
J
--
jason at jcorcoran.net
Fortune:
A hardware failure will cause system software to crash, and the customer engineer will blame the programmer.
-- Murphy's Laws of Computer Programming n°5
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!