You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Brian Quinn <br...@az511.com> on 2005/03/08 18:05:32 UTC

[users@httpd] ReWrite Directory

Ok, i guess i've just gone stupid today or something, because everything i 
have tried hasn't worked.

I am just trying to add a Rewrite rule to so  www.domain.com/test goes to 
www.domain.com/Test (just capitalize the T).

It seems stupid, but when i go to  /test i get the 404, but when i go to 
/test/xx (doesn't exist) then it redirects me.  I don't want anyone to have 
to put something after the / for it to work

Thanks

Brian


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


Re: [users@httpd] mod_cache usage

Posted by Deepa Rangarajan <de...@hotmail.com>.
Hi,

I am using apache 2.0 as reverse proxy and also for caching.
I am caching some images that reside on another server.

Here is a snippet of my httpd.conf :

   CacheEnable disk /abc
   CacheEnable disk /xyz

   CacheRoot "/var/cache/mod_proxy"
   CacheSize 100000
   CacheIgnoreCacheControl On
   CacheIgnoreNoLastMod On
   CacheDefaultExpire 3600
   CacheMaxExpire 3600

I assume that since CacheIgnoreCacheControl On and  CacheIgnoreNoLastMod On 
, even if the HTTP headers not set, i would be able to cache the image in 
the specified URI and this would cache it for an hour before checking for 
any modification.

  However I find that every time I load the page, the image gets loaded 
freshly - seen in the form of GET requests in the actual server.
  At times, I find that it loads from cache, esp. after a few minutes have 
lapsed since the file has been changed.

  How do I ensure that the caching acts according to what I have specifiied. 
If I have not made myself clear pls. let me know..

Thks,
-Deepa



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


Re: [users@httpd] ReWrite Directory

Posted by Noah <si...@onastick.net>.
On Tue, Mar 08, 2005 at 10:52:03AM -0700, Brian Quinn wrote:

> At 10:13 AM 3/8/2005, you wrote:
> >On Tue, Mar 08, 2005 at 10:05:32AM -0700, Brian Quinn wrote:
> >> Ok, i guess i've just gone stupid today or something, because everything 
> >i
> >> have tried hasn't worked.
> >
> >Without seeing the precise RewriteRule, it's hard to say. You could also
> >look into using mod_speling, but that may be overkill for this (it could
> >also cause you headaches).

> do you know what i should put to make the rewrite rule work?
> 

See where I said "Without seeing the precise RewriteRule, it's hard to
say." ? The implication there is that one needs to see it in order to
assist you. Alternatively, you could turn on Rewrite logging (see the
RewriteLog and RewriteLogLevel directives) and see if that helps. The
resulting logfile is verbose enough to assist with virtually any issue,
although, per the docs, one should NOT crank it up above '2' on a
production host. I'd suggest trying this on a test host.

--n


-- 
<huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
<huey> ^^^ Making Flippy Floppy


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


Re: [users@httpd] ReWrite Directory

Posted by Brian Quinn <br...@az511.com>.
do you know what i should put to make the rewrite rule work?

I don't want to use the mod_speling rule, that is overkill




At 10:13 AM 3/8/2005, you wrote:
>On Tue, Mar 08, 2005 at 10:05:32AM -0700, Brian Quinn wrote:
> > Ok, i guess i've just gone stupid today or something, because everything i
> > have tried hasn't worked.
>
>Without seeing the precise RewriteRule, it's hard to say. You could also
>look into using mod_speling, but that may be overkill for this (it could
>also cause you headaches).
>
>--n
>
>--
><huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
><huey> ^^^ Making Flippy Floppy
>
>
>---------------------------------------------------------------------
>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


Re: [users@httpd] ReWrite Directory

Posted by Noah <si...@onastick.net>.
On Tue, Mar 08, 2005 at 10:05:32AM -0700, Brian Quinn wrote:
> Ok, i guess i've just gone stupid today or something, because everything i 
> have tried hasn't worked.

Without seeing the precise RewriteRule, it's hard to say. You could also
look into using mod_speling, but that may be overkill for this (it could
also cause you headaches).

--n

-- 
<huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
<huey> ^^^ Making Flippy Floppy


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