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-deploy@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



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

Reply via email to