[BlueOnyx:01279] Re: How do I change the port for a vsite?

Tjerk Hacquebord tjerk at hqmatics.nl
Fri May 22 06:53:58 -05 2009


You could change the port by editing the conf file of the vsite.
(/etc/httpd/conf/vhosts/). Changes will be overwritten by de GUI when you
change the vsite name.

Another solution that does not affect changes made through the GUI is to
redirect your port with iptables.
For example:
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 8080 -j DNAT --to
192.168.10.x:80

Now your server will also serve on port 8080.

I would not use the second option for sites with a lot of traffic.



Tjerk Hacquebord
---
tjerk at hqmatics.nl
http://www.hqmatics.nl


HQMatics: Software- en websiteontwikkeling

-----Oorspronkelijk bericht-----
Van: blueonyx-bounces at blueonyx.it [mailto:blueonyx-bounces at blueonyx.it]
Namens Support
Verzonden: vrijdag 22 mei 2009 11:23
Aan: 'BlueOnyx General Mailing List'
Onderwerp: [BlueOnyx:01277] How do I change the port for a vsite?

Hello,

I have a vsite sitting on my intranet NIC (ETH1) but I need to move it from
port 80 to another port.

I have ETH0 (192.168.10.x) pointed to our VPN and ETH1 sitting on the local
network (192.168.0.x) with the internet connection coming from our
192.168.0.1 router.

The BQ box is effectively fronting our VPN (which does not use the normal
internet connection - it has its own external connection) and I want to be
able to forward port xx from the internet connection to ETH1 on the BQ box
but there is an existing forward for port 80 to an SBS machine.

I tried a few things and could not make it work so I am obviously missing
something important. I am very much a Linux newbie so any help would be
appreciated.

Thanks

Tony


_______________________________________________
Blueonyx mailing list
Blueonyx at blueonyx.it
http://www.blueonyx.it/mailman/listinfo/blueonyx




More information about the Blueonyx mailing list