Location/locationmatch on Windows install

This is a discussion on Location/locationmatch on Windows install within the Apache forums in Application Servers & Tools category; 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 > ...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #11  
Old 11-11-2008, 12:13 AM
William A. Rowe, Jr.
Guest
 
Default Re: 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


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 05:48 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.