httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <tevans...@googlemail.com>
Subject Re: [users@httpd] Location/locationmatch on Windows install
Date Fri, 07 Nov 2008 15:46:44 GMT
On Fri, 2008-11-07 at 07:44 -0500, Randall, Todd wrote:
> Hi All,
> 
> I've searched and searched and can't find any pertinent info.  Please
> believe me, I'm sending to this list as my last resort.
> 
> Is there some trick to location or locationmatch syntax on an Apache on
> Windows installation vs. an Apache on Unix / Linux installation?  I
> suppose I should also tell you this is Apache built into the Oracle
> Application Server, which is an older version, 1.3.31.0.0.  I also have
> a support ticket open with Oracle for a good week now.
> 
> I have this code, at the very end of the httpd.conf file, on a Linux
> installation, and it works perfectly fine:
> 
> <LocationMatch ^.*/pls/test.*>
>     RewriteEngine On
>     RewriteCond %{SERVER_PORT} !^8543$
>     RewriteRule ^/(.*)$ https://yippidy.doodaa.com:8543%{REQUEST_URI}
> [L,R]
> </LocationMatch>

Why a LocationMatch, instead of a RewriteCond ? Does it work with a
RewriteCond? (With LocationMatch, we have to think "did we trigger the
location match? If we did, did our RewriteRule match?", with
RewriteCond, all we have to think is "Did our cond match, what happened
when our rewrite happened", all of which can be answered by whacking on
the rewrite log and whacking up the log level.)

> 
> The same exact version/installation of Apache on a Windows XP Server,
> same code, same place in the httpd.conf file, will not work.  I can
> comment out the LocationMatch, and the rewrite kicks in and works fine,
> but for the life of me I cannot get the LocationMatch to kick in.  I've
> even just tried a Location test (using just http in case https was
> buggy) on a simple directory like this:
> 
> <VirtualHost *:81>
>     ServerName yippidy.doodaa.com
>     DocumentRoot "D:\oas10gR2\Apache\Apache\htdocs\testfororacle"
>     DirectoryIndex index.htm
>     Alias /htdocs D:\oas10gR2\Apache\Apache\htdocs/
> </VirtualHost>
> 
> <Location /htdocs/testfororacle>
>    RewriteEngine On
>    RewriteRule ^/(.*)$ http://yippidy.doodaa.com/index.html.en [L,R]
> </Location>
> 
> Works perfect when converted to Linux, will not kick in on Windows.
> Unfortunately, I cannot change this Windows install to Linux.  What
> could I possibly be missing on the Windows side?
> 
> Many thanks in advance,
> Todd



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


Mime
View raw message