No documentation of Apache's PassengerAppType node

228 views
Skip to first unread message

Stefan Eriksson

unread,
May 28, 2014, 9:22:58 AM5/28/14
to phusion-...@googlegroups.com
When I try to use this option in my Apache2 vhost to force it to use node env it doesnt work. I get a directory tree which list all my files instead of processing them. If I remove the option:

<VirtualHost *:80>

  ServerName www.yourhost.com
  DocumentRoot /home/node/Ghost/static
  <Directory /home/node/Ghost/static>
        # This relaxes Apache security settings.
        AllowOverride all
        # MultiViews must be turned off.
        Options -MultiViews
  </Directory>

    PassengerEnabled on
#    PassengerAppType node
    PassengerStartupFile index.js

 CustomLog /home/node/logs/ghost-access_log combined
 PassengerDebugLogFile /home/node/logs/ghost-error_log

</VirtualHost>


the node app is processed correcly. but again when I enable  PassengerAppType node it stops working. and only displays:

Index of /
Name Last modified Size Description

The options used above 
    PassengerAppType node
    PassengerStartupFile index.js

seem to lack proper documentation? how are they supposed to work?

Stefan Eriksson

unread,
May 29, 2014, 11:01:17 AM5/29/14
to phusion-...@googlegroups.com
Hm I'll post this as a bug if it not something anyone can answer, I'm guessing it fits as a bug.

Hongli Lai

unread,
May 29, 2014, 11:48:24 AM5/29/14
to phusion-passenger
They are documented now:
http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerStartupFile
http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerAppType

If you set PassengerStartupFile, you *must* also set PassengerAppType,
otherwise Passenger doesn't know what kind of app it is and ignores
the directory. In your example above, you commented out
PassengerStartupFile.
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/phusion-passenger.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/phusion-passenger/27947886-fa02-482e-bfe6-f3d589013c07%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Phusion | Web Application deployment, scaling, and monitoring solutions

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

Stefan Eriksson

unread,
May 29, 2014, 1:00:59 PM5/29/14
to
Thanks for the answer but the thing is, it only works if I comment   PassengerAppType node out. If I remove # from above vhost it doesnt load passenger it goes to show all files in the dir.

Would be great to have an apache2 example alongside nginx here: https://github.com/phusion/passenger/wiki/Free-style-Node.js-structure

I cant get it to work with the above:

    PassengerEnabled on
    PassengerAppType node
    PassengerStartupFile index.js

Goes to:

Index of /
Name Last modified Size Description

So it seems broken :( Can you get a working example up?

Hongli Lai

unread,
May 29, 2014, 2:55:09 PM5/29/14
to Stefan Eriksson, phusion-passenger
The issue has been confirmed. I'll have this fixed. Let's move
discussion to https://github.com/phusion/passenger/issues/1196

On Thu, May 29, 2014 at 7:00 PM, Stefan Eriksson <serik...@gmail.com> wrote:
> Thanks for the answer but the thing is, it only works if I comment
> PassengerAppType node out. If I remove # from above vhost it doesnt load
> passenger it goes to show all files in the dir.
>
> Would be great to have an apache2 example alongside nginx here:
> https://github.com/phusion/passenger/wiki/Free-style-Node.js-structure
>
> I cant get it to work with the above:
>
> PassengerEnabled on
> PassengerAppType node
> PassengerStartupFile index.js
>
> Goes to:
>
> Index of /
> Name Last modified Size Description
>
> Den torsdagen den 29:e maj 2014 kl. 17:48:24 UTC+2 skrev Hongli Lai:
>>
Reply all
Reply to author
Forward
0 new messages