Is even possible?
I've got a Rails application running on Passenger along with a mod_perl site that require to operate on a single server. I have attempted establishing two VirtualHosts and I have attempted simply using one VH as well as an Alias/Place for the mod_perl. In the two cases, Passenger attempts to serve the mod_perl application and informs me it cannot find the appropriate files. Anybody understand what I am doing wrong?
Here's my setup atm:
NameVirtualHost *:80 RailsAutoDetect off <VirtualHost *:80> DocumentRoot (home of rails app)/public RailsBaseURI / </VirtualHost> PerlModule Apache::DBI PerlRequire /opt/rt3/bin/webmux.pl Alias /rt /opt/rt3/share/html <== mod_perl app <Location /rt> AddDefaultCharset UTF-8 SetHandler perl-script PerlHandler RT::Mason </Location>
Well, for at this time I have just assemble them as two different VirtualHosts using different ports for connecting. That actually works, but it is just a little untidy for my website to make use of and when anybody includes a better idea, I am all ears. Thanks.
Edit: First got it working! I wound up establishing two VirtualServers on different ports, then used mod-proxy to redirect visitors to the /rt site towards the mod-perl VirtualServer (departing the Passenger one because the default). This is effective, and on top of that my mod_perl site thinks will still be in the same location as Passenger, which smooths out lots of compatibility issues I had been coping with too. I understood I had been missing something simple! Just putting this up just in case other people is getting difficulties with this.