Re: Virtual hosts and mod_rewrite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sep 8, 2008, at 7:32 AM, Jason Pruim wrote:


On Sep 8, 2008, at 7:12 AM, Eric Covener wrote:

On Mon, Sep 8, 2008 at 6:09 AM, Jason Pruim <japruim@xxxxxxxxxx> wrote:

Locally it works great.. Once.. As soon as the web page is loaded and you attempt to refresh or go to a different page, it says "Forbidden you do not
have permission to access /jasonpruim112 on this server"

Is there an error log entry corresponding to the error?

In typical fashion... when I tried to reproduce it, I'm not getting any issues with it crashing apache now... BUT... I did notice a new problem... There are a few links inside that site that would will navigate through, and I need to pass the variable along with it... in other words, they go to this page: HTTP://purl.schreurprinting.com/jasonpruim112 and then navigate to HTTP://purl.schreurprinting.com/mail.php/jasonpruim112 (Or HTTP://purl.schreurprinting.com/jasonpruim112 which is rewritten to http://purl.schreurprinting.com/mail.php?purl=jasonpruim112)

So it's back to the old drawing board... :)



Apparently I spoke too soon.... Here is the access log:

192.168.0.253 - - [08/Sep/2008:07:51:48 -0400] "GET /purl/mail.php? purl=jasonpruim112 HTTP/1.1" 403 304

And here is the rewrite log for that entry:
BEGIN ERROR LOG
192.168.0.253 - - [08/Sep/2008:07:51:48 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (2) init rewrite engine with requested uri /purl/mail.php 192.168.0.253 - - [08/Sep/2008:07:51:48 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (3) applying pattern '/(.*)' to uri '/purl/mail.php' 192.168.0.253 - - [08/Sep/2008:07:51:48 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (2) rewrite /purl/mail.php -> /volumes/raider/webserver/documents/dev/ schreurprinting.com/p.php?purl=purl/mail.php&edit= 192.168.0.253 - - [08/Sep/2008:07:51:48 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (3) split uri=/volumes/raider/webserver/documents/dev/schreurprinting.com/p.php? purl=purl/mail.php&edit= -> uri=/volumes/raider/webserver/documents/ dev/schreurprinting.com/p.php, args=purl=purl/mail.php&edit= 192.168.0.253 - - [08/Sep/2008:07:51:48 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (2) local path result: /volumes/raider/webserver/documents/dev/ schreurprinting.com/p.php 192.168.0.253 - - [08/Sep/2008:07:51:48 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (1) go- ahead with /volumes/raider/webserver/documents/dev/schreurprinting.com/ p.php [OK] 192.168.0.253 - - [08/Sep/2008:07:51:48 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (2) init rewrite engine with requested uri /favicon.ico 192.168.0.253 - - [08/Sep/2008:07:51:48 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (3) applying pattern '/(.*)' to uri '/favicon.ico' 192.168.0.253 - - [08/Sep/2008:07:51:48 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (2) rewrite /favicon.ico -> /volumes/raider/webserver/documents/dev/ schreurprinting.com/p.php?purl=favicon.ico&edit= 192.168.0.253 - - [08/Sep/2008:07:51:48 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (3) split uri=/volumes/raider/webserver/documents/dev/schreurprinting.com/p.php? purl=favicon.ico&edit= -> uri=/volumes/raider/webserver/documents/dev/ schreurprinting.com/p.php, args=purl=favicon.ico&edit= 192.168.0.253 - - [08/Sep/2008:07:51:48 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (2) local path result: /volumes/raider/webserver/documents/dev/ schreurprinting.com/p.php 192.168.0.253 - - [08/Sep/2008:07:51:48 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (1) go- ahead with /volumes/raider/webserver/documents/dev/schreurprinting.com/ p.php [OK]


There is nor error_log entry that is created for this... So I hope that is the right info.

Thanks for looking!


--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
11287 James St
Holland, MI 49424
www.raoset.com
japruim@xxxxxxxxxx





---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux