httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raquel Rice <raq...@thericehouse.net>
Subject Re: [users@httpd] Virtual Host and mod_rewrite
Date Tue, 12 Nov 2002 00:32:06 GMT
On Mon, 11 Nov 2002 18:49:26 -0500 (Eastern Standard Time)
Joshua Slive <joshua@slive.ca> wrote:

> 
> On Mon, 11 Nov 2002, Raquel Rice wrote:
> >
> > <VirtualHost *>
> > 	ServerName www.campaignfortolerance.org
> > 	ServerAlias campaignfortolerance.org
> > 	DocumentRoot /home/tolerance/public_html
> > 	ErrorLog /var/log/httpd/tolerance-error_log
> > 	CustomLog /var/log/httpd/tolerance-access_log combined
> > 	RewriteEngine On
> > 	RewriteLog /var/log/httpd/server.rewrite.txt
> > 	RewriteLogLevel 9
> > 	RewriteRule ^/pager/([0-9]+),([0-9]+)
> > 	/pager.php?sID=$1&pID=$2 RewriteEngine Off
> > </VirtualHost>
> 
> You'll have much better luck if you remove the
> RewriteEngine Off
> which is telling Apache to ignore all the Rewrite stuff.
> 
> Joshua.
> 

Thank you, Joshua!

I think I'm making "progress" now!  Now the error in the browser is:
Bad Request
Your browser sent a request that this server could not understand.

This is what the error log says:
63.206.160.18 - - [11/Nov/2002:16:28:52 -0800]
[www.campaignfortolerance.org/sid#80cd1a4][rid#8098a44/initial] (2)
init rewrite engine with requested uri /pager/2,23
63.206.160.18 - - [11/Nov/2002:16:28:52 -0800]
[www.campaignfortolerance.org/sid#80cd1a4][rid#8098a44/initial] (3)
applying pattern '^/pager/([0-9]+),([0-9]+)' to uri '/pager/2,23'
63.206.160.18 - - [11/Nov/2002:16:28:52 -0800]
[www.campaignfortolerance.org/sid#80cd1a4][rid#8098a44/initial] (2)
rewrite /pager/2,23 -> pager.php?sID=2&pID=23
63.206.160.18 - - [11/Nov/2002:16:28:52 -0800]
[www.campaignfortolerance.org/sid#80cd1a4][rid#8098a44/initial] (3)
split uri=pager.php?sID=2&pID=23 -> uri=pager.php, args=sID=2&pID=23
63.206.160.18 - - [11/Nov/2002:16:28:52 -0800]
[www.campaignfortolerance.org/sid#80cd1a4][rid#8098a44/initial] (2)
local path result: pager.php


--
Raquel
============================================================
Plans are only good intentions unless they immediately degenerate
into hard work.
  --Peter F. Drucker


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


Mime
View raw message