PassengerEnabled off and serving index.php automatically

240 views
Skip to first unread message

sampoo

unread,
Jun 29, 2009, 7:56:59 AM6/29/09
to Phusion Passenger Discussions
Hi,

I'm trying to use Vanilla as a forum software to integrate with my
Rails project. To do this, i placed the vanilla files in /var/www/
vanilla, which is symlinked to public/forums. I adapted the Vanilla
configuration files accordingly so that the URL'ing would be properly
done.

When accessing /forums/index.php, everything seems to be fine, working
nicely, but when I try to access /forums, I get "Application error -
Rails application failed to start properly".
I guessed that by default Apache couldn't figure out which file to
serve as default, so I added a DirectoryIndex line to the
configuration, but same error after reloading apache.

Currently my configuration looks like this (real domain/paths
confuscated):
<VirtualHost *:80>
ServerName domain.com
DocumentRoot /path/to/rails/public

<Directory /path/to/rails/public/forums/>
PassengerEnabled off
AllowOverride all
DirectoryIndex index.php
</Directory>
</VirtualHost>

Hongli Lai

unread,
Jun 29, 2009, 8:31:08 AM6/29/09
to phusion-...@googlegroups.com

You might want to give <Location> a try as well.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

sampoo

unread,
Jun 29, 2009, 10:10:08 AM6/29/09
to Phusion Passenger Discussions
I tried and get a 404 (custom rails) page...

On 29 jun, 14:31, Hongli Lai <hon...@phusion.nl> wrote:
> E-mail: i...@phusion.nl

sampoo

unread,
Jul 2, 2009, 8:49:21 AM7/2/09
to Phusion Passenger Discussions
Anyone has an idea why?

Mark Woods

unread,
Jul 2, 2009, 10:24:16 AM7/2/09
to phusion-...@googlegroups.com

> Anyone has an idea why?

Just a wild guess, but does /forums/ work (rather than /forums)?

Have you tried setting the Directory without the trailing slash?

Have you tried to running the forums app from a real directory rather
than a symlink, just to see if the symlink causing a problem?


Mark

Zac Zheng

unread,
Jul 3, 2009, 10:57:36 AM7/3/09
to Phusion Passenger Discussions
I am having the exact probem as sampoo. Setting PassengerEnabled off
to a location/directory works fine, but it does not default to
index.php. Setting DirectoryIndex to indexphp. has no affect.

I have updated to passenger-2.2.4, running on Ubuntu with Apache 2.2.6

Here's the forum snippet of my apache config:

<Location /forum>
DirectoryIndex index.php
PassengerEnabled off
AllowOverride All
Order allow,deny
Allow from all
</Location>

Mark, I have tried your suggestions without any luck.

Is DirectoryIndex working with PassengerOff?

Any other way around this?

Much thanks
Zac

sampoo

unread,
Jul 5, 2009, 12:21:59 PM7/5/09
to Phusion Passenger Discussions
The application works fine, but not when hosted from 'within the Rails
application'; it works when i change the url to /forums/index.php
instead of forums/, i guess the problem has it's origin at Apache not
knowing which file to load...
Reply all
Reply to author
Forward
0 new messages