What's new

Possible to setup N66U to run 2 web servers on 2 different machines?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

chrisk

Occasional Visitor
Is it possible to configure the N66U to run apache on 2 different machines but both using port 80?
I have tried using 81 but it just wont open.
I have 800 and 801 open but 81 will not open on my machine. I even tried dmz and still cant see it. Could it be something on the machine?

Thanks,
Chris
 
How are you opening the ports, with the firewall?

This should be in /jffs/scripts/firewall-start:

#!/bin/sh

iptables -I INPUT -p tcp --destination-port 81 -j ACCEPT

Then:

chmod a+rx /jffs/scripts/firewall-start

Reboot and 81 should be open.

Then setup Apache to do Virtual Hosts and this should resolve the 2 ips on the same lan with Apache running issue.

http://httpd.apache.org/docs/2.2/vhosts/

Specifically, IP Based Virtual Hosts:

http://httpd.apache.org/docs/2.2/vhosts/ip-based.html
 
Last edited:
You can setup "pund" with optware which is a reverse proxy. It will redirect recuests depending on the url you are trying to access.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top