HOWTO: Using Nginx - best practices!

Reg: NGINX Config with Apache Server on Linux

Hi All,

Please help some one how configure NGINX with Apache:

I have installed Apache Tomcat with two instances on the same server with different ports:

Example:
192.168.1.2:8080/mywork/
192.168.1.2:8081/myjob/

And also i have installed NGINX stable version on linux.

Now how should i have to configure in NGINX if one port gets shutdown another port should be up and were these ports should listen to: 80. Because we can't run both the ports on 80. So how shall i have to configure this in NGINX can please some one help me.

Waiting for Response

Regards,
Aryan
 
Hi,

I have installed as per the guide, now the only issue it.

i have 2 IP addresses.

now 3 domains are in 1 ip and 1 left in the other ip address.

So installing nginx my all 3 ips are working correctly but, the 1 Domain with different ip. It gives message "apache is loading fine"

what could be the issue?
 
Welcome. How to configure Nginx to serve static files? I want to use apache only for php.
 
Back
Top