SubDomain.Localhost

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

SubDomain.Localhost

Post 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:
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post 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
Post Reply