Passenger with apache and nginx in one development window

I have Apache and a passenger on my notebook. I want to test Nginx and a passenger on the same machine. I can install Nginx on 8080 and apache on 80. But can I install a passenger with the same server on the same computer?

+2


source to share


2 answers


Yes, just install the apache module and then the nginx module. You probably need to make sure each server has a different setting PassengerTempDir

.



+1


source


I had both Apache and Nginx with Arch Linux installed and running on the same machine, running Rails. One day, while starting apache and listening on port 80, I started listening to nginx on the same port and got the (expected) error that the port was already bound. I stopped apache and nginx, restarted nginx and started getting Bad Gateway errors whenever I tried to access a Rails application under Nginx. I still haven't figured out what the problem is and how to fix it. Perhaps rebooting doesn't help.



0


source







All Articles