473,394 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

mod_rewrite works but is causing error log spam

I have enabled mod_rewrite on my server and it successfully rewrites URL's and works nicely, but then it logs the URL to be rewritten as "File does not exist" .... in the error log

My http.conf section

Expand|Select|Wrap|Line Numbers
  1. <VirtualHost *:80>
  2.     ServerName customers.foo.com
  3.     ServerAdmin webmaster@foo.com
  4.     DocumentRoot /var/www/portal
  5.     RewriteEngine On
  6.     RewriteCond %{SERVER_PORT} ^80$
  7.     RewriteRule ^/logout$ /portal.php?iLogout=1 [NS,L]
  8.     RewriteRule ^/register/submit$ /register.php?sAction=register [NS,L]
  9.     RewriteRule ^/register$ /register.php [NS,L]
  10.     RewriteRule ^/password/submit$ /reset.php?sAction=reset [NS,L]
  11.     RewriteRule ^/password$ /reset.php [NS,L]
  12.     RewriteRule ^/login$ /index.php [NS,L]
  13.     ErrorLog logs/cust_error_log
  14.     CustomLog logs/cust_access common
  15. </VirtualHost>

Rewrite Log lines
Expand|Select|Wrap|Line Numbers
  1. 192.168.0.209 - - [01/Feb/2008:12:48:54 --0600] [customers.foo.com/sid#80519538][rid#80744800/initial] (3) applying pattern '^/password/submit$' to uri '/password/submit'
  2. 192.168.0.209 - - [01/Feb/2008:12:48:54 --0600] [customers.foo.com/sid#80519538][rid#80744800/initial] (2) rewrite '/password/submit' -> '/reset.php?sAction=reset'
  3. >
and resulting error log line
Expand|Select|Wrap|Line Numbers
  1. [Fri Feb 01 12:48:54 2008] [error] [client 192.168.0.209] File does not exist: /var/www/portal/password, referer: http://customers.foo.com/password/submit
  2. >
Any suggestions?
Feb 1 '08 #1
0 1923

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Phil Powell | last post by:
http://www.sitepoint.com/article/910/2] How can it be possible to use Apache's mod_rewrite module in such a way as to dynamically feed it variable information into the "RewriteRule" option? I...
4
by: Chris Ruegsegger | last post by:
I have a registration type page that asks a series of questions but does so using Panels to display only a couple at a time. I have a Next and Back button on each panel for navigation purposes. ...
6
by: digleif | last post by:
I'm struggling to fix an annoying CSS problem. I've built a nav bar in a table and use css to control the hover state, which colours the background of the table cell. In every browser I've...
5
by: laredotornado | last post by:
Hi, I have verified that mod_rewrite is enabled on my Apache 2.2 instance. However, now I'm having a problem just serving pages using .htaccess files. Following Rik's advice, my .htaccess file...
3
by: Dr. No | last post by:
I am new to using mod_rewrite and am trying to rewrite a URL to pass values to my script so that: http://www.myclient.com/everything/animals/mammals/cats is transformed into ...
0
by: narian | last post by:
Hi, I am trying to convert urls from this format: http://localhost/index.php?section=11 (where 11 is the id of the row in a table) to this friendly url: http://localhost/services.html...
2
by: jaanus | last post by:
Here we go... What I have been trying to do is to forward all http requests containing /cms/ to http://cms.mydomain.com/ example1: http://host1.mydomain.com/cms/init.php would be parsed from...
11
by: =?ISO-8859-1?Q?=22=C1lvaro_G=2E_Vicario=22?= | last post by:
With Apache's mod_rewrite module I can keep *.php files and load them as *.html files: # Make http//example.com/foo/bar.html load /home/site/foo/bar.php RewriteEngine On RewriteRule...
2
by: LC's No-Spam Newsreading account | last post by:
On Tue, 7 Oct 2008, Grant wrote: I carefully RTFM, but can't find an example like my case. What is the " fake directory cgi option" ? (in general I avoid using /cgi-bin or personal...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.