Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

manchot

macrumors newbie
Original poster
Feb 29, 2008
7
0
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?
 

ppc_michael

Guest
Apr 26, 2005
1,498
2
Los Angeles, CA
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.