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

Rewriting rules and reverse proxying

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache, PHP and permissions  
Author Message
jphblais

External


Since: Oct 21, 2004
Posts: 3



(Msg. 1) Posted: Thu Oct 21, 2004 2:23 pm
Post subject: Rewriting rules and reverse proxying
Archived from groups: alt>apache>configuration (more info?)

Hi,

I want to add in my URL something like this :
http://www.domain.com/forums/ that point to http://forums.domain.com/
That work with
RewriteRule ^/forums/* http://forums.domain.com/ [L,P]
BUT all the link in the page are in the form of http://www.domain.com/
instead of http://www.domain.com/forums/

Thank you,
JP.

 >> Stay informed about: Rewriting rules and reverse proxying 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Thu Oct 21, 2004 7:25 pm
Post subject: Re: Rewriting rules and reverse proxying [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-10-21, Jean-Philippe Blais <jphblais.TakeThisOut@videotron.ca> wrote:
 > I want to add in my URL something like this :
<font color=purple> > <a style='text-decoration: underline;' href="http://www.domain.com/forums/" target="_blank">http://www.domain.com/forums/</a> that point to <a style='text-decoration: underline;' href="http://forums.domain.com/</font" target="_blank">http://forums.domain.com/</font</a>>
 > That work with

ProxyPass /forums/ <a style='text-decoration: underline;' href="http://forums.domain.com/" target="_blank">http://forums.domain.com/</a>
ProxyPassReverse /forums/ <a style='text-decoration: underline;' href="http://forums.domain.com/" target="_blank">http://forums.domain.com/</a>

Note: this won't work if the forum return absolute url in the html.
Davide

--
Q: How many Microsoft vice presidents does it take to change a light bulb?
A: Eight. One to work the bulb, and seven to make sure that Microsoft gets $2
for every light bulb ever changed anywhere in the world.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Rewriting rules and reverse proxying 
Back to top
Login to vote
jphblais

External


Since: Oct 21, 2004
Posts: 3



(Msg. 3) Posted: Fri Oct 22, 2004 1:32 am
Post subject: Re: Rewriting rules and reverse proxying [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi a écrit :

 > On 2004-10-21, Jean-Philippe Blais <jphblais.DeleteThis@videotron.ca> wrote:
 >
  >>I want to add in my URL something like this :
<font color=green>  >>http://www.domain.com/forums/ that point to <a style='text-decoration: underline;' href="http://forums.domain.com/</font" target="_blank">http://forums.domain.com/</font</a>>
  >>That work with
 >
 >
<font color=purple> > ProxyPass /forums/ <a style='text-decoration: underline;' href="http://forums.domain.com/</font" target="_blank">http://forums.domain.com/</font</a>>
<font color=purple> > ProxyPassReverse /forums/ <a style='text-decoration: underline;' href="http://forums.domain.com/</font" target="_blank">http://forums.domain.com/</font</a>>
 >
 > Note: this won't work if the forum return absolute url in the html.
 > Davide
 >

Thank you, it work but... why the images are loading from the first
server? This is because all /images/ are not rewriten as
/forums/images/ but all other links in the page are ok... why?

JP.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Rewriting rules and reverse proxying 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Fri Oct 22, 2004 7:58 am
Post subject: Re: Rewriting rules and reverse proxying [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-10-22, Jean-Philippe Blais <jphblais.TakeThisOut@videotron.ca> wrote:
 > Thank you, it work but... why the images are loading from the first
 > server?

Because they are not in /forums/.
Davide

--
If we added up all of the 2 cents that Slashdot readers gave, I wonder how
much sense vs. cents we'd have.

-- From a Slashdot.org post<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Rewriting rules and reverse proxying 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Rewriting rules - invoking dynamic content - Hi - I'm trying to achieve the following; Accesses to the root of a certain directory invoking a script, accesses to 'pages' within that directory invoking the same script with parameters. I've tried variants of the following: Options +ExecCGI..

*Newbee* problem with rewrite mod/reverse proxying - Hi all, I've read lots of docs on the web but I can help say to myself that I'm really a big noob. So that's the problem. I've got a web site which is hosted on a server (for the moment it's easy lol) This server countain several aplications which are...

basic authentication and proxying - Hello everyone, I have this weird problem with getting authentication working with proxying. I was able to get the authentication working without proxying. I made a ..htaccess file: AuthType Basic AuthName UserAdmin AuthUserFile..

Error 500 proxying to SSL-secured site - I have a web-based application that I'm trying to reverse proxy through Apache 2.0. I'd like for the connection between browser and proxy to be SSL-secured, but due to certain limitations with this application that also means the connection between..

websphere application crashes when proxying to site throug.. - Background: An AS/400 on the company network is running websphere 5r1 (soon to be r2). The developer is creating applications that are to be accessible from the Internet. He is running an instance of apache on port 80, using the "WebSphere Plugin&...
   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 ]