You are not logged in.

#1 2010-05-12 21:02:23

big_gie
Member
Registered: 2005-01-19
Posts: 637

Web server: showing other server's content?

Hi all,

Can anybody tell me if what I want to do is possible?

I have two web servers. Both servers can see each other, but only one is available from outside my network.

What I want to do is be able to access the server which is normally hidden. Can I use the accessible one to make the hidden one accessible to?

Maybe I can set up a special page on the accessible server that will serve the content of the hidden one? I don't have shell access, so I can't mount a remote fs.

Any ideas? Is it at all possible?

Thanx!

Offline

#2 2010-05-12 21:05:08

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: Web server: showing other server's content?

That sounds like you want to set up a proxy. Apache, lighttpd and most likely other servers have modules for this task.

Offline

#3 2010-05-12 21:09:44

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Web server: showing other server's content?

The thing is, I have minimum control over the accessible server: only its content (I think it has php enabled though) while the other one is under my control.

Offline

#4 2010-05-12 22:43:46

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Web server: showing other server's content?

If it's apache, has mod_proxy enabled and you can create a .htaccess file then you can still use the proxy module.

I use a reverse proxy with virtual hosts on my gateway:

<VirtualHost *:80>
    ServerName nagios.mydomain.com
    ProxyPass / http://192.168.235.201/
    ProxyPassReverse / http://192.168.235.201/
</VirtualHost>

Offline

#5 2010-05-13 15:58:30

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Web server: showing other server's content?

@fukawi2
Can that be placed into .htaccess or only the main apache config? I don't have access to this on the server but still its a good idea. I did not even know it was possible to do this with apache!

Offline

#6 2010-05-13 23:23:30

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Web server: showing other server's content?

big_gie wrote:

@fukawi2
Can that be placed into .htaccess or only the main apache config? I don't have access to this on the server but still its a good idea. I did not even know it was possible to do this with apache!

Ah, I thought it could, but a quick Google to confirm appears than it cant... Sorry for misleading you sad

Offline

Board footer

Powered by FluxBB