Welcome! Log In Create A New Profile

Advanced

Nginx and Thin with multi Apache instance

Posted by richiewu 
Nginx and Thin with multi Apache instance
August 25, 2016 12:42AM
I have two Apache Instance:

A1 listen on 80 port and A2 listen on 8080 and 8009 port, A1 should listen 80 on all IP addresses.

I added VirtualHost to redirect sub URI of A1's 80 port to A2's 8080 port.

Also I installed thin server which listen on 3000 port and start successfully, after that I start Nginx also listen on port 3000 and returns OK.

But if I use wget http://ip:3000, I got the index page in A1's root directory, not the home page of thin server.

If I use wget http://localhost:3000, I got error Address family not supported by protocol, even I have one record in /etc/hosts.

How can I solve this problem? Thank you in advance.



Edited 1 time(s). Last edit at 08/25/2016 12:43AM by richiewu.
Re: Nginx and Thin with multi Apache instance
August 25, 2016 11:15AM
Solved, just add upstream before server section and redirect through thin sock file.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 217
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready