Virtual hosts and mod_rewrite

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

 



Good morning everyone,

I am breaking into new territory in my knowledge, and I've hit a bit of a speed bump that searching and trial/error has not been able to fix for me. Here's some details:

I am running Apache 1.3
PHP 5.2

I have setup a virtual host... http://purl.schreurprinting.com/jasonpruim112 (Which won't resolve out side of here yet... I am in contact with the hosting company to fix that issue)

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"

all the info for the page is being pulled from the database, if you want to see how it works you can visit the public dev site at: HTTP://www.raoset.com/dev/schreurprinting.com/p.php?purl=jasonpruim112 and that page loads just fine...

Once I restart web services it comes back up and starts working again... Does anyone have any ideas as to what is going on?

Here is a sample from my rewrite log of a successful rewrite:
92.168.0.253 - - [05/Sep/2008:06:24:21 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (2) init rewrite engine with requested uri /jasonpruim112
192.168.0.253 - - [05/Sep/2008:06:24:21 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (3) applying pattern '/(.*)' to uri '/jasonpruim112'
192.168.0.253 - - [05/Sep/2008:06:24:21 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (2) rewrite /jasonpruim112 -> /volumes/raider/webserver/documents/dev/schreurprinting.com/p.php?purl=jasonpruim112&edit=
192.168.0.253 - - [05/Sep/2008:06:24:21 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (3) split uri=/volumes/raider/webserver/documents/dev/schreurprinting.com/p.php?purl=jasonpruim112&edit= -> uri=/volumes/raider/webserver/documents/dev/schreurprinting.com/p.php, args=purl=jasonpruim112&edit=
192.168.0.253 - - [05/Sep/2008:06:24:21 -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 - - [05/Sep/2008:06:24:21 -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 - - [05/Sep/2008:06:24:21 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (3) [per-dir /volumes/raider/webserver/documents/] strip per-dir prefix: /volumes/raider/webserver/documents/dev/schreurprinting.com/p.php -> dev/schreurprinting.com/p.php
192.168.0.253 - - [05/Sep/2008:06:24:21 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (3) [per-dir /volumes/raider/webserver/documents/] applying pattern 'Google' to uri 'dev/schreurprinting.com/p.php'
192.168.0.253 - - [05/Sep/2008:06:24:21 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (1) [per-dir /volumes/raider/webserver/documents/] pass through /volumes/raider/webserver/documents/dev/schreurprinting.com/p.php
192.168.0.253 - - [05/Sep/2008:06:24:22 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (2) init rewrite engine with requested uri /favicon.ico
192.168.0.253 - - [05/Sep/2008:06:24:22 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (3) applying pattern '/(.*)' to uri '/favicon.ico'
192.168.0.253 - - [05/Sep/2008:06:24:22 -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 - - [05/Sep/2008:06:24:22 -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 - - [05/Sep/2008:06:24:22 -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 - - [05/Sep/2008:06:24:22 -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 - - [05/Sep/2008:06:24:22 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (3) [per-dir /volumes/raider/webserver/documents/] strip per-dir prefix: /volumes/raider/webserver/documents/dev/schreurprinting.com/p.php -> dev/schreurprinting.com/p.php
192.168.0.253 - - [05/Sep/2008:06:24:22 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (3) [per-dir /volumes/raider/webserver/documents/] applying pattern 'Google' to uri 'dev/schreurprinting.com/p.php'
192.168.0.253 - - [05/Sep/2008:06:24:22 -0400] [purl.schreurprinting.com/sid#183ecd8][rid#1836238/initial] (1) [per-dir /volumes/raider/webserver/documents/] pass through /volumes/raider/webserver/documents/dev/schreurprinting.com/p.php


Thank you for taking the time to read this!


--

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




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (Macos-x-server@xxxxxxxxxxxxxxx)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/japruim%40raoset.com

This email sent to japruim@xxxxxxxxxx
--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
11287 James St
Holland, MI 49424





[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