Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th February 2009, 21:50
bobwdn bobwdn is offline
Member
 
Join Date: Dec 2006
Location: Nashville, Tennessee, USA
Posts: 50
Thanks: 7
Thanked 0 Times in 0 Posts
Default Cannot access seconddomain website

My situation is as follows:

I can access my firstdomain.com website via my web browser. This first domain also has two test email addresses in it and I can send and receive emails.

I have a subdomain of email1.firstdomain.com that can be accessed by my web browser. (Followed Squirrelmail On Your ISPConfig Server Within 10 Easy Steps to set up and it works correctly. Emails can be accessed via any web browser to send and receive.)

Finally, I have a third website of seconddomain.com that I cannot access. When I dig the seconddomain.com address, the ISP nameservers are pointing to the correct IP address for my IPSConfig server. But, my webbrowser just hangs when attempting to access.

This is my /etc/hosts file:

Code:
myuser@computerhostname:~$ cat /etchosts
127.0.0.1	localhost
192.168.5.102	computerhostname.firstdomain.com	computerhostname

# 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
My Vhost_ispconfig.conf file is:

Code:
myuser@computerhostname:~$ cat /etc/apache2/vhosts/Vhosts_ispconfig.conf
###################################
#
# ISPConfig vHost Configuration File
#         Version 1.0
#
###################################
#
NameVirtualHost 192.168.5.102:80
<VirtualHost 192.168.5.102:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
  </IfModule>
</VirtualHost>
#
#
######################################
# Vhost: www.firstdomain.com:80
######################################
#
#
<VirtualHost 192.168.5.102:80>
ServerName www.firstdomain.com:80
ServerAdmin webmaster@firstdomain.com
DocumentRoot /var/www/web10/web
ServerAlias firstdomain.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/web10/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
Alias /error/ "/var/www/web10/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/web10/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web10/user/$1/web/$3
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]
</IfModule>
</VirtualHost>
#
#
#
######################################
# Vhost: www.seconddomain.com:80
######################################
#
#
<VirtualHost 192.168.5.102:80>
ServerName www.seconddomain.com:80
ServerAdmin webmaster@seconddomain.com
DocumentRoot /var/www/web31/web
ServerAlias seconddomain.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/web31/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
Alias /error/ "/var/www/web31/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/web31/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web31/user/$1/web/$3
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]
</IfModule>
</VirtualHost>
#
#
#
######################################
# Vhost: email1.firstdomain.com:80
######################################
#
#
<VirtualHost 192.168.5.102:80>
ServerName email1.firstdomain.com:80
ServerAdmin webmaster@firstdomain.com
DocumentRoot /var/www/web32/web
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/web32/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
Alias /error/ "/var/www/web32/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/web32/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web32/user/$1/web/$3
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]
</IfModule>
</VirtualHost>
#
#
My /etc/resolv.conf file is:

Code:
myuser@computerhostname:~$ cat /etc/resolv.conf
search firstdomain.com
nameserver 205.152.150.23
nameserver 205.152.132.23
If I am understanding what I read, the seconddomain should be an internal IP address of 192.168.5.103?

Should the email1.firstdomain.com IP address be the same as firstdomain.com (192.168.5.102)? Or should it be 192.168.5.104?

And the /etc/hosts file should be changed like The Perfect Setup - Debian Sarge (3.1) - Page 3 suggests any change connected to the above questions?
Reply With Quote
Sponsored Links
  #2  
Old 11th February 2009, 08:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,504
Thanks: 813
Thanked 5,265 Times in 4,129 Posts
Default

In DNS you must use the external IP for seconddomain.com and not the internal IP. In the website settings you have to use the internal IP.
__________________
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:
bobwdn (11th February 2009)
  #3  
Old 11th February 2009, 14:11
bobwdn bobwdn is offline
Member
 
Join Date: Dec 2006
Location: Nashville, Tennessee, USA
Posts: 50
Thanks: 7
Thanked 0 Times in 0 Posts
Default used external IP

Yes, GoDaddy nameservers point both domains to the same external IP address that is actually my IPCop firewall. IPCop (orange DMZ) ports are forwarded to the ISPConfig server for firstdomain.com and seconddomain.com.

It is the internal IP address that has me confused. The firstdomain.com has a subdomain of email1.firstdomain.com under it. The seconddomain.com is the one I cannot access. All three domains are the same internal address of 192.168.5.102.

Am I understanding correctly that I need to add info to the /etc/hosts file as well as change the internal IP address of seconddomain.com (to 192.168.5.103?) And do I leave the subdomain of email1.firstdomain.com on the same internal IP address (192.168.5.102)as the firstdomain.com (192.168.5.102) website?

