Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Ok, so I have 192.168.x.14 with port 80 open and I have set the netgear router to point there then I have 192.168.x.12 with apache running but when I try to connect using chrome to the website hosted on .12 it cant find it, how do I set up .14 to also check .12

/nagios is running on .12
while
/munin is running on .14 

Thank you for helping

I know about Squid, but I don't know what to do? Do I use that or something else.

share|improve this question

closed as not a real question by Shane Madden, Wesley, mailq, mgorven, Ward Jul 4 '12 at 16:52

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
was able to get it to work I'll post the answer –  RussellHarrower Jul 3 '12 at 3:25
add comment

2 Answers

up vote 0 down vote accepted

Basically you have two web servers behind the NAT. Because of how port forwarding is designed you can port redirect to only one of them.

To make your life easier just use a different port for the other server and that should solve your problems. I mean you can still use complex proxy solutions like varnish, HAproxy, squid, mod_proxy from apache, etc but there is no point for the setup you need.

share|improve this answer
    
I understand I can do that, but say I want to go to www.example.com I want my server to know go to .12 instead of .14 - I call it learning lol :) –  RussellHarrower Jul 3 '12 at 2:03
    
Aha than as I said you can use for example mod_proxy if you already have your apache installed and redirect some of the request to the other web server. Check at the documentation online. –  golja Jul 3 '12 at 2:13
add comment

http://ubuntuguide.org/wiki/Apache2_reverse_proxies - this is how I solved it, follow that if you have to do what I needed.

share|improve this answer
    
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  EEAA Apr 17 '13 at 4:59
add comment

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