apache server going to .local

Discussion in 'Mac OS X Server, Xserve, and Networking' started by manchot, Feb 29, 2008.

  1. macrumors newbie

    Joined:
    Feb 29, 2008
    #1
    so i'm setting up my old mac as a server with apache just for fun and i have everything set up but i noticed that say if i type in:

    mylamenoobsite.com/blkadgag/

    and the page doesn't exist it will go to the 404... BUT if i type in

    mylamenoobsite.com/blkadgag

    and the page doesn't exist it will forward the site to nameofmycomputer.local/blkadgag

    how do i stop this and just let it go to the 404?

    tyvm

    edit: also even it is a real page that loads correctly for example:

    mylamenoobsite.com/realpage/

    if i take the slash out

    mylamenoobsite.com/realpage

    it will then try to redirect to mycomputer.local/realpage
    any help?
     
  2. Guest

    ppc_michael

    Joined:
    Apr 26, 2005
    Location:
    Los Angeles, CA
    #2
    You need to edit your httpd.conf file, located at /etc/httpd/httpd.conf

    Uncomment "ServerName" and set it to your yourlamenoobsite.com ( ;) )

    Don't forget to restart apache after:

    sudo apachectl restart
     
  3. thread starter macrumors newbie

    Joined:
    Feb 29, 2008
    #3
    TY so much!!

    worked like a charm.
     
  4. macrumors P6

    DoFoT9

    Joined:
    Jun 11, 2007
    Location:
    Singapore
    #4
    you can host from your mac and view your web page from any computer???

    hhmmmmmmm
    :confused:
     
  5. Guest

    ppc_michael

    Joined:
    Apr 26, 2005
    Location:
    Los Angeles, CA
    #5
    Glad I could help. :)
     

Share This Page