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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux