Running wordpress / PHP in a sub directory

172 views
Skip to first unread message

benr75

unread,
Aug 28, 2008, 5:07:42 PM8/28/08
to Phusion Passenger Discussions
Hello ~

I migrated a site today from Apache + mod_proxy_balancer + thin to
Phusion Passenger. Worked like a charm and freed up memory, we threw
a little party, then remembered that we had a sub directory that we
had been running wordpress in. In the original setup we had some
rewriterules that handled passing things off correctly, these will not
work as I believe passenger is doing some of its own magic
rewriting.

Is it possible to run a wordpress site in a subdirectory of a
passenger virtual host?

Thx in advance,

Ben

Hongli Lai

unread,
Aug 28, 2008, 7:16:55 PM8/28/08
to phusion-...@googlegroups.com

Yes it is. The easiest way to do this is to use the development version
of Passenger. You can then turn off Passenger for sub URIs, like this:

<VirtualHost ...>
ServerName ...
DocumentRoot ...
<Location /blog>
PassengerEnabled off # <---- !!!
</Location>
</VirtualHost>

--
Phusion | The Computer Science Company

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

Reply all
Reply to author
Forward
0 new messages