Current time: 11-27-2024, 12:35 PM Hello There, Guest! (LoginRegister)


Post Reply 
[NOT ISPCP RELATED] ProxyPass to old server in a lan
Author Message
lukeduck Offline


Posts: 4
Joined: Dec 2009
Reputation: 0
Post: #1
[NOT ISPCP RELATED] ProxyPass to old server in a lan
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
(This post was last modified: 12-07-2009 11:56 AM by gOOvER.)
12-06-2009 11:46 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: #2
RE: ProxyPass to old server in a lan
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).
12-07-2009 04:53 AM
Visit this user's website Find all posts by this user Quote this message in a reply
lukeduck Offline


Posts: 4
Joined: Dec 2009
Reputation: 0
Post: #3
RE: ProxyPass to old server in a lan
(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.
12-07-2009 06:54 AM
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: #4
RE: ProxyPass to old server in a lan
what does "apache2ctl -S" tell you?
12-07-2009 06:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
lukeduck Offline


Posts: 4
Joined: Dec 2009
Reputation: 0
Post: #5
RE: ProxyPass to old server in a lan
(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
12-07-2009 07:14 AM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #6
RE: [NOT ISPCP RELATED] ProxyPass to old server in a lan
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
12-07-2009 11:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
lukeduck Offline


Posts: 4
Joined: Dec 2009
Reputation: 0
Post: #7
RE: [NOT ISPCP RELATED] ProxyPass to old server in a lan
(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.
12-08-2009 08:44 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)