Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Apache virtual servers and DNS2GO

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  SuSE 9.0, Apache 2.0.47, Tomcat 4.1.27, JK2  
Author Message
dlcs1944

External


Since: Nov 25, 2003
Posts: 7



(Msg. 1) Posted: Tue Nov 25, 2003 8:58 pm
Post subject: Apache virtual servers and DNS2GO
Archived from groups: alt>apache>configuration (more info?)

I have three virtual servers set up to the web pages for my three domains.
I am using DNS2GO dynamic nameserver to point to my IP. I have been running
two of the virtual servers for a long time with no problem. A couple days
ago I added the third, but the name is never found and executed the default
virtual server. Any idea why only 2 of the 3 work. I suspect DNS2GO is not
sending the name along correctly for one of them. Here is the relevant part
of my config file. This is driving me nuts. "dlcs.com" and "mclauhead.com"
work correctly, but "twinsbobbleheads" is never found and executes the
default one. I see nothing different with that one except it doesn't work.
Well it is a longer name, but that shouldn't matter, should it? I have
moved it first, middle and last. It is not position sensitive. Any ideas
at all would be appreciated.

#-----------------------My hosted web pages-----------------------------
##
#DLCS web pages
#

NameVirtualHost *
#
#Default error page if name is not found
#
<VirtualHost *>
DocumentRoot /webs/ServerError
ServerName thisisadefaulterrordisplay
</VirtualHost>
#
# Two entries are required for each, one for www and one for http
#Don't ask me why; it works so who cares.
#
#TWINSBOBBLEHEADS web pages
#
<VirtualHost *>
DocumentRoot /webs/twinsbobbleheads/
ServerName www.twinsbobbleheads.com/
</VirtualHost>
#
<VirtualHost *>
DocumentRoot /webs/twinsbobbleheads/
ServerName twinsbobbleheads.com/
</VirtualHost>
<VirtualHost *>
DocumentRoot /webs/dlcs/
ServerName www.dlcs.com
</VirtualHost>
#
<VirtualHost *>
DocumentRoot /webs/dlcs/
ServerName dlcs.com
</VirtualHost>
#
#MCLAUHEAD web page
#
<VirtualHost *>
DocumentRoot /webs/marylaw/
ServerName www.mclauhead.com
</VirtualHost>
#
<VirtualHost *>
DocumentRoot /webs/marylaw/
ServerName mclauhead.com
</VirtualHost>

 >> Stay informed about: Apache virtual servers and DNS2GO 
Back to top
Login to vote
no_mail

External


Since: Jul 15, 2003
Posts: 26



(Msg. 2) Posted: Wed Nov 26, 2003 6:59 am
Post subject: Re: Apache virtual servers and DNS2GO [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

rila wrote...
 > I have three virtual servers set up to the web pages for my three domains.
 > I am using DNS2GO dynamic nameserver to point to my IP. I have been running
 > two of the virtual servers for a long time with no problem. A couple days
 > ago I added the third, but the name is never found and executed the default
 > virtual server. Any idea why only 2 of the 3 work. I suspect DNS2GO is not
 > sending the name along correctly for one of them. Here is the relevant part
 > of my config file. This is driving me nuts. "dlcs.com" and "mclauhead.com"
 > work correctly, but "twinsbobbleheads" is never found and executes the
 > default one. I see nothing different with that one except it doesn't work.
 > Well it is a longer name, but that shouldn't matter, should it? I have
 > moved it first, middle and last. It is not position sensitive. Any ideas
 > at all would be appreciated.
 >
 > #-----------------------My hosted web pages-----------------------------
 > ##
 > #DLCS web pages
 > #
 >
 > NameVirtualHost *
 > #
 > #Default error page if name is not found
 > #
 > <VirtualHost *>
 > DocumentRoot /webs/ServerError
 > ServerName thisisadefaulterrordisplay
 > </VirtualHost>
 > #
 > # Two entries are required for each, one for www and one for http
 > #Don't ask me why; it works so who cares.
 > #
 > #TWINSBOBBLEHEADS web pages
 > #
 > <VirtualHost *>
 > DocumentRoot /webs/twinsbobbleheads/
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.twinsbobbleheads.com/</font" target="_blank">www.twinsbobbleheads.com/</font</a>>
 > </VirtualHost>
 > #
 > <VirtualHost *>
 > DocumentRoot /webs/twinsbobbleheads/
 > ServerName twinsbobbleheads.com/
 > </VirtualHost>
 > <VirtualHost *>
 > DocumentRoot /webs/dlcs/
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.dlcs.com</font" target="_blank">www.dlcs.com</font</a>>
 > </VirtualHost>
 > #
 > <VirtualHost *>
 > DocumentRoot /webs/dlcs/
 > ServerName dlcs.com
 > </VirtualHost>

You have a trailing slash after ServerName <a style='text-decoration: underline;' href="http://www.twinsbobbleheads.com/" target="_blank">www.twinsbobbleheads.com/</a>
where there should not be one.

You could also use a ServerAlias instead of having two entries for each,
like:

<VirtualHost *>
DocumentRoot /webs/twinsbobbleheads
ServerName <a style='text-decoration: underline;' href="http://www.twinsbobbleheads.com" target="_blank">www.twinsbobbleheads.com</a>
ServerAlias twinsbobbleheads.com
</VirtualHost><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Apache virtual servers and DNS2GO 
Back to top
Login to vote
dlcs1944

External


Since: Nov 25, 2003
Posts: 7



(Msg. 3) Posted: Wed Nov 26, 2003 11:33 am
Post subject: Re: Apache virtual servers and DNS2GO [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Man, THANK YOU!!! I looked at that config file literally 50 times and
missed that trailing slash. Of course that was the problem. It works now,
thanks to you! You made my day. Have a nice day yourself.

....Dick...
 >> Stay informed about: Apache virtual servers and DNS2GO 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Access apache virtual hosts - Hello, I have a network at home with 2 PCs with WinXp. On PC1 run's apache with some virtual hosts. (see config below) If I write demo or demo1 or demo2 into the browser on PC1 it works fine. But how can I access them from the other computer? Thanks! ...

NAT and Apache cofiguration (without virtual hosts !) - Hi All, I have DSL with static IP and NAT. (apache + linux) for example: external IP of router- 69.1.1.1 internal IP of my web server - 192.168.1.5 httpd.conf Listen 192.168.1.5:80 ServerName 69.1.1.1:80 If I open port in my router and ask to redirect...

Apache 2.0.40 (RH9) virtual hosts vs. mod_proxy vs ssl - Hi all, i´m using the standard rh9 apache config with ssl enabled, which works fine. now i want to redirect an other domain via mod_proxy to an other apache server without using ssl. i´ve tried to setup a virtual host with this config: ......

apache/tomcat virtual hosts - I have set up tomcat and apache... bind them with a JK2 connector both on port 80. I have 2 domains running on the machine. the apache docs are located on the following location: /export/home/webroot/site1 (www.site1.com) /export/home/webroot/site...

virtual hosts apache/tomcat - Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
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



[ Contact us | Terms of Service/Privacy Policy ]