hi i am very new to home hosting i have wampserver 2.0 on my computer but i dont no how to put the domain name in to the wampserver can any one give me some help or info please thanks william

hi i am very new to home hosting i have wampserver 2.0 on my computer but i dont no how to put the domain name in to the wampserver can any one give me some help or info please thanks william

You really don't want to use WAMP to host a public website. It's not secure.

That being said, what you'll need is to first make sure Apache allows outside IPs. This is in the http.conf file, that you can access from the WAMP system tray icon.

Somewhere inside the WAMP Apache http.conf file you'll have the following.

Order Deny,Allow

    Deny from all

    Allow from 127.0.0.1

You'll want to append

Allow from *

below that if you want everyone to be able to access Apache. I believe you can do this also from WAMP by toggling the online/offline button. If you want just a single IP to access it, then append the IP instead of *.

If you're behind a firewall, you'll have to add a firewall rule allowing the port 80 on your IP to be accessed from outside/anyone.

If you're behind a home router then most likely it will also not allow access from the outside to port 80. What you want, is for any request to port 80 be forwarded by your router to Apache on your machine listening on post 80. To do this you'll have to add a port forwarding rule in your router. This is specific to the router you use.

Now for the domain name:

By default WAMP should be listening on port 80 on the localhost. Assuming all explained above it done, then you should be able to point your browser to your IP as seen from the internet, and your WAMP homepage will show up.

To get your outside IP visit http://whatismyip.com/automation/n09230945.asp

Now you'll just need a domain name. At the domain registrars website, you'll have to change your DNS settings to have your domain point to your IP.

Some domain registers will allow you to create your own nameservers. If this is the case, then you can:
- create nameservers for your domain. eg: ns1.example.com, ns2.example.com
- point both name servers to your IP
- add those two name servers to your domain name's domain name server list.

Some registrars only allow you to add domain name servers to the domain name server list for your domain.
In this case you'll either have to host your own DNS server, or use a service such as http://www.dyndns.com/ etc.
If haven't used http://www.dyndns.com/ or similar, but it would be something like.
- Register, create domain name servers for your domian
- point them to your ip.
- add those name server to your domain name's domian name server list at your domain registrar.


If you could post your domain registrar someone might have first hand experience with it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.