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
  #21  
Old 19th June 2007, 17:08
stirfry stirfry is offline
Member
 
Join Date: Jun 2007
Posts: 37
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Yes, my server is hosted behind a router, and 209.40.195.6 is the external IP address.

When I use the IP address (http://209.40.195.6/), I get the doc root of all sites, but when I go to http://www.sdellis.com, I get the "Shared IP" message. Also, my Vhost_ispconfig.conf IS included in the apache config file.
Reply With Quote
Sponsored Links
  #22  
Old 19th June 2007, 17:21
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

You must use the internal IP for the websites and not the external IP when your server is behind a router.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #23  
Old 19th June 2007, 18:00
stirfry stirfry is offline
Member
 
Join Date: Jun 2007
Posts: 37
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Till,
I really appreciate your help, but I'm afraid I don't understand. I got three IP addresses with my Virtual Private Server plan with the understanding that I would need a unique IP for each site that needs its own SSL cert. Why would I only use one of these IPs with ISPConfig? Maybe I'm wrongly assuming these are external IPs? Here's the full output of ifconfig:

Code:
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:748595 errors:0 dropped:0 overruns:0 frame:0
          TX packets:821711 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:137913330 (131.5 MiB)  TX bytes:132132764 (126.0 MiB)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          inet addr:209.40.196.6  P-t-P:209.40.196.6  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

venet0:1  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          inet addr:209.40.194.6  P-t-P:209.40.194.6  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

venet0:2  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          inet addr:209.40.195.6  P-t-P:209.40.195.6  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
Reply With Quote
  #24  
Old 20th June 2007, 17:40
stirfry stirfry is offline
Member
 
Join Date: Jun 2007
Posts: 37
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Ok, I figured this out.

I had to go into my /etc/apache2/vhosts/Vhosts_ispconfig.conf file and comment out the NameVirtualHost information for the IP addresses that I want to use SSL with. I guess ISPConfig assumes you want to used Name-based virtual hosts.

Code:
NameVirtualHost 209.40.194.6:80
<VirtualHost 209.40.194.6:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
</VirtualHost>
#NameVirtualHost 209.40.195.6:80
#<VirtualHost 209.40.195.6:80>
#  ServerName localhost
#  ServerAdmin root@localhost
#  DocumentRoot /var/www/sharedip
#</VirtualHost>
I'm using name based vhosts on 209.40.194.6, but not on 209.40.195.6.
Reply With Quote
  #25  
Old 7th August 2007, 10:33
ultraav ultraav is offline
Junior Member
 
Join Date: Aug 2007
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hello guys,

I am new to ispconfig and I have this annoying problem, which seems to be quite similar to the one discussed here. The difference is my web server uses a private ip address, as it is behind a firewall/router. So, even if the DocumentRoot of my www.domainname was set by ispconfig to /var/www/web6/web... httpd still uses /var/www/html as docroot when responding to requests for www.domainname

Does anyone have a clue what is the proper way to configure when having the web server in a private net?

/etc/hosts:
Code:
127.0.0.1               localhost.localdomain localhost
192.168.1.10            servername.domainname servername
Vhosts_ispconfig.conf:
Code:
###################################
#
# ISPConfig vHost Configuration File
#         Version 1.0
#
###################################
#
NameVirtualHost externalip:80
<VirtualHost externalip:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.domainname:80
######################################
#
#
<VirtualHost externalip:80>
ServerName www.domainname:80
ServerAdmin webmaster@domainname
DocumentRoot /var/www/web6/web
ServerAlias domainname
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/web6/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
<Files *.php3>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
<Files *.php4>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
<Files *.php5>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
Alias /error/ "/var/www/web6/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/web6/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web6/user/$1/web/$3
</VirtualHost>
Reply With Quote
  #26  
Old 7th August 2007, 10:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

You use the wrong IP address for the websites. You must use the internal and not the external IP address for the websites, when the server is behind a router.
__________________
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:
ultraav (7th August 2007)
  #27  
Old 7th August 2007, 11:53
ultraav ultraav is offline
Junior Member
 
Join Date: Aug 2007
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

yep, right on the target!

Thank you very much, it works great now.
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
Virtual Hosting: How do I set this up? VinceDee Installation/Configuration 7 12th December 2006 19:36
Building a virtual hosting structure thim Suggest HOWTO 16 25th June 2006 14:40
Virtual Hosting With Proftpd And MySQL (Incl. Quota) Secure? ToysunStory HOWTO-Related Questions 1 9th May 2006 01:03
Virtual hosting with Apache not working gimhan90 Server Operation 10 10th February 2006 16:11
postfix config jmroth Installation/Configuration 6 18th September 2005 16:58


All times are GMT +2. The time now is 21:36.


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