HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   ISPConfig setup for multiple external IPs (http://www.howtoforge.com/forums/showthread.php?t=22533)

debian-lover 20th April 2008 08:05

ISPConfig setup for multiple external IPs
 
This may sound like complete noob question but anyway here it goes, I need to set up multiple public ips and single private ip on my ispconfig server.

Here is the rough layout of what I intend to achieve

http://image.bayimg.com/jajcbaabh.jpg

My current configurations are :-

Network Interface


Quote:

# This file describes the network interfaces available on your system
#and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0

auto eth0
iface eth0 inet static
address 192.168.16.36
netmask 255.255.255.0
network 192.168.16.0
broadcast 192.168.16.255
gateway 192.168.16.254
Hosts Config
Quote:

127.0.0.1 localhost myserver.com
192.168.16.36 localhost myserver.com

# The following lines are desirable for IPv6 capable hosts
#::1 ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
#ff02::3 ip6-allhosts
  • Where should I put these public IPs in ISPConfig?
  • Do I need more private IPs for SSL websites?

I think it will help me resolve my previous question I posted here

Any help much appreciated.

till 20th April 2008 10:51

This wont work. You need the same number of private IP addresses then you have external IP addresses. Every external IP ahs to be routed to a different internal IP.

You dont have to put the public IP addresses in ISPConfig, in a NAT enviroment the internal IP is used for the websites and not the external.

debian-lover 20th April 2008 19:35

Thanks till, that makes sense.

Now, I do have two public IPs pointing to two different private IPs. When I allocate the second private ip to another domain, in order to get SSL working, I get the "Shared IP page." Any idea why is that?

Thanks for your time.

till 20th April 2008 19:43

Make sure that the domain of the second site points to the second external IP address. Changes in DNS may take up to 48 hours to propagate.

debian-lover 20th April 2008 22:27

OK, done that but the weird problem is that testsite.com point to /var/www/webx/web whereas www.testsite.com points to /var/www/sharedip

here's some related information

Vhosts_ispconfig.conf
Quote:

###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.16.36:80
<VirtualHost 192.168.16.36:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
NameVirtualHost 192.168.16.37:80
<VirtualHost 192.168.16.37:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.testsite.com:80
######################################
#
#
<VirtualHost 192.168.16.37:80>
SuexecUserGroup nobody web14
ServerName www.testsite.com:80
ServerAdmin webmaster@testsite.com
DocumentRoot /var/www/web14/web
ServerAlias testsite.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ErrorLog /var/www/web14/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode On
php_admin_value open_basedir /var/www/web14/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web14/phptmp/
php_admin_value session.save_path /var/www/web14/phptmp/
Alias /error/ "/var/www/web14/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web14/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web14/user/$1/web/$3
</VirtualHost>
#
#
#
Co-domain info
Quote:

IP Hostname Domain
192.168.16.37 testsite.com
DNS
Quote:

Domain (SOA): testsite.com
IP Address: 222.222.222.221
A-Record
Quote:

IP-Adresse Hostname
222.222.222.221 www

debian-lover 21st April 2008 11:56

Resolved. PEBKAC Error.


All times are GMT +2. The time now is 01:28.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.