Current time: 11-23-2024, 08:21 AM Hello There, Guest! (LoginRegister)


Post Reply 
Private IP Address
Author Message
motokochan Offline
Member
***

Posts: 274
Joined: Jul 2008
Reputation: 1
Post: #5
RE: Private IP Address
First, stop ispcp_daemon while you make these edits.

Next, you'll need to edit a few templates to remove references to the internal IP.

Specifically, edit:
/etc/ispcp/apache/parts/als_entry.tpl
/etc/ispcp/apache/parts/dmn_entry.tpl
/etc/ispcp/apache/parts/sub_entry.tpl
/etc/ispcp/apache/parts/vh_entry.tpl

For the first three, find the VirtualHost header, and change the {whatever_IP}:80 to read *:80. For the fourth file, Find the NameVirtualHost line, and set {IP}:80 to *:80.

Now, follow the directions in Howto regenerate the config files.

This should allow your websites to be accessed on any IP that is bound on the box, instead of by the internal IP only.

As a note, you'll get lots of Apache warnings when you start or restart the service (one warning per site) because of duplicated directives since we wildcarded the IP. This is fine and won't break anything. Fixing those would take a lot more work and I'd rather focus on building proper NAT support into the application.
(This post was last modified: 12-21-2009 08:13 AM by motokochan.)
12-21-2009 08:10 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Private IP Address - Macsloverd - 12-21-2009, 07:15 AM
RE: Private IP Address - kilburn - 12-21-2009, 07:36 AM
RE: Private IP Address - Macsloverd - 12-21-2009, 08:00 AM
RE: Private IP Address - motokochan - 12-21-2009, 07:45 AM
RE: Private IP Address - motokochan - 12-21-2009 08:10 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)