Apache Ports

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache Ports

Postby chrissifer » 30. August 2009 19:23

Okay, i have a slight issue with apache.

I use apache friends as a development server, and sometimes I need to show clients stuff i have been working on.

When I am internal to the same network as the development server, I can just go to http://www/ and it will load the homepage. This is fine, but i also want to be able to let my clients have access to the development outside of the network.

I Know that i can just open port 80 on the firewall and give them the external IP address of the network, however, we already have a website running on port 80, so i wondered if i could configure apache (on the dev server) to have the following:

* Port 80 on internal LAN (http://www or http://192.168.1.100

* port 81 on external IP (http://123.456.789.000)

Obviously, i could just change the internal to be 81 too, but it would be remembering to change the internal access to: http://192.168.1.100:81 which would just confuse us

We cannot change the other website from port 80.


Any suggestions?
chrissifer
 
Posts: 2
Joined: 30. August 2009 19:15

Re: Apache Ports

Postby Wiedmann » 30. August 2009 19:30

I Know that i can just open port 80 on the firewall and give them the external IP address of the network, however, we already have a website running on port 80

So that's a NAT-router (with port-forwarding) and not (only) a firewall?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Apache Ports

Postby chrissifer » 30. August 2009 19:34

I've figured this out, you can close this for me now,


I just had to edit the httpd.conf and add:

# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
Listen 80
Listen 81


and then open the port 81 to the internal IP address on the NAT router!
chrissifer
 
Posts: 2
Joined: 30. August 2009 19:15


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 91 guests