RE: [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]

 



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!

Furthermore, because of the ProxyPassReverse, any /sct/mmc/ in Location headers in redirects will be rewritten into /mmc/.

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.

What is the underlying problem?

-ascs
 

-----Original Message-----
From: S.A. Birl [mailto:sbirl+Apache-List@xxxxxxxxxxxxxxxxxxxxxxx] 
Sent: Tuesday, August 23, 2005 7:12 PM
To: users@xxxxxxxxxxxxxxxx
Subject: [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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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