Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
www and groupware virtual hosts problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
igor92128
Apprentice
Apprentice


Joined: 27 Jun 2004
Posts: 156
Location: California

PostPosted: Fri Feb 11, 2005 6:58 am    Post subject: www and groupware virtual hosts problem Reply with quote

Ok, so I have a site running under the latest version of Apache at www.mysite.com. Now I have installed groupware and I want to create a seperate URL of groupware.mysite.com. I have played around with the virtual hosts file but I can't get it working. No matter what I do, groupware.mysite.com always has the same contents as www.cybegor.com, eventhough I've changed the document root in the virual host file for that site. Here's what my vhosts.conf section looks like:
Code:

NameVirtualHost *.80
<VirtualHost *.80>
ServerName groupware.mysite.net
#ServerPath /var/www/localhost/htdocs/egroupware
DocumentRoot /var/www/localhost/htdocs/egroupware
<Directory /var/www/localhost/htdocs/egroupware>
</Directory>
ServerAdmin root@localhost
</VirtualHost>

I don't know why, but I can't get the virtual host to point to the proper directory that is in DocumentRoot, and so it keeps displaying the wrong content. How can I fix this?

Thanks,
Igor
Back to top
View user's profile Send private message
igor92128
Apprentice
Apprentice


Joined: 27 Jun 2004
Posts: 156
Location: California

PostPosted: Fri Feb 11, 2005 5:28 pm    Post subject: Reply with quote

Also, in my DNS redirector...both of www.mysite.com and groupware.mysite.com point to the same IP. But if I wanted to make groupware.mysite.com a virual host, does it even need en entry in the redirector? Do I even need to use virtual hosts here, or is there a way to host 2 sites without using virtual hosts? Maybe I should install anoter www service and have it handle the 2nd site? ALso, I did not set up www.mysite.com to be virtual host.

Thanks,
Igor
Back to top
View user's profile Send private message
igor92128
Apprentice
Apprentice


Joined: 27 Jun 2004
Posts: 156
Location: California

PostPosted: Fri Feb 11, 2005 7:26 pm    Post subject: Reply with quote

So I've been reading up on this and I installed Tomcat. Am I at least heading in the right direction?

Igor
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum