Thanks a lot, that was it. With ^/$ the rewrite works!
Ute
Am 24.03.2011 um 18:36 schrieb Chuck Hill:
Try using ^/$ instead of ^/index.html
Chuck
On Mar 24, 2011, at 9:54 AM, Sacha Michel Mallais wrote:
Notice the second time though, it is accessing index.html.var, and
then after that it is trying to find an error page. I've seen
index.html.var in my logs before but can't for the life of me
remember what causes it, but my *guess* is that something else is
rewriting the request for index.html. The only thing I can suggest
is to try putting your rewrite statements as close to the end of
the config file as possible. Could also search your log file for
index.html.var and see where that is coming from. And I guess you
could pump the RewriteLogLevel even higher...
sacha
On Mar 23, 2011, at 11:27 PM, ute Hoffmann wrote:
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
--
Sacha Michel Mallais, CIO AIM: smallais
Global Village Consulting, Inc. PGP Key ID: 7D757B65
http://www.global-village.net/
I've got a fever, and the only prescription is more cowbell!
_______________________________________________
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/chill%
40global-village.net
This email sent to ch...@global-village.net
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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