The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ww instead of www issues

Discussion in 'General Discussion' started by JeremyL, Dec 3, 2001.

  1. JeremyL

    JeremyL Well-Known Member

    Joined:
    Aug 10, 2001
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    For some reason when I type in http://ww.wdforums.com instead of http://www.wdforums.com it goes to hindstudion.com which is the first domain added to the server and the main domain on that shared IP.

    I would think it would just give a 404 since I don\'t have a ww subdomain. What would I change to fix this?
     
  2. feanor

    feanor Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    836
    Likes Received:
    0
    Trophy Points:
    16
    Make a base config entry for your http server..... that way it won\'t just route everything that resolves to the base IP of your machine to the first virtual host.

    Like make a virtual host for SERVER.HOSTNAME.NET (that comes before all the other ones). document root to /web/http_base or something and just touch a blank index.html in there. Make sure you set it up WITH the base IP of the server in the virtual host entry, don\'t use a name.
    (<VirtualHost 12.12.12.12>)
    (ServerName server.hostname.net)
    (DocumentRoot /web/http_base)
    (ServerAlias www.server.hostname.net)
    (/VirtualHost>)

    And then put stuff around it so nobody else kills it / removes it.... like WARNING THINGS

    ######### TOUCH AND DIE


    etc. :P
     
Loading...

Share This Page