private ip not work with apache - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: System Setup & Installation (/forum-32.html) +--- Thread: private ip not work with apache (/thread-6577.html) |
private ip not work with apache - ramires - 04-30-2009 09:16 PM 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. RE: private ip not work with apache - BeNe - 05-04-2009 06:10 AM Why dont you use the external IP on ispCP ? You have to route the IP to the ispCP Server. Greez BeNe RE: private ip not work with apache - ramires - 05-04-2009 10:12 PM 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 ? RE: private ip not work with apache - BeNe - 05-04-2009 10:42 PM Quote:Is there any easy way to set apache ip to 192.x.x.x ?Change the IP in the ApacheConfigs directly. Greez BeNe RE: private ip not work with apache - ramires - 05-06-2009 05:47 PM 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. RE: private ip not work with apache - BeNe - 05-06-2009 05:49 PM You can change this in the Templates /etc/ispcp/apache/parts and the regenerate your config. Greez BeNe RE: private ip not work with apache - ramires - 05-07-2009 10:36 PM 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. RE: private ip not work with apache - kilburn - 05-07-2009 11:01 PM 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 RE: private ip not work with apache - ramires - 05-08-2009 06:06 PM 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 |