Re: Need help with Tiger, WO and mod_rewrite
Re: Need help with Tiger, WO and mod_rewrite
- Subject: Re: Need help with Tiger, WO and mod_rewrite
- From: Dev WO <email@hidden>
- Date: Sat, 6 Aug 2005 01:11:58 +0200
In fact, it wasn't the -indexes, but the -Include which was in fault
But I still don't understand why I had to add Johan's line...
Hi Chuck:)
so I've got the -Indexes inside the virtual host, but if I remove
it, I got the files listed...
but with the tip of Johan:
RewriteRule ^/$ /cgi-bin/WebObjects/Site [PT,L]
it is working:)
But I don't understand why it wasn't working anymore....
really QA at Apple isn't the quality we should expect...
Thanks a lot to both of you, I'll correct all the site files and
try to get back home...
I'll try to fix the mail server and most probably other problem
with WOFile uploading on sunday...
Xavier
On Aug 5, 2005, at 3:34 PM, Dev WO wrote:
And even with apache debug log, I only get:
"Directory index forbidden by rule"
Do you have a Directory directive in the virutal host / server
config:
<Directory "/Users/somebody/DocumentRoot">
Options All -Indexes +ExecCGI +MultiViews
-Indexes here might be giving you the problem.
<IfModule mod_dav.c>
DAV Off
</IfModule>
AllowOverride None
<IfModule mod_expires.c>
ExpiresActive on
</IfModule>
</Directory>
Also, try not calling it index.html but home.html or some other name.
Just guessing
Chuck
Hi Xavier,
This is the httpd.conf file.
<httpd.conf>
There are no RewriteRule's are in this file, those are in various
site files as there are different rules for each domain (e.g.
RewriteRule ^/$ /cgi-bin/WebObjects/Test [PT,L] )
Johan
6 aug 2005 kl. 00.04 skrev Dev WO:
Hi Johan
I've got that actually....
do you mind sending me your httpd.conf file?
so I could check for differences between the 2....I'm really
going crazy:( it's midnight here and I'm going to miss the last
bus...
sad day
no Thanks to Apple
I had similar trouble when moving to a Tiger server, but managed
to solve it.
After lots of trial and error, I ended up with just one added
line in the apache config, in addition to moving the WebObjects
Include above the LoadModules, as described on Rentzsch's blog.
What I needed to to was to add:
AddModule mod_WebObjects.c
just before
AddModule mod_rewrite.c
Then the rewrites of arbitrary URLs to /cgi-bin/WebObjects/...
worked again.
Johan
5 aug 2005 kl. 23.04 skrev Dev WO:
Hi list,
I know this should be either on the server mailing list or the
deployment mailing list, but I posted to the server and my email
didn't even display in the list! Might be a problem with the new
mail setup...
So as I'm really into trouble, maybe someone could help:
I've upgraded my server (10.3 fully updated and permission
repaired) to Tiger (10.4.2 from 10.4) and I'm having a major
problem with my WebObjects applications, apache and mod_rewrite:
I check the sites files and they didn't change (worked before the
update).
When I try to connect to www.site.com, I have a rewrite rule that
hide the /cgi-... and provide the WO application
This was done by telling apache to load index.html as the default
page, then rewrite to WO.
But now, I got a permission error in my web browser!!!
And if I type directly www.site.com/index.html, everything is OK!
I checked the authorization on the site.com and it is 775 on it...
Anyone has such rewrite rule to hide the starting url?
Thanks a lot for your help, I really need it:(
Xavier
PS: I saw the bug concerning the configuration file, so I
uncommented the "Include /System/Library/Web..." line and paste
it above the load of mod_rewrite (like Rentzsch's blog).
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects
developers who want to increase their overall knowledge of
WebObjects, or those who are trying to solve specific application
development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anazys.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden