Re: Location/locationmatch on Windows install

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

 



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@xxxxxxxxx] 
> Sent: Monday, November 10, 2008 8:55 AM
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re:  Location/locationmatch on Windows install
> 
> On Mon, Nov 10, 2008 at 8:42 AM, Randall, Todd
> <todd.randall@xxxxxxxxxxxxx> 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@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