LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] VHost for httpd2.

[ILUG] VHost for httpd2.

Jason Corcoran jason at jcorcoran.net
Fri May 20 13:12:54 IST 2005


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



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell