Try this as you don't need to buy any hosting to get your site on the Internet using XAMPP, but having said that, it is advisable to be careful about security issues outlined in the Security menu item of the XAMPP Welcome Page - I have no difficulties serving 6 domains from my local PC to the Internet using only XAMPP with a dynamic IP and a dial-up connection.
You will need to set up this file
xampp\apache\conf\httpd-vhosts.conf
A search in the
Xampp for Windows forum, Search for Author
Izzy, category
Apache Friends in English, using the keyword
vhost or
virtualhost will give many clues and a possible solution for you.
The Apache Docs. will most surely help, though somewhat technical.
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
This recent post for example has a very informative discussion on creating a virtual host situation and once one domain is confirmed to operate as intended then adding more is very simple indeed, plus of course you have learned how to do it correctly.
This one also outlines a dynamic IP situation.
http://community.apachefriends.org/f/viewtopic.php?t=27069
But in the search results there are many more examples.
You would be looking at doing something like this in the
xampp\apache\conf\httpd-vhosts.conf file to get what you want to do but substitute your own paths where applicable and this is only an example:
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName test.dyndns.tv
ServerAlias www.test.dyndns.tv
DocumentRoot "C:/xampp/htdocs/yourwebsitefolder"
<Directory "C:/xampp/htdocs/yourwebsitefolder">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order Allow,deny
Allow from all
</Directory>
</VirtualHost>
This way there is no need, nor is it advisable, to change anything in the
httpd.conf file from the defaults as we are taking care of all that in the
httpd-vhosts.conf file.
Also because you have a dynamic IP we use the wild card IP
*
You will always have to tell DynDNS every time your IP changes or no one will be able to find your server.
This link will help you set up the entries in the Windows Hosts file so others machines on your network can access your site locally if you have a local area network (
LAN) setup:
Step-by-Step: How to write a HOSTS file
Also clicking on the
Step by Step menu item at the above site has many more useful guides.
If you get stuck or have issues then paste them here so I can take a look at how you have done things.
Good Luck.
===========================================
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
===========================================