httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeffrey_n_D...@Keane.com
Subject Re: [users@httpd] Re: virtual IP based hosting with static IP?
Date Tue, 29 Jun 2004 14:50:02 GMT



>Yes. I assigned some ip aliases to the single nic card using ifconfig but
I don't see how
>apache can map to these addresses using ip-based virtual hosting.  I can
how apache
>can map to them using the domain name if i set up name-based hosting but
if I use ip-based
>hosting then the ip address of both domains will be the same on an
incomming request and
>apache will not be able to distinguish which domain the ip is referring
to.

By default Apache will listen to all IPs that are on your server.  So if
you have a valid IP address that you can ping, then you can add it to the
httpd.conf and apache will direct traffic to that server for all requsts to
that IP.  If you don't have a Virtual defined for that IP, apache will send
it to the main server. Of course this method requires setting up DNS for
each Domain/IP address.

>in short, i can do name-based hosting but I read that I can't if I want
one of the domains to
>process credit cards in which case I need https and therefore must use
ip-based hosting.

You should easily be able to do this.  All of my servers are a single
physical IP with many many virtual IPs.

I'm not sure that this will help or not, but here is an idea of what my
stuff looks like.  I manage all my conf files in a single directory so the
lower output is from a script that reads active files..so its a bit
bastardized, but the values are what is in the VirtualHost and ServerName
directives, respectively.

ifconfig -a | grep inet
        inet 127.0.0.1 netmask ff000000
        inet 4.11.24.49 netmask ffffff00 broadcast 4.19.242.255
        inet 4.11.24.182 netmask ffffff00 broadcast 4.11.24.255
        inet 4.11.24.183 netmask ffffff00 broadcast 4.11.24.255
        inet 4.11.24.184 netmask ffffff00 broadcast 4.11.24.255
        inet 4.11.24.185 netmask ffffff00 broadcast 4.11.24.255
        inet 4.11.24.186 netmask ffffff00 broadcast 4.11.24.255
        inet 4.11.24.187 netmask ffffff00 broadcast 4.11.24.255
        inet 4.11.24.188 netmask ffffff00 broadcast 4.11.24.255
        inet 4.11.24.189 netmask ffffff00 broadcast 4.11.24.255
        inet 4.11.24.190 netmask ffffff00 broadcast 4.11.24.255
        inet 4.11.24.191 netmask ffffff00 broadcast 4.11.24.255
        inet 4.11.24.193 netmask ffffff00 broadcast 4.11.24.255

Virtual Host      ServerName
4.11.24.185       dns1.domain.com
4.11.24.186       dns2.domain.com
4.11.24.183       dns3.domain.com
4.11.24.184       dns4.domain.com
4.11.24.190       dns5.domain.com
4.11.24.182       dns6.domain.com
4.11.24.188       dns7.domain.com
4.11.24.191       dns8.domain.com
4.11.24.189       dns9.domain.com
4.11.24.187       dns10.domain.com
4.11.24.193       dns11.domain.com

names/ips are changed to protect the innocent.(and my job)








---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



--

The information contained in this email along with all attachments is
confidential and is not to be shared without my permission and prior
knowledge of who will be viewing it's contents including all attachments.


Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!









---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message