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

virtual host configuration difficulties

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache 2 WMV - mime types no help!  
Author Message
jtsbaker

External


Since: Jun 24, 2004
Posts: 3



(Msg. 1) Posted: Thu Jun 24, 2004 6:01 am
Post subject: virtual host configuration difficulties
Archived from groups: alt>apache>configuration (more info?)

I have been trying to set up the apache 2 web server on a Linux machine to
respond to a number of virtual hosts. The problem is that when I enter the
domain of the virtual host I want to connect the internet explorer to the
apache server responds to the default site instead of the desired virtual
host site.

System
Linux 8 with network card set for ip address 192.168.0.2
Apache 2 came with Linux distribution
A single ip address on a belkin router
Router directs port 80 to LAN ip 192.168.0.2

Apache virtual host configuration

<VirtualHost 192.168.0.2:80>
ServerAdmin jtsbaker DeleteThis @comcast.net
DocumentRoot /var/www/html
</VirtualHost>

<VirtualHost 192.168.0.2:80>
ServerName jtsbaker.homedns.org
ServerAdmin jtsbaker DeleteThis @comcast.net
DocumentRoot /home/jtsbaker/html_public
</VirtualHost>

Does anyone have any suggestions.


--

Thank you
James T. Studebaker

 >> Stay informed about: virtual host configuration difficulties 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Thu Jun 24, 2004 9:54 am
Post subject: Re: virtual host configuration difficulties [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

James T. Studebaker <jtsbaker DeleteThis @comcast.net> wrote:
 > The problem is that when I enter the
 > domain of the virtual host I want to connect the internet explorer to the
 > apache server responds to the default site instead of the desired virtual
 > host site.
 >
 > <VirtualHost 192.168.0.2:80>
 > ServerAdmin jtsbaker DeleteThis @comcast.net
 > DocumentRoot /var/www/html
 > </VirtualHost>

Where is the ServerName on this?
And the usual series: if your system isn't listening on more IP
(aka: you want to use NAME based vhosts) don't use the IP in there,
use just '*'. See the documentation and many, many messages on this
newsgroups.

Davide

--
| The Roman Rule: The one who says it cannot be done should never
| interrupt the one who is doing it.
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: virtual host configuration difficulties 
Back to top
Login to vote
jtsbaker

External


Since: Jun 24, 2004
Posts: 3



(Msg. 3) Posted: Fri Jun 25, 2004 2:22 pm
Post subject: Re: virtual host configuration difficulties [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

This is the default site. I will put in a server name and see if that
changes things.
--

Thank you
James T. Studebaker

"Davide Bianchi" <davideyeahsure DeleteThis @onlyforfun.net> wrote in message
news:2jvc4qF15g79uU2@uni-berlin.de...
 > James T. Studebaker <jtsbaker DeleteThis @comcast.net> wrote:
  > > The problem is that when I enter the
  > > domain of the virtual host I want to connect the internet explorer to
the
  > > apache server responds to the default site instead of the desired
virtual
  > > host site.
  > >
  > > <VirtualHost 192.168.0.2:80>
  > > ServerAdmin jtsbaker DeleteThis @comcast.net
  > > DocumentRoot /var/www/html
  > > </VirtualHost>
 >
 > Where is the ServerName on this?
 > And the usual series: if your system isn't listening on more IP
 > (aka: you want to use NAME based vhosts) don't use the IP in there,
 > use just '*'. See the documentation and many, many messages on this
 > newsgroups.
 >
 > Davide
 >
 > --
 > | The Roman Rule: The one who says it cannot be done should never
 > | interrupt the one who is doing it.
 > |
 > |<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: virtual host configuration difficulties 
Back to top
Login to vote
jwilke

External


Since: Jun 25, 2004
Posts: 2



(Msg. 4) Posted: Fri Jun 25, 2004 5:55 pm
Post subject: Re: virtual host configuration difficulties [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

James T. Studebaker wrote:
 > I have been trying to set up the apache 2 web server on a Linux machine to
 > respond to a number of virtual hosts. The problem is that when I enter the
 > domain of the virtual host I want to connect the internet explorer to the
 > apache server responds to the default site instead of the desired virtual
 > host site.
 >
 > System
 > Linux 8 with network card set for ip address 192.168.0.2
 > Apache 2 came with Linux distribution
 > A single ip address on a belkin router
 > Router directs port 80 to LAN ip 192.168.0.2
 >
 > Apache virtual host configuration
 >
 > <VirtualHost 192.168.0.2:80>
 > ServerAdmin jtsbaker.DeleteThis@comcast.net
 > DocumentRoot /var/www/html
 > </VirtualHost>
 >
 > <VirtualHost 192.168.0.2:80>
 > ServerName jtsbaker.homedns.org
 > ServerAdmin jtsbaker.DeleteThis@comcast.net
 > DocumentRoot /home/jtsbaker/html_public
 > </VirtualHost>
 >
 > Does anyone have any suggestions.
 >
 >

You need to add NameVirtualHost 192.168.0.2

if you don't it'll just use the first reference you make to 192.168.0.2
for all your domains.

Regards

Jeroen<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: virtual host configuration difficulties 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Virtual Host - Hej Virtual host - what's that mean? I have installed Apache-Tomcat inside intranet. I want that my Apache-Tomcat listen other host inside the intranet for example : gateway! Other users from world not see my server, becouse is inside the intranet. ..

virtual host - Hi, I'm a newbie on Apache, so I need help for the configuration of Virtual Hosts. My english is bad, I'm sorry and I hope you can understand me... I've seen the documentation and I've tried many times but my configuration doesn't works... I've a lots....

Virtual Host - Does anyone have any idea why this isn't working? The following virtual host info in my httpd.conf works when I have someone try it from my IP (I assume cause it's the default ), but not when I try the domain www.mysite.com or it's aliases. ..

Virtual host and cgi Help - iam running slackware 9.0 and apache1.3 webserver. i have set up virtualhost, and have 2 domains on my server, one of my domains(mydoamin2) canīt execute cgi, the other can. I get this in my error.log "Options execCGI is off in this directory"...

Virtual host - Redhat 9.0 [root@linux bin]# ./apachectl start [Sun Aug 17 11:53:43 2003] [warn] module mod_php4.c is already added, skipping [Sun Aug 17 11:53:43 2003] [warn] module php4_module is already loaded, skipping [Sun Aug 17 11:53:43 2003] [warn] VirtualHost....
   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 ]