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\