PDA

Bekijk de volledige versie : Change Port 80, no redirection of port



tase
19-09-2005, 20:34
Hi people of forum, how are you?

The first, thanks in advance.

My Asus is Asus wl 500 gx with the latest firmware (1.9.2.7-6b)

I have a question, i need change the listen port of the web configurator without iptables.

I cant use Iptables because i stay in project without this.

I need the port 80 to other web server, this no is the problem, i can make this with this command:

kill `pidof httpd eth1` && busybox_httpd -p 80 -h /opt/www

But I cant start the configuration webserver with this command:

busybox_httpd -p 81 -h /www

Because the busybox_httpd dont have asp support.

I need resolve a question:

- Can I change the listen port? How?

- How make the busybox to start the configuration webserver?
(I think in this command: kill `pidof httpd eth1` && busybox_httpd -p 80 -h /opt/www && busybox_httpd -p 81 -h /www)

Thanks for all.

Sorry for my english, I´m spanish and ...................... sorry ;-)

tase
21-09-2005, 11:37
I won, :-).

This commands kill the configuration http server and change the listen port to configuration web.

first Posibility (No kill watchdog, watchdog restart process)


kill `pidof httpd eth1` && busybox_httpd -p 80 -h /opt/www
# Kill the webserver and start the new webserver in port 80
cd /www
httpd -p 81 eth1
# Start the Webserver Configuration. Remember navigate to /www, the
# DocumentRoot is te PWD.


Second Posibility (Killing watchdog, no restart any process)



kill `pidof watchdog`
kill `pidof httpd eth1`
# Kill watchdog and configuration webserver
busybox_httpd -p 80 -h /opt/www
# Start the second webserver in port 80
cd /www
httpd -p 81 eth1
# Start the Webserver Configuration. Remember navigate to /www, the
# DocumentRoot is te PWD.


Bye, thanks in advance.

Tase.