Page 1 of 1

SubDomain.Localhost

Posted: Wed Oct 08, 2003 10:56 am
by Gen-ik
Right I dont' know what on earth I've done to my Apache but I'm hoping someone can help me out!

I tried setting up a subdomain (this is all off-line and on my home PC) so that I can get to each one of my website projects quickly. In this case I tried to set-up http://law.localhost (or http://law.127.0.0.1) and redirecting it to the relevant folder.

Now when I goto http://localhost it takes me striaght to the folder I set-up for the subdomain and no matter what I do, or what I remove, from the conf file Apache seems intent on keeping this folder (law) as it's default.

I dont' know if anyone out there as played around with sub-domains (virtual hosts?) on their personal Apache set-ups but please help if you know what the hell is going on!


Please :cry:

Posted: Wed Oct 08, 2003 11:03 am
by Nay
I have no idea for subdomains without my cPanel but I know how to do this with IIS 6.0 :P. But I don't think you'll just switch to IIS 6.0 because of my convenience.

Anyhow, maybe you can make a home page. Out of Javascript or something. Say it's the index.html of localhost and you have a form with a text box. You enter "law" or something then it goes to "localhost/law" or so. Maybe even a .php file that'll list out all the folders in localhost.

Well, that's my idea. From what I know, I don't think you can set up a subdomain on http://localhost. It's local intranet stuff - I think.

Good luck,

-Nay