The combinations of changes has me befuddled and I am attempting to get a sense that I am close to being correct. I am learning more everyday and for that I thank all of you.
Reply With Quote
  #4  
Old 11th February 2009, 17:27
bobwdn bobwdn is offline
Member
 
Join Date: Dec 2006
Location: Nashville, Tennessee, USA
Posts: 50
Thanks: 7
Thanked 0 Times in 0 Posts
Default Tried this

I have changed my /etc/hosts file to:

Code:
root@computerhostname:/home/admin# cat /etc/hosts
127.0.0.1	localhost
192.168.5.102	computerhostname.firstdomain.com	computerhostname
192.168.5.103	seconddomain.com	seconddomain

# 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
I changed the internal IP address for the seconddomain.com site to 192.168.5.103 after adding 192.168.5.103 to my list of internal IP addresses.

I have changed my /etc/network/interfaces to:

Code:
root@computerhostname:/home/admin# cat /etc/network/interfaces
# 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
auto eth0
iface eth0 inet static
	address 192.168.5.102
	netmask 255.255.255.0
	network 192.168.5.0
	broadcast 192.168.5.255
	gateway 192.168.5.10
	# dns-* options are implemented by the resolvconf package, if installed
	dns-nameservers 205.152.150.23 205.152.132.23
	dns-search firstdomain.com

auto eth0:0
iface eth0:0 inet static
        address 192.168.5.103
        netmask 255.255.255.0
        network 192.168.5.0
        broadcast 192.168.5.255
        gateway 192.168.5.10
And have sent a test email from user@seconddomain.com to an outside (my home) email. That email was received, however it has the wrong return email address on it. When I reply to the received email my ISP responds with
Code:
The following addresses had delivery problems:

<my.user@firstdomain.com>
	Permanent Failure: 
550_5.1.1_<my.user@firstdomain.com>:_Recipient_address_rejected:_User_unkno
wn_in_local_recipient_table
This address has been set (in Squirrelmail Personal Information) to olduser@seconddomain.com. Why would the address appear to be from a different ISPConfig database?

Last edited by bobwdn; 11th February 2009 at 17:31.
Reply With Quote
  #5  
Old 11th February 2009, 21:04
bobwdn bobwdn is offline
Member
 
Join Date: Dec 2006
Location: Nashville, Tennessee, USA
Posts: 50
Thanks: 7
Thanked 0 Times in 0 Posts
Default additional information

When I attempt to telnet into firstdomain.com, I get an answer and I can connect with an existing user.

When I attempt to telnet into seconddomain.com, I get
Code:
Trying xxx.xxx.xxx.xxx. . . .
and eventually the connection times out.

And telnet is attempting to connect to the correct external IP address for my server.
Reply With Quote
  #6  
Old 12th February 2009, 10:26
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,504
Thanks: 813
Thanked 5,265 Times in 4,129 Posts
Default

Then most likely seconddomain.com does not point to the correct IP address.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 12th February 2009, 11:01
bobwdn bobwdn is offline
Member
 
Join Date: Dec 2006
Location: Nashville, Tennessee, USA
Posts: 50
Thanks: 7
Thanked 0 Times in 0 Posts
Default internal or external

Are you referring to my internal IP address (within ISPConfig) or my nameserver directive (Internet address?)
Reply With Quote
  #8  
Old 12th February 2009, 14:08
bobwdn bobwdn is offline
Member
 
Join Date: Dec 2006
Location: Nashville, Tennessee, USA
Posts: 50
Thanks: 7
Thanked 0 Times in 0 Posts
Default Too Complex

Well, from what I can see, my configuration is too complex for my skills.

Thanks for every ones help.
Reply With Quote
  #9  
Old 12th February 2009, 14:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Did you check seconddomain.com on http://www.intodns.com/ ? Maybe there's some kind of misconfiguration.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
bobwdn (12th February 2009)
  #10  
Old 12th February 2009, 19:02
bobwdn bobwdn is offline
Member
 
Join Date: Dec 2006
Location: Nashville, Tennessee, USA
Posts: 50
Thanks: 7
Thanked 0 Times in 0 Posts
 
Default Now that helps!

Thank you.

I gave up on the seconddomain email hosting due to external business pressures ("got to get this done" attitude from someoneelse) but, this will help me learn and cleanup my primary site.

I was reading a little about IPSConfig 3 and it sounds VERY interesting.

I was so pleased to see ISPConfig 3 does not use bind among other changes and improvements. (just a comment) Thanks.
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
can't access my website elloydaz General 2 20th October 2008 05:59
local website access patfee Installation/Configuration 1 30th November 2007 22:25
access website via intranet resnostyle General 1 29th October 2006 19:03
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 18:26
website access while domain is not activ mystix General 10 28th January 2006 13:32


All times are GMT +2. The time now is 02:34.


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