You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "S.A. Birl" <sb...@concept.temple.edu> on 2005/08/23 19:12:06 UTC

[users@httpd] What is the hierarchy/precedence of 2.0 directives? (Redirect problem)

Hello All:

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.


The underlying problem

	I have 2 entries in the file proxies.conf
	--------------------------------------------------------------------
	# proxy directives for http://www.temple.edu/mmc
	RewriteRule ^/+mmc((/+.*)?$) http://SERVER.temple.edu/sct/mmc$1 [P]
	ProxyPassReverse /mmc/ http://SERVER.temple.edu/sct/mmc/
	--------------------------------------------------------------------
	(not inside of a VirtualHost)


	When I enter http://www.temple.edu/mmc, the request is proxied to
	http://server.temple.edu/sct/mmc/  and the URI is re-written as
	http://www.temple.edu/sct/mmc/.  This is what I expect and has
	always worked as expected.

	The problem is when I enter http://www.temple.edu/mmc/  (note the trailing slash)
	The request is still proxied to http://server.temple.edu/sct/mmc, but the
	URI stays as http://www.temple.edu/mmc/  and not as /sct/mmc/.




My question about the order of directives stems from trying to add
   Redirect permanment /mmc http://www.temple.edu/sct/mmc/
to httpd.conf to compensate.

I even tried anther RewriteRule, but that didnt work either.
   RewriteRule ^/+mmc/((/+.*)?$) http://SERVER.temple.edu/sct/mmc$1 [P]


How can I fix the underlying problem?





Thanks.
Birl

Please do not CC me responses to my own posts.
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org