Current time: 12-23-2024, 08:13 PM Hello There, Guest! (LoginRegister)


Post Reply 
private ip not work with apache
Author Message
ramires Offline
Junior Member
*

Posts: 23
Joined: Aug 2008
Reputation: 0
Post: #1
private ip not work with apache
hi
i have a server behind firewall..*(ispcp omega stable 1.0 on debian lenny)

my internal ip 192.x.x.x
my external ip 89.x.x.x

I used 89.x.x.x in Installation process.

when i add a domain to the server all dns and apache real files ip's turn to 89.x.x.x
but i need apache files to be 192.x.x.x becouse of firewall. I have no problem with dns it worked well with 89.x.x.x

Also I changed tpl files
als_entry.tpl:<VirtualHost {ALS_IP}:80>
als_entry.tpl.orj:<VirtualHost {ALS_IP}:80>
dmn_entry.tpl:<VirtualHost {DMN_IP}:80>
dmn_entry.tpl.orj:<VirtualHost {DMN_IP}:80>
ispcp_base.tpl:# httpd [{IP}] virtual host entry BEGIN.
ispcp_base.tpl:# httpd [{IP}] virtual host entry END.
sub_entry.tpl:<VirtualHost {SUB_IP}:80>
sub_entry.tpl.orj:<VirtualHost {SUB_IP}:80>
vh_b.tpl:# httpd [{IP}] virtual host entry BEGIN.
vh_entry.tpl:NameVirtualHost {IP}:80
vh_entry.tpl.orj:NameVirtualHost {IP}:80
vh_e.tpl:# httpd [{IP}] virtual host entry END.

and working file /etc/ispcp/apache/working/ispcp.conf
IP parts to 192.x.x.x but this time gives this error

get_tag() | ERROR: '# httpd [89.x.x.x] virtual host entry BEGIN.
' ne '# httpd [89.x.x.x] virtual host entry END.
', '# httpd [89.x.x.x] virtual host entry BEGIN.
' or '# httpd [89.x.x.x] virtual host entry END.
' missing in src

I try to fix that with perl files but i couldn't find copy part.
if i find that i can easily change real file with sed.
04-30-2009 09:16 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: private ip not work with apache
Why dont you use the external IP on ispCP ?
You have to route the IP to the ispCP Server.

Greez BeNe
05-04-2009 06:10 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ramires Offline
Junior Member
*

Posts: 23
Joined: Aug 2008
Reputation: 0
Post: #3
RE: private ip not work with apache
hi
Our all servers behind the firewall. I use external ip BASE_SERVER_IP = 89.x.x.x

My dns configuration is ok. But apache dont work with external ip=89.x.x.x. I have to set this to 192.x.x.x becouse of firewall. Is there any easy way to set apache ip to 192.x.x.x ?
By the way i changed all tpl and working files to 192.x.x.x

(05-04-2009 06:10 AM)BeNe Wrote:  Why dont you use the external IP on ispCP ?
You have to route the IP to the ispCP Server.

Greez BeNe
05-04-2009 10:12 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: private ip not work with apache
Quote:Is there any easy way to set apache ip to 192.x.x.x ?
Change the IP in the ApacheConfigs directly.

Greez BeNe
05-04-2009 10:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ramires Offline
Junior Member
*

Posts: 23
Joined: Aug 2008
Reputation: 0
Post: #5
RE: private ip not work with apache
hi

I did it already. It works well but when somebody add subdomain or domain all configurations back to 89.x.x.x in apache configs. I need a file (in ispcp pl files) to put a trigger(some sed or awk code) to change my apache files.

(05-04-2009 10:42 PM)BeNe Wrote:  
Quote:Is there any easy way to set apache ip to 192.x.x.x ?
Change the IP in the ApacheConfigs directly.

Greez BeNe
05-06-2009 05:47 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #6
RE: private ip not work with apache
You can change this in the Templates /etc/ispcp/apache/parts and the regenerate your config.

Greez BeNe
05-06-2009 05:49 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ramires Offline
Junior Member
*

Posts: 23
Joined: Aug 2008
Reputation: 0
Post: #7
RE: private ip not work with apache
Hi

I changed tpl files

als_entry.tpl:<VirtualHost {ALS_IP}:80>
als_entry.tpl.orj:<VirtualHost {ALS_IP}:80>
dmn_entry.tpl:<VirtualHost {DMN_IP}:80>
dmn_entry.tpl.orj:<VirtualHost {DMN_IP}:80>
ispcp_base.tpl:# httpd [{IP}] virtual host entry BEGIN.
ispcp_base.tpl:# httpd [{IP}] virtual host entry END.
sub_entry.tpl:<VirtualHost {SUB_IP}:80>
sub_entry.tpl.orj:<VirtualHost {SUB_IP}:80>
vh_b.tpl:# httpd [{IP}] virtual host entry BEGIN.
vh_entry.tpl:NameVirtualHost {IP}:80
vh_entry.tpl.orj:NameVirtualHost {IP}:80
vh_e.tpl:# httpd [{IP}] virtual host entry END.

and working file /etc/ispcp/apache/working/ispcp.conf

IP parts to 192.x.x.x

when i try to add domain I saw this in mysql :

get_tag() | ERROR: '# httpd [89.x.x.x] virtual host entry BEGIN.
' ne '# httpd [89.x.x.x] virtual host entry END.
', '# httpd [89.x.x.x] virtual host entry BEGIN.
' or '# httpd [89.x.x.x] virtual host entry END.
' missing in src


(05-06-2009 05:49 PM)BeNe Wrote:  You can change this in the Templates /etc/ispcp/apache/parts and the regenerate your config.

Greez BeNe
05-07-2009 10:36 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #8
RE: private ip not work with apache
Do not replace the commented {IP} entries by your local IP, as these are the marks used by ispcp to locate the different configuration sections. That said, it's ok if you replace the non-commented {IP} entries Smile
05-07-2009 11:01 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ramires Offline
Junior Member
*

Posts: 23
Joined: Aug 2008
Reputation: 0
Post: #9
RE: private ip not work with apache
Ok

It works very well. Also I recognized that new stable relase start with

# httpd [89.x.x.x] virtual host entry BEGIN.

NameVirtualHost 192.x.x.x:80

at the end of ( it is not erase the old entries) working/ispcp.conf. So when i tried to enter a subdomain older domain entries.It didn't work.

Thanks all..

(05-07-2009 11:01 PM)kilburn Wrote:  Do not replace the commented {IP} entries by your local IP, as these are the marks used by ispcp to locate the different configuration sections. That said, it's ok if you replace the non-commented {IP} entries Smile
05-08-2009 06:06 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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