Here are the steps to setup a very simple website using xampp and a Namecheap domain.
1. Obtain your external IP address
Go to http://whatismyip.com and get "Your IP" addressTake note of the external IP address |
2. Configure URL forwarding
Go to the URL forwarding section in Namecheap domain configuration.Now set the values for the IP Address/URL and Record type as follows -
A (Address) - Your IP
URL Frame - http://<your_ip>:8080/mysite
URL Forwarding section in Namecheap domain configuration |
3. Obtain your internal IP address
Open the command prompt window and type - ipconfig and hit enterIdentify your network adapter and take note of IPv4 Address |
4. Configure port forwarding
Log into the router configuration by going to this address in the browser - http://192.168.0.1/Go to the Port Forwarding section, and add an entry to forward HTTP traffic for port 8080
Router port forwarding configuration |
5. Configure Apache to serve on port 8080
Open the Xampp control panel, and click on Configure and then on Apache (httpd.conf)XAMPP Control Panel |
Apache httpd.conf |
XAMPP Control Panel after listen port change |
6. Create your website directory
Now, create a folder called mysites in the server directory. The path will be as follows -D:\Program Files (x86)\xampp\htdocs\mysite
mysites folder in htdocs |
7. Access your website
Now try accessing in the following URL in the browser -http://localhost:8080/mysite/
Website access on the local server |
Now access your Namecheap domain. For me, its www.patchrowcester.com. This should serve the index.html page in the server directory.
Access website using domain name |
webcare360.com Provides you safe and secure cheap Offshore Hosting Best offshore hosting and Dmca Ignore hosting with 99.9% Up time Guarantee, with Ddos protection.
ReplyDelete