ispCP - Board - Support
[NOT ISPCP RELATED] ProxyPass to old server in a lan - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [NOT ISPCP RELATED] ProxyPass to old server in a lan (/thread-8679.html)



[NOT ISPCP RELATED] ProxyPass to old server in a lan - lukeduck - 12-06-2009 11:46 PM

Hi,
I would like to install one new server (Debian+Ispcp) behind the firewall router, and use ProxyPass Directives in to redirect old sites on the old server in the lan for testing.

Here is an example of the directive i want to put in ispcp :

<VirtualHost *:80>
ProxyPreserveHost On
ServerName modele.francejoomla.net
ProxyPass / http://ip.old-server/
ProxyPassReverse / http://ip.old-server/
</VirtualHost>

My question is :

What is the process in ispcp ?

Where to put this directive ?

Luke


RE: ProxyPass to old server in a lan - kilburn - 12-07-2009 04:53 AM

This has nothing to do with ispcp. Just put the directives in a new file inside /etc/apache2/sites-available/ and create a symlink to it in /etc/apache2/sites-enabled/, making sure that it's the first file that will get loaded by apache (they're loaded in alphabetical order).


RE: ProxyPass to old server in a lan - lukeduck - 12-07-2009 06:54 AM

(12-07-2009 04:53 AM)kilburn Wrote:  This has nothing to do with ispcp. Just put the directives in a new file inside /etc/apache2/sites-available/ and create a symlink to it in /etc/apache2/sites-enabled/, making sure that it's the first file that will get loaded by apache (they're loaded in alphabetical order).


Hi,

Ok i have test but without success.

I have create one file "00_lanvhosts" in /etc/apache2/sites-available/ and a symlink to it in /etc/apache2/sites-enabled/ like you said.

It is the first file in alphabetical order

I hope you can help me.


RE: ProxyPass to old server in a lan - kilburn - 12-07-2009 06:57 AM

what does "apache2ctl -S" tell you?


RE: ProxyPass to old server in a lan - lukeduck - 12-07-2009 07:14 AM

(12-07-2009 06:57 AM)kilburn Wrote:  what does "apache2ctl -S" tell you?

shark4:/# apache2ctl -S
[Sun Dec 06 22:12:34 2009] [warn] NameVirtualHost 192.168.0.15:80 has no VirtualHosts
[Sun Dec 06 22:12:34 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
VirtualHost configuration:
192.168.0.16:80 is a NameVirtualHost
default server modele.francejoomla.net (/etc/apache2/sites-enabled/000_hostslan:1)
port 80 namevhost modele.francejoomla.net (/etc/apache2/sites-enabled/000_hostslan:1)
port 80 namevhost http://www.modele.francejoomla.net (/etc/apache2/sites-enabled/000_hostslan:8)
port 80 namevhost isp.shark4.francejoomla.fr (/etc/apache2/sites-enabled/00_master.conf:24)
port 80 namevhost babarette33.francejoomla.net (/etc/apache2/sites-enabled/ispcp.conf:65)
port 80 namevhost francejoomla.fr (/etc/apache2/sites-enabled/ispcp.conf:185)
127.0.0.1:80 is a NameVirtualHost
default server shark4.francejoomla.fr.local (/etc/apache2/sites-enabled/01_awstats.conf:28)
port 80 namevhost shark4.francejoomla.fr.local (/etc/apache2/sites-enabled/01_awstats.conf:28)
Syntax OK


RE: [NOT ISPCP RELATED] ProxyPass to old server in a lan - gOOvER - 12-07-2009 11:57 AM

For the next time. Not ispCP related things will be closed without giving a reason. Wink We are not here to support all and everything Wink


RE: [NOT ISPCP RELATED] ProxyPass to old server in a lan - lukeduck - 12-08-2009 08:44 PM

(12-07-2009 11:57 AM)gOOvER Wrote:  For the next time. Not ispCP related things will be closed without giving a reason. Wink We are not here to support all and everything Wink

Hi,

I understand your position but its' the only possibility for me to test ispcp, i want to put this server first in the lan on port 80.