# Passenger problem

**URL:** <https://www.ruby-forum.com/t/passenger-problem/208737>\
**Category:** Rails\
**Created:** [June 26, 2011, 8:37am UTC](https://www.ruby-forum.com/t/passenger-problem/208737 "2011-06-26T08:37:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [June 26, 2011, 8:37am UTC](https://www.ruby-forum.com/t/passenger-problem/208737/1 "2011-06-26T08:37:10Z")

</div>

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](http://amritpalpathakgne.worpress.com)

---

<div class="post-metadata">

**Author:** ![amritpal\_p](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@amritpal\_p](https://www.ruby-forum.com/u/amritpal_p)\
**Post date:** [June 26, 2011, 9:32am UTC](https://www.ruby-forum.com/t/passenger-problem/208737/2 "2011-06-26T09:32:02Z")

</div>

On Jun 25, 2011, at 23:35 , amritpal pathak wrote:

> 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? 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

–  
Teri S.

> **[tekniklr.com](https://tekniklr.com/)**

---

<div class="post-metadata">

**Author:** ![amritpal\_p](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@amritpal\_p](https://www.ruby-forum.com/u/amritpal_p)\
**Post date:** [June 26, 2011, 9:46am UTC](https://www.ruby-forum.com/t/passenger-problem/208737/3 "2011-06-26T09:46:49Z")

</div>

On Sun, Jun 26, 2011 at 3:30 AM, Teri S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 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](http://amritpalpathakgne.wordpress.com)

---

<div class="post-metadata">

**Author:** ![amritpal\_p](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@amritpal\_p](https://www.ruby-forum.com/u/amritpal_p)\
**Post date:** [June 26, 2011, 9:52am UTC](https://www.ruby-forum.com/t/passenger-problem/208737/4 "2011-06-26T09:52:58Z")

</div>

On Sun, Jun 26, 2011 at 3:45 AM, amritpal pathak  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> > 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?
> 
> ```
> how can i disable passenger permantly?
> 
> ```

```
     i want to access "localhost" as it was normally before

  Thanks

```

---

<div class="post-metadata">

**Author:** ![amritpal\_p](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@amritpal\_p](https://www.ruby-forum.com/u/amritpal_p)\
**Post date:** [June 26, 2011, 10:21am UTC](https://www.ruby-forum.com/t/passenger-problem/208737/5 "2011-06-26T10:21:17Z")

</div>

On Jun 26, 2011, at 00:51 , amritpal pathak wrote:

> ```
> how can i disable passenger permantly?
> i want to access "localhost" as it was normally before
> 
> ```

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’.

–  
Teri S.

> **[tekniklr.com](https://tekniklr.com/)**

---

<div class="post-metadata">

**Author:** ![amritpal\_p](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@amritpal\_p](https://www.ruby-forum.com/u/amritpal_p)\
**Post date:** [June 26, 2011, 10:29am UTC](https://www.ruby-forum.com/t/passenger-problem/208737/6 "2011-06-26T10:29:19Z")

</div>

On Sun, Jun 26, 2011 at 4:19 AM, Teri S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> it was in httpd.conf file and looks like as:

```
   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](http://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](http://amritpalpathakgne.wordpress.com)

---

<div class="post-metadata">

**Author:** ![amritpal\_p](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@amritpal\_p](https://www.ruby-forum.com/u/amritpal_p)\
**Post date:** [June 26, 2011, 11:08am UTC](https://www.ruby-forum.com/t/passenger-problem/208737/7 "2011-06-26T11:08:47Z")

</div>

On Jun 26, 2011, at 01:27 , amritpal pathak wrote:

# 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](http://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.

–  
Teri S.

> **[tekniklr.com](https://tekniklr.com/)**

---

<div class="post-metadata">

**Author:** ![amritpal\_p](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@amritpal\_p](https://www.ruby-forum.com/u/amritpal_p)\
**Post date:** [June 26, 2011, 11:45pm UTC](https://www.ruby-forum.com/t/passenger-problem/208737/8 "2011-06-26T23:45:45Z")

</div>

On Jun 26, 2011, at 02:40 , amritpal pathak wrote:

> can you just tell me how to completly remove the passenger from my system.?

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

–  
Teri S.

> **[tekniklr.com](https://tekniklr.com/)**

---

<div class="post-metadata">

**Author:** ![amritpal\_p](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@amritpal\_p](https://www.ruby-forum.com/u/amritpal_p)\
**Post date:** [June 26, 2011, 11:41am UTC](https://www.ruby-forum.com/t/passenger-problem/208737/9 "2011-06-26T11:41:26Z")

</div>

On Sun, Jun 26, 2011 at 5:07 AM, Teri S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> # AllowOverride all
> 
> can you just tell me how to completly remove the passenger from my system.?

Thanks
