Apache 2 IP based virtual hosting

This is a discussion on Apache 2 IP based virtual hosting within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hello, I was hoping I could find out a little information about how ip based virtual hosting works with apache. ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-29-2004
Michael Starbuck
 
Posts: n/a
Default Apache 2 IP based virtual hosting

Hello,
I was hoping I could find out a little information about how ip based
virtual hosting works with apache. I have a static IP address assigned
to my DSL modem and an apache webserver running on linux behind a router
on a private LAN. I'm trying to host two domains on one server running
apache 2.0. I have a red-hat linux system and I've set up two IP
aliases on the box for the ethernet card. I have also set up the
virutal host configuration for the two domains in httpd.conf according
to the example on ip based virtual hosting in the apache documentation.
I can only serve one domain though and it's the pages defined by the
document root and not the pages defined by the virtual host section so I
don't think virtual hosting is working at all. Is this even possible
given my configuration? The IP's I use for the virtual hosts are
aliases eth0:1 and eth0:2 but I don't see how this works if the requests
for all the domains are being sent to the static IP?

greatful thanks,
mike

  #2 (permalink)  
Old 06-29-2004
Jeff Grossman
 
Posts: n/a
Default Re: Apache 2 IP based virtual hosting

Michael Starbuck <spam@none.com> wrote:
> Hello,
> I was hoping I could find out a little information about how ip based
> virtual hosting works with apache. I have a static IP address assigned
> to my DSL modem and an apache webserver running on linux behind a router
> on a private LAN. I'm trying to host two domains on one server running
> apache 2.0. I have a red-hat linux system and I've set up two IP
> aliases on the box for the ethernet card. I have also set up the
> virutal host configuration for the two domains in httpd.conf according
> to the example on ip based virtual hosting in the apache documentation.
> I can only serve one domain though and it's the pages defined by the
> document root and not the pages defined by the virtual host section so I
> don't think virtual hosting is working at all. Is this even possible
> given my configuration? The IP's I use for the virtual hosts are
> aliases eth0:1 and eth0:2 but I don't see how this works if the requests
> for all the domains are being sent to the static IP?
>
> greatful thanks,
> mike
>

You can use ip based virtual hosting with only one public ip address.
You will have to switch to name based virtual hosting. There should be
an example of name based virtual hosting in the example config file.

Jeff
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:11 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0