Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th April 2008, 09:05
debian-lover debian-lover is offline
HowtoForge Supporter
 
Join Date: Mar 2008
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default 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



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.
Reply With Quote
Sponsored Links
  #2  
Old 20th April 2008, 11:51
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,986
Thanks: 840
Thanked 5,647 Times in 4,457 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
debian-lover (20th April 2008)
  #3  
Old 20th April 2008, 20:35
debian-lover debian-lover is offline
HowtoForge Supporter
 
Join Date: Mar 2008
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #4  
Old 20th April 2008, 20:43
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,986
Thanks: 840
Thanked 5,647 Times in 4,457 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 20th April 2008, 23:27
debian-lover debian-lover is offline
HowtoForge Supporter
 
Join Date: Mar 2008
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default

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

Last edited by debian-lover; 20th April 2008 at 23:35.
Reply With Quote
  #6  
Old 21st April 2008, 12:56
debian-lover debian-lover is offline
HowtoForge Supporter
 
Join Date: Mar 2008
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

Resolved. PEBKAC Error.
Reply With Quote
Reply

Bookmarks

Thread Tools
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 On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use an external mailserver within ISPConfig? Hans General 8 3rd September 2009 20:37
Installing ISPConfig on existing setup xris Installation/Configuration 1 9th September 2006 18:21
SSL Setup In ISPConfig asyadiqin Installation/Configuration 1 6th August 2006 14:18
Fetching external mail with Ispconfig robere General 1 20th June 2006 15:14
Which IP's to use for ISPConfig setup skeeta Installation/Configuration 3 4th September 2005 09:30


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


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