There are 2 ways of doing this as outlined in the xampp\apache\conf\httpd.conf file
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# 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 12.34.56.78:80
Listen 80
The above will allow you to connect to the XAMPP Welcome Page using any IP.
http://123.123.123.123/
As long as the rest of the file is set to default.
Here you can add a specific IP address
Listen 123.123.123.123:80
Listen 127.0.0.1:80
as I have displayed above it should connect to any IP and even a wild card may work.
Listen *:80
Save the file and restart Apache to get your edits recognized and always make a backup of any conf or ini file before editing.
Or using a VirtualHost container as is also mentioned.
Search in the
Xampp for Windows forum, category
Apache Friends in English, using the keyword
vhost or
virtualhost will give some clues and example solutions - you can also add
Izzy in the
Search for Author field if you wish to narrow the search a little but is not essential.
Also please read the related Apache documentation.
http://httpd.apache.org/docs/2.3/vhosts/
http://httpd.apache.org/docs/2.3/vhosts/examples.html
http://httpd.apache.org/docs/2.3/mod/core.html
The vhost method will be able to protect the localhost but let you access a website using your IP or a domain name.
===========================================
1. The new
DeskTopXampp Launch Control for
XAMPP / XAMPPlite
Posted by
Ridgewood available from Ridgewood's
DTX web site
2. Build Rich
AJAX Applications - Faster
TIBCO General Interface Pro Edition but
FREE and
Open Source
Fully working with
NO donations required to get a user/password
===========================================