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

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
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 12:58:30 IST 2005


I have a web server sitting behind a fire wall (with port 80 forwarded).

I am trying to set up some subdomains on the machine so www.example.com  goes to /var/www/html  and test.example.com goes to /var/www/testhtml


Cant get it to work. I tried adding the following to my httpd2.conf



NameVirtualHost *

<VirtualHost *>
# primary vhost
 DocumentRoot /var/www/html
 RewriteEngine On
 RewriteRule ^/.* /var/www/html/index.html
# # ...
 </VirtualHost>
#
# <VirtualHost *>
 DocumentRoot /var/www/html/sub1
 ServerName test.jcorcoran.net
 ServerPath /sub1/
 RewriteEngine On
 RewriteRule ^(/sub1/.*) /var/www/html$1
# # ...
 </VirtualHost>

Any pointers ?

thanlks

Jason
-- 
jason at jcorcoran.net

Fortune:
Adding manpower to a late software project makes it later. 
	-- Murphy's Laws of Computer Programming n°15



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