Forum Moderators: phranque

Message Too Old, No Replies

Apache config question

Apache config question

         

dfreeman

12:21 am on Aug 9, 2006 (gmt 0)

10+ Year Member



Someone out there has their domains DNS pointing at my site. So when you type in their domain name out site comes up! I hear there is a config I can set in apache so it will only pull up our site with our domain name. I cant seem to find the config?

Anyone know?

Thanks in advance!

jdMorgan

2:39 am on Aug 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I presume that your site is hosted on a dedicated host or virtual dedicated host and that you have a dedicated IP address. Further, you must have a "wildcard" or missing ServerName and/or ServerAlias directive in httpd.conf.

There are several ways to modify the server's behaviour, but the options depend on what you want your server to do with these requests. You can either reject the requests with a 'server not found' error message, or redirect the requests to your own domain so that the visitor's address bar changes to indicate your doamin.

Jim