 |
|
 |
|
Next: Make the system recognize the new apache instead ..
|
| Author |
Message |
External

Since: Jul 14, 2003 Posts: 4
|
(Msg. 1) Posted: Mon Jul 14, 2003 3:02 am
Post subject: Virtual domains -- Help! Archived from groups: alt>apache>configuration (more info?)
|
|
|
Hello,
For some reason, Apache isn't pointing each domain to a seperate folder,
this the last part of my httpd.conf:
NameVirtualHost serversip
<VirtualHost serversip>
DocumentRoot /home/mydomain1
ServerName mydomain.org
</VirtualHost>
<VirtualHost serversip>
DocumentRoot /home/mydomain2
ServerName mydomain.us
</VirtualHost>
<VirtualHost serversip>
DocumentRoot /home/mydomain2/test
ServerName test.mydomain.us
</VirtualHost>
Now, my sub-domain doesn't even show up on the net.
I have DNS records pointing the domains to the IPs, but it still doesn't
work.
Scott
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.498 / Virus Database: 297 - Release Date: 7/9/03 >> Stay informed about: Virtual domains -- Help! |
|
| Back to top |
|
 |  |
External

Since: Jul 01, 2003 Posts: 47
|
(Msg. 2) Posted: Mon Jul 14, 2003 4:55 pm
Post subject: Re: Virtual domains -- Help! [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Scott Brown" <boringbr.DeleteThis@xprt.net> wrote in message
news:vh4lbp5mpk4b0d@corp.supernews.com...
> Hello,
> NameVirtualHost serversip
>
> <VirtualHost serversip>
> DocumentRoot /home/mydomain1
> ServerName mydomain.org
> </VirtualHost>
>
> <VirtualHost serversip>
> DocumentRoot /home/mydomain2
> ServerName mydomain.us
> </VirtualHost>
>
> <VirtualHost serversip>
> DocumentRoot /home/mydomain2/test
> ServerName test.mydomain.us
> </VirtualHost>
>
Well I think I see the problem I have virtual hosts but I do not use them
like you have mine are more like
<VirtualHost <a style='text-decoration: underline;' href="http://www.mysite.org" target="_blank">www.mysite.org</a>>
DocumentRoot /home/mysite.org
ServerName <a style='text-decoration: underline;' href="http://www.mysite.org" target="_blank">www.mysite.org</a>
</VirtualHost>
Mike.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Virtual domains -- Help! |
|
| Back to top |
|
 |  |
External

Since: Jul 14, 2003 Posts: 4
|
(Msg. 3) Posted: Mon Jul 14, 2003 4:55 pm
Post subject: Re: Virtual domains -- Help! [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
I did that, did not help.
Scott
Well I think I see the problem I have virtual hosts but I do not use them
like you have mine are more like
<VirtualHost www.mysite.org>
DocumentRoot /home/mysite.org
ServerName www.mysite.org
</VirtualHost>
Mike.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.500 / Virus Database: 298 - Release Date: 7/10/03 >> Stay informed about: Virtual domains -- Help! |
|
| Back to top |
|
 |  |
External

Since: Jul 14, 2003 Posts: 14
|
(Msg. 4) Posted: Mon Jul 14, 2003 7:51 pm
Post subject: Re: Virtual domains -- Help! [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Scott Brown" <boringbr.DeleteThis@xprt.net> skrev i en meddelelse
news:vh4lbp5mpk4b0d@corp.supernews.com...
> Hello,
> For some reason, Apache isn't pointing each domain to a seperate folder,
> this the last part of my httpd.conf:
>
> NameVirtualHost serversip
>
> <VirtualHost serversip>
> DocumentRoot /home/mydomain1
> ServerName mydomain.org
> </VirtualHost>
Are you typing <a style='text-decoration: underline;' href="http://www.mydomain.org" target="_blank">www.mydomain.org</a> or just mydomain.org in the browser?
Martin<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Virtual domains -- Help! |
|
| Back to top |
|
 |  |
External

Since: Jul 02, 2003 Posts: 52
|
(Msg. 5) Posted: Mon Jul 14, 2003 9:18 pm
Post subject: Re: Virtual domains -- Help! [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Mon, 14 Jul 2003 00:02:24 -0700, The Other Guy responded to a post
from "Scott Brown" <boringbr.RemoveThis@xprt.net> who wrote in
alt.apache.configuration:
>Hello,
> For some reason, Apache isn't pointing each domain to a seperate folder,
>this the last part of my httpd.conf:
>
>NameVirtualHost serversip
>
><VirtualHost serversip>
> DocumentRoot /home/mydomain1
> ServerName mydomain.org
></VirtualHost>
>
><VirtualHost serversip>
> DocumentRoot /home/mydomain2
> ServerName mydomain.us
></VirtualHost>
>
><VirtualHost serversip>
> DocumentRoot /home/mydomain2/test
> ServerName test.mydomain.us
></VirtualHost>
>
>
>Now, my sub-domain doesn't even show up on the net.
>
>I have DNS records pointing the domains to the IPs, but it still doesn't
>work.
>
>Scott
Try putting in a ServerAlias in each VH:
<VirtualHost serversip>
DocumentRoot /home/mydomain2
ServerName mydomain.us
ServerAlias mydomain2
</VirtualHost>
HTH
TOG
--
../configure --prefix=~/zyterion
Not this guy or that guy, The Other Guy.
This spot may contain a satirical comment or comedic source,
and is meant to be funny. If you are easily offended, gullible
or don't have a sense of humour we suggest you read elsewhere.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Virtual domains -- Help! |
|
| Back to top |
|
 |  |
External

Since: Jul 14, 2003 Posts: 4
|
(Msg. 6) Posted: Tue Jul 15, 2003 5:22 pm
Post subject: Re: Virtual domains -- Help! [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Okay, I installed Apache 2.0.47, the virtual domains work. However, I have
make for example: a virtual host for mydomain.com and www.mydomain.com. If
not, then they all get directed to the first virtual host directory. Also,
subdomains like: linux.mydomain.com do not work, I set it up like
www.mydomain.com, but it still doesn't work.
From the servers command line (Ahh, got to love SSH) I can ping the
subdomains just fine and view them fine in Lynx. Does that give a clue?
Scott
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.500 / Virus Database: 298 - Release Date: 7/10/03 >> Stay informed about: Virtual domains -- Help! |
|
| Back to top |
|
 |  |
External

Since: Jul 14, 2003 Posts: 14
|
(Msg. 7) Posted: Wed Jul 16, 2003 2:36 am
Post subject: Re: Virtual domains -- Help! [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Scott Brown" <boringbr.DeleteThis@xprt.net> skrev i en meddelelse
news:vh8s3u3o292o38@corp.supernews.com...
> Okay, I installed Apache 2.0.47, the virtual domains work. However, I have
> make for example: a virtual host for mydomain.com and <a style='text-decoration: underline;' href="http://www.mydomain.com." target="_blank">www.mydomain.com.</a> If
> not, then they all get directed to the first virtual host directory. Also,
> subdomains like: linux.mydomain.com do not work, I set it up like
> <a style='text-decoration: underline;' href="http://www.mydomain.com," target="_blank">www.mydomain.com,</a> but it still doesn't work.
You need to use ServerAlias to add the domains you wish the virtualhost to
answer to.
*.mydomain.com catches all subdomains of mydomain.com
Martin<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Virtual domains -- Help! |
|
| Back to top |
|
 |  |
External

Since: Jul 14, 2003 Posts: 4
|
(Msg. 8) Posted: Wed Jul 16, 2003 2:36 am
Post subject: Re: Virtual domains -- Help! [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Thank you!!
That fixed the www problem. The subdomain problem still exists. Any good
ideas?
Scott
"Martin C. Petersen" <mcp.DeleteThis@phys.au.dk> wrote in message
news:3f1473d2$0$83051$edfadb0f@dtext01.news.tele.dk...
"Scott Brown" <boringbr.DeleteThis@xprt.net> skrev i en meddelelse
news:vh8s3u3o292o38@corp.supernews.com...
> Okay, I installed Apache 2.0.47, the virtual domains work. However, I have
> make for example: a virtual host for mydomain.com and <a style='text-decoration: underline;' href="http://www.mydomain.com." target="_blank">www.mydomain.com.</a> If
> not, then they all get directed to the first virtual host directory. Also,
> subdomains like: linux.mydomain.com do not work, I set it up like
> <a style='text-decoration: underline;' href="http://www.mydomain.com," target="_blank">www.mydomain.com,</a> but it still doesn't work.
You need to use ServerAlias to add the domains you wish the virtualhost to
answer to.
*.mydomain.com catches all subdomains of mydomain.com
Martin
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.500 / Virus Database: 298 - Release Date: 7/10/03<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Virtual domains -- Help! |
|
| Back to top |
|
 |  |
External

Since: Jul 14, 2003 Posts: 14
|
(Msg. 9) Posted: Wed Jul 16, 2003 12:04 pm
Post subject: Re: Virtual domains -- Help! [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Scott Brown" <boringbr DeleteThis @xprt.net> skrev i en meddelelse
news:vh90h18iknec95@corp.supernews.com...
> Thank you!!
> That fixed the www problem. The subdomain problem still exists. Any good
> ideas?
Do you wish to catch all subdomains with one virtualhost?
Martin<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Virtual domains -- Help! |
|
| Back to top |
|
 |  |
| Related Topics: | Virtual hosts and SSL? - Hello I'm trying to setup this apache 1.3 server for virtual hosts, with ssl. I've got the normal port 80 working, but the SSL is a bit of a mess. If I have the SSL pages in the real part of the server, ie, https://www.example.com/fred/index.htm then....
virtual directories - What I'd like to do is have: {my site url} | | Folder A Folder B Where "Folder A" is "C:/Folder A", but Folder B is in C:/docs+settings/.../Folder B. Do I have to muck around in virtual hosts? How would the...
Virtual Hosts? - I'm wanting to use one IP address to host multiple domains, ie web hosting. I assume that "virtual hosts" are the thin I need to focus on here and is this basically a similar concept to Host Headers in IIS 5.0? I'm running Windows 2000 with Apa...
Default/Virtual server ? - I am new to apache 2.0.40 running on Linux and although I have it working I am unsure what is the best way configure 2 IP based hosts. Example configurations: 1. One IP as default server, one as virtual or 2. One IP as virtual, 2nd IP as virtual, wit...
my Virtual host is Virtual Toast - hi everyone ! Well after trying a few different configurations of the following lines of code I am still finding that I can only get the sites to go to the htdocs dir and not the subdirectories ... I keep on trying different things i read in.. |
|
You can post new topics in this forum You can 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
|
|
|
|
 |
|
|