Re: OT - OSX Server Question
Re: OT - OSX Server Question
- Subject: Re: OT - OSX Server Question
- From: Michael Engelhart <email@hidden>
- Date: Tue, 4 May 2004 07:37:56 -0500
One thing to make sure is that mod_WebObjects loads before mod_rewrite.
I have this in my LoadModule section:
LoadModule WebObjects_module
/System/Library/WebObjects/Adaptors/Apache/mod_WebObjects.so
LoadModule rewrite_module libexec/httpd/mod_rewrite.so
then this in my AddModule section:
AddModule mod_WebObjects.c
AddModule mod_rewrite.c
Then this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule your rule here [L,PT]
</IfModule>
and finally:
Include /System/Library/WebObjects/Adaptors/Apache/apache.conf
Not sure if this is what your trouble is. Also check your rewrite
logs to see what's going on by adding this to your mod_rewrite rules:
RewriteLog "/tmp/rewrite_log"
RewriteLogLevel 9
Then launch your app, go to the terminal and type:
tail -f /tmp/rewrite_log
helps debugging rewrite rules to make sure it's matching the correct
things.
Mike
On May 4, 2004, at 12:04 AM, James Cicenia wrote:
One last thing...
I thought I had followed the deployment instructions to the letter,
but now,
my mod_rewrite version won't server up the WebServerResources while
my direct connect can. A typical image resource is
"/3olive/imx/image.gif"
I created a WebServerResources path under the document root pointed
at by os x server, and under the main root, etc.... but my app can't
find them.
What am I obviously doing wrong?
-James Cicenia
On May 3, 2004, at 9:19 PM, Jonathan 'Wolf' Rentzsch wrote:
James Cicenia, email@hidden, wrote:
Does anybody know hot to make a domain point to the webobjects
application and serve it up via OSX Server?
mod_rewrite is your friend. A sample config:
<http://rentzsch.com/woWebLog/httpdConfChanges>
Right now I have a silly temporary fix where my index.htm page
redirects
to the full url, i.e., test.mydomain.com/cgi-bin/WebObjects/app
That's a legitmate lightweight method of pulling off what you want.
| Jonathan 'Wolf' Rentzsch http://rentzsch.com
| Red Shed Software http://redshed.net
| "better" necessarily means "different"
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.