Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1819  / 3 Years ago, fri, july 23, 2021, 3:42:40

Is there anything special related to deploying a Rails application in Ubuntu using Passenger and Apache2?



I've installed passenger appropriately as indicated in the many instruction pages, but every time I add a new element within my sites-available directory (and subsequently a2ensite the file), I have no response at all. In addition, passenger-status reports nothing.



<Virtualhost *:80>
DocumentRoot /var/www/html/mynewapp/public
<Directory /var/www/html/mynewapp/public>
Allow from all
Options -Multiviews
</Directory>
</VirtualHost>


The webserver on which I must deploy the (sample) application is used purely for internal purposes, and has only a local IP addres (hence no domain crap, and why I have excluded the Servername directive). Strange thing is that I don't even get an error in the apache error_log.



Any ideas?


More From » apache2

 Answers
2

I figured this out myself; turned out it was not the apache configuration file, but rather that the application was not being registered with passenger.



To bypass this, I simply set the virtualhost to listen to a specific port (say, 123), and then updated the apache conf to listen on that port. At that point, passenger-status reported the application in the pool.


[#41476] Saturday, July 24, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
atetamme

Total Points: 11
Total Questions: 121
Total Answers: 109

Location: Puerto Rico
Member since Sun, Jun 27, 2021
3 Years ago
;