Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have recently bought a domain, and I have set up Windows DNS Server on my Server 2008 R2 machine to handle the DNS. To obtain the info you might need use this: http://www.intodns.com/gamersvision.co.uk

I am now trying to get Apache to serve the HTTP requests for the domain, but I really don't know where to start?

What I HAVE changed already (in httpd.conf): Listen 193.200.158.136:80 ServerName www.gamersvision.co.uk:80

I haven't touched anything else...oh, and environment info: Full ownership of domain gamersvision.co.uk (registered with NameCheap.com). Windows DNS Server (Fully configured I believe). Windows Server 2008 R2. Apache 2.4.x + PHP 5.3.14 + MySQL (Not that this really means much?).

I previously used IIS7, and had it working after a lot of trial and error but I now want to use Apache due to it's expandability (and support for .htaccess amongst other things).

share|improve this question

migrated from stackoverflow.com Jul 13 '12 at 9:09

This question came from our site for professional and enthusiast programmers.

    
Looked into it further, and my DNS Server is definitely configured correctly, it simply seems that Apache doesn't recognise it needs to accept connections to my domain name, however it does accept connections through the IP Address. –  Uniqu3 Jun 19 '12 at 8:56

1 Answer 1

up vote 0 down vote accepted

So I played around with the config file, and it seemed a bit weird that I had a port number on the 'ServerName' config line, so I remove the port and www. (I CNAME'd www. to the domain in my DNS server) and voila! ServerName gamersvision.co.uk

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.