View previous topic :: View next topic |
Author |
Message |
igor92128 Apprentice
Joined: 27 Jun 2004 Posts: 156 Location: California
|
Posted: Fri Feb 11, 2005 6:58 am Post subject: www and groupware virtual hosts problem |
|
|
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 |
|
|
igor92128 Apprentice
Joined: 27 Jun 2004 Posts: 156 Location: California
|
Posted: Fri Feb 11, 2005 5:28 pm Post subject: |
|
|
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 |
|
|
igor92128 Apprentice
Joined: 27 Jun 2004 Posts: 156 Location: California
|
Posted: Fri Feb 11, 2005 7:26 pm Post subject: |
|
|
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 |
|
|
|