This is what I get for one call, when I Log with the level of 3:
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#865cad8/initial]
(2) init rewrite engine with requested uri /
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#865cad8/initial]
(3) applying pattern '.*' to uri '/'
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#865cad8/initial]
(3) applying pattern '^/index.html' to uri '/'
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#865cad8/initial]
(1) pass through /
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#8662af0/subreq]
(2) init rewrite engine with requested uri /index.php
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#8662af0/subreq]
(3) applying pattern '.*' to uri '/index.php'
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#8662af0/subreq]
(3) applying pattern '^/index.html' to uri '/index.php'
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#8662af0/subreq]
(1) pass through /index.php
[24/Mar/2011:07:19:37 +0100] [urlsid#8459f60][rid#8662af0/subreq]
(2) init rewrite engine with requested uri /index.html
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#8662af0/subreq]
(3) applying pattern '.*' to uri '/index.html'
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#8662af0/subreq]
(3) applying pattern '^/index.html' to uri '/index.html'
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#8662af0/subreq]
(2) rewrite '/index.html' -> '/cgi-bin/WebObjects/myapp.woa'
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#8662af0/subreq]
(2) forcing '/cgi-bin/WebObjects/myapp.woa' to get passed through to
next API URI-to-filename handler
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#8662af0/subreq]
(2) init rewrite engine with requested uri /index.html.var
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#8662af0/subreq]
(3) applying pattern '.*' to uri '/index.html.var'
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#8662af0/subreq]
(3) applying pattern '^/index.html' to uri '/index.html.var'
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#8662af0/subreq]
(2) rewrite '/index.html.var' -> '/cgi-bin/WebObjects/myapp.woa'
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#8662af0/subreq]
(2) forcing '/cgi-bin/WebObjects/myapp.woa' to get passed through to
next API URI-to-filename handler
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#8661228/initial/
redir#1] (2) init rewrite engine with requested uri /error/noindex.html
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#8661228/initial/
redir#1] (3) applying pattern '.*' to uri '/error/noindex.html'
[24/Mar/2011:07:19:37 +0100] [url/sid#8459f60][rid#8661228/initial/
redir#1] (3) applying pattern '^/index.html' to uri '/error/
noindex.html'
[24/Mar/2011:07:19:37 +0100] [turl/sid#8459f60][rid#8661228/initial/
redir#1] (1) pass through /error/noindex.html
Can you see anything in this? Why is it Redirected twice in one call?
Is this normal?
Any hints welcome.
Regards,
Ute
Am 23.03.2011 um 22:08 schrieb Sacha Michel Mallais:
Try increasing the RewriteLogLevel and setting RewriteLog.
sacha
On Mar 23, 2011, at 1:45 PM, ute Hoffmann wrote:
Hi,
I have Rewrite working on Mac Os X without problem, but on a Linux
virtual Server
with Cent OS I fail. Apache 2.
This is in the config File:
a)
LoadModule WebObjects_module /usr/lib/httpd/modules/
mod_WebObjects.so
LoadModule rewrite_module modules/mod_rewrite.so
Seems to be in the right order.
There seems to be no Add directives in the config file
b) Further down:
ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/var/www/cgi-
bin/$1"
#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
c) And on the end of the file in a virtal host directive the
Rewrite Rule.
(like I would do in Mac OS X)
<VirtualHost *:80>
ServerAdmin webmas...@dummy-host.example.com
DocumentRoot /var/www/html/xyz
ServerName www.xyz.de
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
RewriteRule ^/index.html /cgi-bin/WebObjects/someapp.woa [L,
PT]
</IfModule>
</VirtualHost>
Fact1: Rewrite engine works: Rewriting test.html to index.html
works fine
Fact2: WebObjects works: giving the URL www.somehost.de/cgi-bin/
WebObjects/someapp.woa opend the application -> thus the
scriptAlias Part works
Fact3: But trying to map index.html -> /cgi-bin/WebObjects/
someapp.woa Opens the apache Default page and no app at all
I have checked and double checked but do not see the reason, why
it does not work.
Is there anything I need to look after in linux specifically?
Is there anything missing fom the virtual host above? Incuding the
ScriptAliasMatch as above in the virtual host diective
does not help.
has anyone have an idea?
This is my virtual host directive, the virtual host is active and
working (besides from the rewrite rule)
Regards
Ute
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects-
dep...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/sacha%
40global-village.net
This email sent to sa...@global-village.net
--
Sacha Michel Mallais, CIO AIM: smallais
Global Village Consulting, Inc. PGP Key ID: 7D757B65
http://www.global-village.net/
1. Never tell everything at once.
-- Ken Venturi, Ken Venturi's Two Great Rules of Life
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects-deploy@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to arch...@mail-archive.com