You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Lee Fellows <lf...@4lane.com> on 2002/07/12 19:32:25 UTC

Re: [repost] cannot get mod_rewrite example from apache.org for file name extension change to work

On Fri, 2002-07-12 at 12:39, Tim Luoma wrote:
> 
> [repost: Am I asking a stupid question, or asking it wrongly, or not 
> providing enough information?  If so please tell me.  I'm stumped... 
> Thanks for your time]
> 
> Summary:  Trying to use mod_write so that requests for FOO.html in a 
> certain directory actually go to FOO.php but still getting 404 on FOO.html
> 
> 
> Description:
> I have a bunch of files formerly named like this
>     http://www.tntluoma.com/weblog/archives/00000011.html
> which are now named like this:
>     http://www.tntluoma.com/weblog/archives/00000011.php
> 
> I went right to the docs and found what I wanted (I thought) at 
> http://httpd.apache.org/docs/misc/rewriteguide.html
> 
> I modified the RewriteBase and changed "document.phtml" to 
> "document.php" and came up with this:
> 
> #   backward compatibility ruleset for
> #   rewriting document.html to document.php
> #   when and only when document.php exists
> #   but no longer document.html
> RewriteEngine on
> RewriteBase /weblog/archives/
> # parse out basename, but remember the fact
> RewriteRule ^(.*)\.html$ $1 [C,E=WasHTML:yes]
> # rewrite to document.php if exists
> RewriteCond %{REQUEST_FILENAME}.php -f
> RewriteRule ^(.*)$ $1.php [S=1]
> # else reverse the previous basename cutout
> RewriteCond %{ENV:WasHTML} ^yes$
> RewriteRule ^(.*)$ $1.html
> 
> However I am still getting a 404 on 
> http://www.tntluoma.com/weblog/archives/00000011.html
> 


  Have you tried turning on RewriteLog'ing to see what is happening
  when you make the request?




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [repost] cannot get mod_rewrite example from apache.org for file name extension change to work

Posted by Tim Luoma <lu...@peak.org>.
Lee Fellows wrote:

>   I would quicker suspect a permissions problem.  The apache user id
>  will need write permission in order to create your log file.  Have
>  you checked this?

I gave the file an aptly named 'chmod 666' and still no soap :-(

TjL





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: apache 1.3.23 and coldfusion 5.0

Posted by Caio James <ca...@intric.com>.
What do you mean by better performance? What performance issues are you
having? On what hardware?

Caio

> From: "ken mei" <ke...@neuralmedia.com>
> Reply-To: users@httpd.apache.org
> Date: Fri, 12 Jul 2002 14:31:44 -0400
> To: <us...@httpd.apache.org>
> Subject: apache 1.3.23 and coldfusion 5.0
> 
> hi all,
> 
> 
> Does anyone have any suggestion how to tune apache and coldfusion for better
> performance?
> 
> 
> Ken
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


apache 1.3.23 and coldfusion 5.0

Posted by ken mei <ke...@neuralmedia.com>.
hi all,


Does anyone have any suggestion how to tune apache and coldfusion for better
performance?


Ken



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [repost] cannot get mod_rewrite example from apache.org for file name extension change to work

Posted by Lee Fellows <lf...@4lane.com>.
On Fri, 2002-07-12 at 13:47, Tim Luoma wrote:
> Lee Fellows wrote:
> > 
> >   Have you tried turning on RewriteLog'ing to see what is happening
> >   when you make the request?
> 
> Thanks. I just tried this:
> 
> RewriteLogLevel 1
> RewriteLog /path/to/my/home/rewrite/rewrite.log
> 
> and I get an Internal Server Error :-/
> 
> I also tried a path inside the 'public_html' but that did not work either.
> 
> Is it possible the admins have the logging capability turned off?  (I am 
> on a shared host)
> 
> Thanks
> TjL
> 

  I would quicker suspect a permissions problem.  The apache user id
 will need write permission in order to create your log file.  Have
 you checked this?




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [repost] cannot get mod_rewrite example from apache.org for file name extension change to work

Posted by Tim Luoma <lu...@peak.org>.
Lee Fellows wrote:
> 
>   Have you tried turning on RewriteLog'ing to see what is happening
>   when you make the request?

Thanks. I just tried this:

RewriteLogLevel 1
RewriteLog /path/to/my/home/rewrite/rewrite.log

and I get an Internal Server Error :-/

I also tried a path inside the 'public_html' but that did not work either.

Is it possible the admins have the logging capability turned off?  (I am 
on a shared host)

Thanks
TjL



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org