httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randall, Todd" <todd.rand...@itec.suny.edu>
Subject RE: [users@httpd] Location/locationmatch on Windows install
Date Wed, 12 Nov 2008 13:04:31 GMT
Thanks,
---
your users aren't coming in asking for http://yoursite/htdocs/ --- are
they?
---

For this test, yes I am, to prove there is something up with the
locationmatch / location directives on windows.  Or my syntax is wrong.

To get back to the original issue:

===============

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>

The same exact version/installation of Apache on a Windows 2003 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?

Todd

-----Original Message-----
From: William A. Rowe, Jr. [mailto:wrowe@rowe-clan.net] 
Sent: Tuesday, November 11, 2008 12:14 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Location/locationmatch on Windows install

Almost 100% sure you are messed up by trying to use a location where you
mean to use a directory.  A location is a url path - your users aren't
coming in asking for http://yoursite/htdocs/ --- are they?

Just forget that there is a <location> directive.  Stick with
<directory>.

Randall, Todd wrote:
> It's not the rewrite I'm having the issue with.  If I remove the
> locationmatch or location directives it rewrites perfectly fine.  For
> whatever reason, I cannot get the locationmatch or location directives
> to "kick in" on a windows platform install.  Any unix/linux platform
> install with the same exact code works perfectly fine.
> 
> I will have to google pastebin as I have no idea what that is.
> 
> Thanks again, and willing to try anything,
> Todd 
> 
> 
> -----Original Message-----
> From: Eric Covener [mailto:covener@gmail.com] 
> Sent: Monday, November 10, 2008 8:55 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Location/locationmatch on Windows install
> 
> On Mon, Nov 10, 2008 at 8:42 AM, Randall, Todd
> <todd.randall@itec.suny.edu> wrote:
>> Ok, I added RewriteLog and RewriteLogLevel 9 and have a rewrite log
> now.
>> When I hit that URL I get:
>>
>> (3) [per-dir /htdocs/] applying pattern '^/(.*)$' to uri
>> 'd:/oas10gr2/apache/apache/htdocs//testfororacle/index.html'
>> (1) [per-dir /htdocs/] pass through
>> d:/oas10gr2/apache/apache/htdocs//testfororacle/index.html
>>
>> I don't understand that, but does it confirm what you were thinking?
>> What should I change it to for a test?
> 
> No -- I am surprised that it's testing against something that looks
> like an absolute filesystem path instead of a partial URL.  To
> simplify, don't put your Rewrite directives inside any
> Location/Directory containers. Maybe you could pastebin the entire
> log?
> 


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


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