Hi Stephen,
Still having the same problem. But, I've never had this problem with
Tiger either. It's just now on Leopard and I can't figure out if it's
an apache 2 thing or a leopard thing. The mod_rewrite syntax looks
the same between Apache one and two.
I've been using mod_rewrite to point to a WO app for a while now. But
it's always been on tiger.
I just create rewrite rules like this:
RewriteRule ^/$ /cgi-bin/WebObjects/App.woa/wa/default [L,PT]
RewriteRule ^/Products$ /cgi-bin/WebObjects/App.woa/wa/Products [L,PT]
etc...
But I usually don't use .htaccess. Instead I put the rewrite rules in
(Tiger anyway) /etc/httpd/sites/000x_virtual_domain.conf
Jon
p.s. here is an example from a working site:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
RewriteRule ^/$ /cgi-bin/WebObjects/MauiOnline.woa/wa/
default [L,PT]
RewriteRule ^/Activities /cgi-bin/WebObjects/
MauiOnline.woa/wa/advertiserWithActivityQualifier [L,PT]
RewriteRule ^/Channel7Live /cgi-bin/WebObjects/
MauiOnline.woa/wa/videoShowcaseWithActivitiesQualifier?
aid=e5c3a0225038aaf0eeaf04ea99d2ce85 [L,PT]
RewriteRule ^/News /cgi-bin/WebObjects/MauiOnline.woa/
wa/currents [L,PT]
RewriteRule ^/VideoPages /cgi-bin/WebObjects/
MauiOnline.woa/wa/videoShowcaseWithVideoQualifier [L,PT]
</IfModule>
On May 13, 2008, at 10:58 AM, Stephen R. Smith wrote:
I've just recently done this on Tiger Server, and in order to make
it work I need to make the following changes.
First, enable the mod_rewrite rule via Server Admin / WebServer /
Modules
Second, update the domain specific http.conf file [00XX_any_80_www.yourvirtualdomain.com.conf
] in the etc/httpd/sites directory. Change the 'AllowOverride None'
to 'AllowOverride All'.
Third, create or modify the .htaccess file in the root of the
virtual domains home directory, and add the rewrite rules there.
RewriteEngine on
RewriteRule ^/?virtualdomain.html$ http://www.virtualdomain.com/cgi-bin/WebObjects/App.woa
[L]
Stop and start Apache, and everything should be good.
I initially tried creating the rewrite rules in the domain.com.conf
file, and not setting the 'Allow Override' and kept coming up blank.
We’re also using a JavaScript redirect embedded in the index file
that the virtual domain points to which redirects to the rewritten
url of the .woa bundle, as I’m unaware of a way to point a virtual
domain directly at a WebObjects app (but would love to know how
that’s done).
Cheers,
:Steve
--
Stephen R. Smith
President
Align Software Inc.
2054 Halton Place, Burlington, Ontario, Canada, L7R 1P7
T : 905.633.9178
C : 905.464.4440
F : 905.634.1064
[EMAIL PROTECTED]
http://www.alignsoft.com
'Bringing order to chaos in the information age.'
> From: Jonathan Miller <[EMAIL PROTECTED]>
> Date: Tue, 13 May 2008 10:08:02 -1000
> To: <webobjects-deploy@lists.apple.com>
> Subject: Mod Rewrite OS X Leopard Server
>
> Hi,
>
> I'm trying to use a basic mod_rewrite rule to point to my WebObject
> application. In Server Admin I've checked and the mod_rewrite
module
> is enabled. In the site's apache configuration file found in /etc/
> apache2/sites I have a simple rule in the if_mod_rewrite area that
> looks like this
>
> ^/$ /cgi-bin/WebObjects/HPUserPortal.woa/wa/default [L]
>
> apachectl configtest returns syntax OK
>
> apachectl restart returns normally. However when I point the
browser
> to the virtual domain name it sends me to the error.html page in the
> correct virtual directory in /Library/WebServer/Documents ( I
deleted
> index.html ). If I point the browser to the domain name + /cgi-bin/
> WebObjects/HPUserPortal.woa/wa/default it returns normally. So, the
> webobjects adapter is working.
>
> Anyone have any ideas? These rules worked find on Tiger.
>
> Thanks in advance,
>
> Jon
> _______________________________________________
> 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/ssmith%40alignsoft.co
> m
>
> This email sent to [EMAIL PROTECTED]
_______________________________________________
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 [EMAIL PROTECTED]