Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Dynamic ProxyPass

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  problems with mod_autoindex  
Author Message
adam9

External


Since: Jul 04, 2004
Posts: 1



(Msg. 1) Posted: Sun Jul 04, 2004 6:32 am
Post subject: Dynamic ProxyPass
Archived from groups: alt>apache>configuration (more info?)

Hi all,

I'm trying to set-up sub-directories on a web-site, that will act as a
proxy to other web servers.

I.e:

/app/ ->http://app.internal/
/test/ ->http://test.internal/
/mail/ ->http://mail.internal/

I anticipate that I will be adding many sub-directories, and am
looking for a way to add them without having to restart Apache or
touch it's config files.

Is it possible to have this set-up dynamically (ie - get Apache to
read in a .txt file to see where it should proxy to)?

Any tips would be gratefully received.
Regards,
Adam Cable

 >> Stay informed about: Dynamic ProxyPass 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Sun Jul 04, 2004 7:21 pm
Post subject: Re: Dynamic ProxyPass [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Adam Cable <adam.RemoveThis@adsar.co.uk> wrote:
 > I anticipate that I will be adding many sub-directories, and am
 > looking for a way to add them without having to restart Apache or
 > touch it's config files.

Use a cgi application or another server-side executed bit of software.
Davide

--
| Unnamed Law: If it happens, it must be possible.
|
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Dynamic ProxyPass 
Back to top
Login to vote
adam10

External


Since: Jul 05, 2004
Posts: 2



(Msg. 3) Posted: Mon Jul 05, 2004 9:16 am
Post subject: Re: Dynamic ProxyPass [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:
 > Adam Cable <adam.DeleteThis@adsar.co.uk> wrote:
  >> I anticipate that I will be adding many sub-directories, and am
  >> looking for a way to add them without having to restart Apache or
  >> touch it's config files.
 >
 > Use a cgi application or another server-side executed bit of software.
 > Davide

Davide,

Do you have any examples/urls for these types of applications?

Thanks,
Adam

 >
  >> Unnamed Law: If it happens, it must be possible.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Dynamic ProxyPass 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Mon Jul 05, 2004 11:06 am
Post subject: Re: Dynamic ProxyPass [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Adam Cable <adam DeleteThis @nospamadsar.co.uk> wrote:
 > Do you have any examples/urls for these types of applications?

This little bit of code:

#!/usr/bin/perl
print "Content-type: text/plain\n\n";
$req=$ENV{'REQUEST_URI'};
print "<html><head>\n";
print "Now redirecting to $req.domain.com\n";
print "<meta http-equiv='refresh' content='0;url=$req.domain.com'>\n";
print "</head></html>";

get the requested URI and make up a 'redirect' directive that, if you
change the first line from text/plain to text/html will have your
browser redirected to the required domain.

Davide

--
| A triangle which has an angle of 135 degrees is called an obscene
| triangle.
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Dynamic ProxyPass 
Back to top
Login to vote
adam10

External


Since: Jul 05, 2004
Posts: 2



(Msg. 5) Posted: Wed Jul 07, 2004 9:12 am
Post subject: Re: Dynamic ProxyPass [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:
 > Adam Cable <adam RemoveThis @nospamadsar.co.uk> wrote:
  >> Do you have any examples/urls for these types of applications?
 >
 > This little bit of code:
 >


Davide,

Thanks for this.
However, I am looking to keep all the functionality of the ProxyPass module.

Any ideas of how to create mass & dynamic ProxyPass's?

Adam<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Dynamic ProxyPass 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 6) Posted: Wed Jul 07, 2004 10:06 am
Post subject: Re: Dynamic ProxyPass [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Adam Cable <adam RemoveThis @nospamadsar.co.uk> wrote:
 > Any ideas of how to create mass & dynamic ProxyPass's?

AFAIK you can't. Unless you hack the mod_proxy source code.
Davide

--
| Experience is something you don't get until just after you need it.
|
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Dynamic ProxyPass 
Back to top
Login to vote
jslive

External


Since: May 21, 2004
Posts: 8



(Msg. 7) Posted: Wed Jul 07, 2004 11:36 am
Post subject: Re: Dynamic ProxyPass [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi <davideyeahsure DeleteThis @onlyforfun.net> wrote in message news:<2l1lntF7ca1eU1 DeleteThis @uni-berlin.de>...
 > Adam Cable <adam DeleteThis @nospamadsar.co.uk> wrote:
  > > Any ideas of how to create mass & dynamic ProxyPass's?
 >
 > AFAIK you can't. Unless you hack the mod_proxy source code.
 > Davide

Actually, you can use mod_rewrite with the [P] flag to RewriteRule to
do arbitrarily-complicated proxying.

Joshua.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Dynamic ProxyPass 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
ProxyPass / ProxyPassReverse - Hi there after reading the manual-pages on apache.org about the ProxyPass / ProxyPassReverse I don't understand the difference. How can I test it and see the difference ? On my own tests, I didn't found the goal ... Thanks Ruedi :-) ---..

Apache proxypass on RH 9 - I've just installed RH 9 and have apache up and running I've been reading about how to setup proxy passes and think i have it all figured out but i do not know where you get the proxypass mod. webmin shows that it is not installed. any help would be..

Location - proxypass/proxpassreverse - I want to add a location which has an ip address , which includes a port number ( not Port 80) eg 10.6.31.206:8765. However I'am unable to even browse (using the Konquera webbrowser) a website with a port number eg 10.6.31.205:222 any ideas ? Thanks ...

proxypass in virtual host only - Hi We have some troubles by migrating from apache 1.3 x to 2.x. We need to use proxypass inside a virtual host without giving anybody the possibility to use our web as a proxyserver. How can we disable mod_proxy global an activate it only within a..

Vhosts, subdomains and proxypass (probably proxypass ) - I have the folowing problem i cant configure my apache to serve like tkat: if called www.domain.com then apache gets data from domain.com:8100 if called wap.domain.com then apache gets data from domain.com:8200 if called domain.com then apache serves his...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]