Maybe someone can quickly spot what is wrong...

In apache, my conf is:

 RewriteEngine on
 <Directory "/html/test">
   Order deny,allow
   Deny from all
 </Directory>

 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
 RewriteRule .* /index.php

 ErrorDocument 403 /default/error/error/errorcode/403/

I'm dispatching using the Apache404 Request class.

 $frontController->dispatch(new Zend_Controller_Request_Apache404);

And I'm getting invalid controller error. "Invalid controller specified (test)" Its still looking for the "test" controller. My REDIRECT_ variables are set but not with correct redirect information. My SCRIPT_NAME IS set with the correct redirected information, but that variable is not checked for in the Apache404 request object. I've put in an additional check to get it to work:

} elseif (isset($_SERVER['REDIRECT_SCRIPT_URL']) && isset($_SERVER['SCRIPT_NAME'])) {
   $requestUri = $_SERVER['SCRIPT_NAME'];

...but was wondering if I was the only one experiencing this. $_SERVER dump follows.

Any insights appreciated!

Arthur

http://www.domain.com/test/index.html produces:

*REDIRECT_SCRIPT_URL ==> /test/index.html
REDIRECT_SCRIPT_URI ==> http://www.domain.com/test/index.html
REDIRECT_REQUEST_METHOD ==> GET
REDIRECT_STATUS ==> 403*
SCRIPT_URL ==> /test/index.html
SCRIPT_URI ==> http://www.domain.com/test/index.html
HTTP_HOST ==> www.domain.com
HTTP_USER_AGENT ==> Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12 HTTP_ACCEPT ==> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_LANGUAGE ==> en-us,en;q=0.5
HTTP_ACCEPT_ENCODING ==> gzip,deflate
HTTP_ACCEPT_CHARSET ==> ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_KEEP_ALIVE ==> 300
HTTP_CONNECTION ==> keep-alive
HTTP_COOKIE ==> PHPSESSID=f27rgmnp5f24c8e7uupnftr817
HTTP_CACHE_CONTROL ==> max-age=0
PATH ==> hidden
SERVER_SIGNATURE ==>
Apache/2.2.8 (FreeBSD) Server at www.domain.com Port 80


SERVER_SOFTWARE ==> Apache/2.2.8 (FreeBSD)
SERVER_NAME ==> www.domain.com
SERVER_ADDR ==> hidden
SERVER_PORT ==> 80
REMOTE_ADDR ==> hidden
DOCUMENT_ROOT ==> /hidden/html
SERVER_ADMIN ==> hidden
SCRIPT_FILENAME ==> /hidden/html/index.php
REMOTE_PORT ==> 49886
REDIRECT_URL ==> /test/index.html
GATEWAY_INTERFACE ==> CGI/1.1
SERVER_PROTOCOL ==> HTTP/1.1
REQUEST_METHOD ==> GET
QUERY_STRING ==>
REQUEST_URI ==> /test/index.html
*SCRIPT_NAME ==> /default/error/error/errorcode/403/*
PHP_SELF ==> /default/error/error/errorcode/403/
REQUEST_TIME ==> 1203026861

Reply via email to