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 11th January 2007, 08:00
cocoyriv cocoyriv is offline
Junior Member
 
Join Date: Jan 2007
Location: Dasmarinas, Philippines
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to cocoyriv Send a message via Skype™ to cocoyriv
Default ispconfig behind a router

i'm not sure if this topic has been posted anywhere. i just need some help regarding how i setup my ispconfig. im new to ispconfig so please bear with me. the server i have with ispconfig is connected to an adsl router. i am using port forwarding (virtual server) on the router so that the http and ftp ports are available from outside. i have two computers hooked up to the router. one is the server with ispconfig and the other is my workstation. i use the server also as dns server for the workstation. when i type in the domain name (www.mydomain.com) of one of the sites in the server with ispconfig i get the default directory /var/www and not the website itself. ftp seems to be working since ftp-ing to any of the sites brings me to their corresponding directory (/var/web/web#). however, if i change the ip address to point directly to the server ip and not the router everything works fine. do you find anything wrong with my setup? i hope everything is clear. thanks
Reply With Quote
Sponsored Links
  #2  
Old 11th January 2007, 08:32
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,469
Thanks: 813
Thanked 5,254 Times in 4,120 Posts
Default

Please make sure that you selected the internal IP in ISPConfig in the settings of the website. It must be the IP where you forwarded port 80 to. If you configured the Domain in the DNS-Manager of ISPCOnfig, make sure that you selected the external IP of your router there.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 11th January 2007, 08:51
cocoyriv cocoyriv is offline
Junior Member
 
Join Date: Jan 2007
Location: Dasmarinas, Philippines
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to cocoyriv Send a message via Skype™ to cocoyriv
Default

i'm sure that the dns-manager of ispconfig is pointing to the external ip address of the router and that port 80 is forwarded to the internal address of the ispconfig server. but i still get the /var/www directory and not the website that i typed in the address bar. am i missing something here?
thanks.
Reply With Quote
  #4  
Old 11th January 2007, 10:28
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,469
Thanks: 813
Thanked 5,254 Times in 4,120 Posts
Default

And you selected the internal IP for the website and not the external?

Is the file Vhost_ispconfig.conf empty ore are ther copies of this file with a date appended in the same directory? The directory of the file is normally /etc/apache2/vhosts/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 12th January 2007, 02:29
cocoyriv cocoyriv is offline
Junior Member
 
Join Date: Jan 2007
Location: Dasmarinas, Philippines
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to cocoyriv Send a message via Skype™ to cocoyriv
Default

the ip for the websites in ispconfig point out to the external router ip. the ip in the router where port 80 is forwarded is the internal ip of the server. regarding the vhost_ispconfig.conf file, i saw other copies of the file with dates appended in the same directory. i tried experimenting by moving all the other files to a directory but it still didn't work as i expected. thanks.
Reply With Quote
  #6  
Old 12th January 2007, 09:27
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,469
Thanks: 813
Thanked 5,254 Times in 4,120 Posts
 
Default

Quote:
Originally Posted by cocoyriv
the ip for the websites in ispconfig point out to the external router ip.
Thats wrong. You must use the internal IP for the websites.

Quote:
the ip in the router where port 80 is forwarded is the internal ip of the server. regarding the vhost_ispconfig.conf file, i saw other copies of the file with dates appended in the same directory.
Please do the steps described here to locate the error in your apache configuration:

http://www.howtoforge.com/forums/showthread.php?t=7719
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Multiple Segment Router Setup - Not forwarding Packets jkane1517 Server Operation 4 3rd August 2010 19:48
fastcgi and php with ispconfig tosser Tips/Tricks/Mods 3 25th June 2006 21:01
ISPConfig 2.3.1-dev released till General 0 8th May 2006 22:18
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16
ISP-Ubuntu breezy ispconfig dns email e-mail working finally yellowjelly HOWTO-Related Questions 0 19th November 2005 20:30


All times are GMT +2. The time now is 13:42.


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