Passenger problem

i configured the ruby on rails app with passenger long time ago so when now i browse to “locahost” it shows the app’s content.But i want to access the /var/www/drupal with “localhost/drupal”.I am unable to access it.It gives the error and error seems to be genuine due to passenger.

No route matches “/drupal” with {:method=>:get}

should i remove the passenger ?If yes then please let me know how to remove it?

or is there any solution to it ?

Thanks in advance

amritpalpathakgne.worpress.com

Do you have Apache set up to serve /drupal in that virtualhost? If so, Passenger might not be letting Apache do its job.

If that’s the case, try adding this config to apache:

<Location /drupal>

DirectoryIndex index.php

PassengerEnabled off

i configured the ruby on rails app with passenger long time ago so when now i browse to “locahost” it shows the app’s content.But i want to access the /var/www/drupal with “localhost/drupal”.I am unable to access it.It gives the error and error seems to be genuine due to passenger.

No route matches “/drupal” with {:method=>:get}

should i remove the passenger ?If yes then please let me know how to remove it?

or is there any solution to it ?

Do you have Apache set up to serve /drupal in that virtualhost?

NO.manually i didn’t do anything like this.

If so, Passenger might not be letting Apache do its job.

If that’s the case, try adding this config to apache:

<Location /drupal>

DirectoryIndex index.php

PassengerEnabled off

in which file ?

apache2.conf or http.conf?

Thanks

amritpalpathakgne.wordpress.com

i want to access “localhost” as it was normally before

Thanks

In your apache config, look for a line like, LoadModule passenger_module, and comment it out I don’t know which config file your setup uses; it could be either apache2.conf or http.conf. Search in both of them for ‘passenger’.

LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so

PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7

PassengerRuby /usr/bin/ruby1.8

<VirtualHost *:80>

ServerName www.yourhost.com

DocumentRoot /home/amrit/amritpal/public

<Directory /amritpal/public>

AllowOverride all

Options -MultiViews

<Location /drupal>

DirectoryIndex index.php

PassengerEnabled off

I removed first 3 line still it didn’t work and “localhost” shows the contents of app.

Thanks

amritpalpathakgne.wordpress.com

LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger

3.0.7/ext/apache2/mod_passenger.so

PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7

PassengerRuby /usr/bin/ruby1.8

<VirtualHost *:80>

ServerName www.yourhost.com

DocumentRoot /home/amrit/amritpal/public

<Directory /amritpal/public>

AllowOverride all

Options -MultiViews

<Location /drupal>

DirectoryIndex index.php

PassengerEnabled off

That will get rid of passenger. Setting up drupal is a completely separate matter.

Thanks

No, because that depends largely on how it got there. Presumably you’re the one who installed it?