Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache 2.0.59, PHP 4.4.3 "unable to stat" |
|
Author |
|
CJunge
Joined: 05 Feb 2007 Posts: 2
|
Posted: Mon 05 Feb '07 0:36 Post subject: Apache 2.0.59, PHP 4.4.3 "unable to stat" |
|
|
Hi All,
Hopefully this is a simple problem to fix. I'm trying to use a rewrite rule to allow me to use .phps to show the source of a .php file. mod_rewrite is on.
I tried setting it in httpd.conf & it didn't work, so moved it to the .htaccess, and it's still not working.
RewriteRule ^(.+\.php)s$ $1 [T=application/x-httpd-php-source]
Adding ForceType application/x-httpd-php-source in .htaccess makes all the files show the source (as expected) so the .htaccess is being read.
The error I get is:
[error] [client 127.0.0.1] script 'path_to_file.phps' not found or unable to stat
Anyone got any ideas?
Cameron |
|
Back to top |
|
CJunge
Joined: 05 Feb 2007 Posts: 2
|
Posted: Mon 05 Feb '07 0:59 Post subject: |
|
|
Ok, just been playing around with the logging, now getting a different error:
[error] [client 127.0.0.1] Invalid URI in request GET path_to_file.phps HTTP/1.1
I don't know what this means, as the rewrite rule should be changing the requested file. |
|
Back to top |
|
|
|
|
|
|