On Aug 24, Axel-St?phane  SMORGRAV ([EMAIL PROTECTED]:

Axel:  What do you mean by "URI stays as http://www.temple.edu/mmc/  and not as 
/sct/mmc/" ?? Do you mean what appears in the address bar is not /sct/mmc? Why 
would that change? You do not do any redirect!
Axel:
Axel:  Furthermore, because of the ProxyPassReverse, any /sct/mmc/ in Location 
headers in redirects will be rewritten into /mmc/.
Axel:
Axel:  To your browser, the fact that the path to the resource on the backend 
server is /sct/mmc is totally transparent. That's reverse proxying.
Axel:
Axel:  What is the underlying problem?
Axel:
Axel:
Axel:
Axel:
Axel:
Axel:  BTW: I had a look at your site. Works great!
Axel:
Axel:  After looking at the site, I maybe understood a little better what you 
are after...
Axel:
Axel:  Could it be:
Axel:
Axel:  Redirect /mmc /sct/mmc
Axel:  ProxyPass  /sct/ http://SERVER.temple.edu/sct/
Axel:  ProxyPassReverse  /sct/ http://SERVER.temple.edu/sct/
Axel:
Axel:  is what you want??
Axel:
Axel:  -ascs



Hmmmm.... that's my problem:  I have the 2 ProxyPass for sct, as well as 2 
ProxyPass for mmc.

I commented out the 2 for mmc and added the Redirect and it works.


(Thanks for the kudos about the website, but Im just the admin.  I dont design).





Axel:  -----Original Message-----
Axel:  Sent: Tuesday, August 23, 2005 7:12 PM
Axel:  To: users@httpd.apache.org
Axel:  Subject: [EMAIL PROTECTED] What is the hierarchy/precedence of 2.0 
directives? (Redirect problem)
Axel:
Axel:  Hello All:
Axel:
Axel:  Where can I find (or does anyone know) the order in which Apache 
preforms its directives?  It may or may not solve the underlying problem below, 
but a recent discussion I had prompted the above question.
Axel:
Axel:
Axel:  The underlying problem
Axel:
Axel:   I have 2 entries in the file proxies.conf
Axel:   --------------------------------------------------------------------
Axel:   # proxy directives for http://www.temple.edu/mmc
Axel:   RewriteRule ^/+mmc((/+.*)?$) http://SERVER.temple.edu/sct/mmc$1 [P]
Axel:   ProxyPassReverse /mmc/ http://SERVER.temple.edu/sct/mmc/
Axel:   --------------------------------------------------------------------
Axel:   (not inside of a VirtualHost)
Axel:
Axel:
Axel:   When I enter http://www.temple.edu/mmc, the request is proxied to
Axel:   http://server.temple.edu/sct/mmc/  and the URI is re-written as
Axel:   http://www.temple.edu/sct/mmc/.  This is what I expect and has
Axel:   always worked as expected.
Axel:
Axel:   The problem is when I enter http://www.temple.edu/mmc/  (note the 
trailing slash)
Axel:   The request is still proxied to http://server.temple.edu/sct/mmc, but 
the
Axel:   URI stays as http://www.temple.edu/mmc/  and not as /sct/mmc/.
Axel:
Axel:
Axel:
Axel:
Axel:  My question about the order of directives stems from trying to add
Axel:     Redirect permanment /mmc http://www.temple.edu/sct/mmc/ to httpd.conf 
to compensate.
Axel:
Axel:  I even tried anther RewriteRule, but that didnt work either.
Axel:     RewriteRule ^/+mmc/((/+.*)?$) http://SERVER.temple.edu/sct/mmc$1 [P]
Axel:
Axel:
Axel:  How can I fix the underlying problem?
Axel:
Axel:
Axel:
Axel:
Axel:
Axel:  Thanks.
Axel:  Birl
Axel:
Axel:  Please do not CC me responses to my own posts.
Axel:  I'll read the responses on the list.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to