Pointing a domain to my server.
Posted by: Abydosgater (---.b-ras1.blp.dublin.eircom.net)
Date: April 18, 2008 11:23PM

Hi,
Today i got my own dedicated server.
I have experience with using WAMP on a local server. But never have had to point a domain to a server.

I know how to change the DNS for the domain.
But could someone please tell me how to configure wamp/apache to use the domain and accept the traffic?

Please? Any help is greatly appriciated!

Abydos.

Options: ReplyQuote
Re: Pointing a domain to my server.
Posted by: toivo (---.belrs4.nsw.optusnet.com.au)
Date: April 19, 2008 02:39AM

Hi,

Here is an extract from a httpd-vhosts.conf from WampServer 5, showing how one virtual host has been configured. You need to uncomment the line in httpd.conf, pointing to the virtual hosts configuration file:

NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
ServerName www.example.com
ServerAlias www.example.com
DocumentRoot d:/www/example.com
ServerAdmin webmaster@example.com
ErrorLog ../logs/example.com_error.log
CustomLog ../logs/example_access.log common
<Directory d:/www/example.com>
DirectoryIndex index.php
Options None
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Add the following entry to the hosts file C:\Windows\system32\srivers\etc\hosts:

127.0.0.1 www.example.com

You will need to change the domain name and the paths in the example to suit your environment. It should work also in Wamp 2.

If your router has a static IP address and your domain is now pointing to it, all you need to do is to forward TCP port 80 on your router to the internal IP address of your WAMP server.

Regards,

toivo
nottingham, uk



Edited 1 time(s). Last edit at 04/19/2008 02:41AM by toivo.

Options: ReplyQuote


Sorry, only registered users may post in this forum.