I have installed Apache 2.2.17 and nginx 0.8.53 as load balancer (static for Nginx and PHP for Apache). Everything is working, but when I access mysite.com (default port 80) I get my webpage and can see HTTP headers of nginx server. When I access mysite.com:8080 I get the same page and see headers of Apache2. How can I disable or redirect port 8080 to main domain?

using CentOS 5. apache and nginx are compiled from their sources.

link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

You could bind the service that uses 8080 (apache right?) to localhost instead of your actual IP. Check for "Listen" in httpd.conf/apache2.conf, and replace with "Bind localhost" and restart the service.

link|improve this answer
+ changed in nginx.conf proxy_pass to 127.0.0.1 – NARKOZ Nov 3 '10 at 13:37
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.