NAT in Apache

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

NAT in Apache

Postby 5ybarite » 11. January 2007 20:48

I've been looking around recently in an attempt to understand what I want to do, but I'm not sure that I completely get it so I'll attempt to ask this question as best I can. Essentially I have a couple of machines running XAMPP (windows) and I want NAT to allow me to call one machine one thing, and the other machine something else so that I don't have to remember the IP addy every time I want to access something. This is essentially tantamount to making a change in the httpd.conf at the directory root, right? Do I just change "ServerName localhost:80" to like "ServerName thing1:80"?

That hasn't worked for me yet, so I'm trying to figure out where I've gone wrong. I really just want to be able access this over the local intranet.

Thanks in advance.
~5yb
5ybarite
 
Posts: 2
Joined: 11. January 2007 20:42

Re: NAT in Apache

Postby Izzy » 12. January 2007 01:01

5ybarite wrote:I've been looking around recently in an attempt to understand what I want to do, but I'm not sure that I completely get it so I'll attempt to ask this question as best I can. Essentially I have a couple of machines running XAMPP (windows) and I want NAT to allow me to call one machine one thing, and the other machine something else so that I don't have to remember the IP addy every time I want to access something. This is essentially tantamount to making a change in the httpd.conf at the directory root, right? Do I just change "ServerName localhost:80" to like "ServerName thing1:80"?

That hasn't worked for me yet, so I'm trying to figure out where I've gone wrong. I really just want to be able access this over the local intranet.

Thanks in advance.
~5yb

You could start by looking into the xampp\apache\conf\extra\httpd-vhosts.conf file as this conf file may be what you need. Also the Server Pool Management conf file httpd-mpm.conf in the same directory might be worth reading.

Remember that the httpd.conf file is the server defaults and if you want to change the default server behaviour then the configuration files in the extra directory may be the way to do it.
Most of the conf files contain some useful reading in the form of comments and often provide some helpful clues.

A search of these English forums for virtualhost or vhosts and NAT might give you more clues as others may have found a solution to a similar issue.

Good reading at Apache re this subject can be found in the manual here:

http://httpd.apache.org/docs/2.2/mod/co ... irtualhost

http://httpd.apache.org/docs/2.2/mod/co ... irtualhost

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

http://httpd.apache.org/docs/2.2/mod/core.html

http://httpd.apache.org/docs/2.2/mod/directives.html

http://httpd.apache.org/docs/2.2/mod/qu ... rence.html

http://httpd.apache.org/docs/2.2/platform/windows.html

Your system hosts and network files may come into play in your case and would be worth investigating how to set these files up for your needs.
C:\WINDOWS\system32\drivers\etc\
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby 5ybarite » 12. January 2007 15:30

thanks very much for your help!

~5yb
5ybarite
 
Posts: 2
Joined: 11. January 2007 20:42


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 138 guests