Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 3rd, 2001, 03:55 PM
m0nk3y's Avatar
m0nk3y m0nk3y is offline
Certified m0nk3y!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Posts: 437 m0nk3y User rank is Lance Corporal (50 - 100 Reputation Level)m0nk3y User rank is Lance Corporal (50 - 100 Reputation Level)m0nk3y User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 14 h 23 m 38 sec
Reputation Power: 8
Send a message via MSN to m0nk3y
Virtualhosts??

I have apache installed on locally, and i have the normal localhost address. Is it possible to have php.localhost or whatever before the localhost part.

So php.localhost would point to /apache/php

and the normal is currently pointing to /apache/htdocs

Can i have any amount of these subdomains as i want?

I am using the apache on Win2k and the most recent version of apache.

Would i have to mess around with the NameVirtualHost settings, but i dont know what that is really so i dont have a clue!
__________________
---------
Linux...Macs.... there boring, they just work....... Windows users on the other hand have all the fun!!
---------
PHP | MySQL | Apache | Zend

Reply With Quote
  #2  
Old November 3rd, 2001, 03:59 PM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 18
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
I wouldn't bet money on it, but I'd say that you cannot make subhost for localhost since localhost is a name by which you box goes.
__________________
And you know I mean that.

Reply With Quote
  #3  
Old November 5th, 2001, 12:50 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> Can i have any amount of these subdomains as i want?

Yes.

In C:\WinNT\System32\Drivers\Etc\Hosts (Hosts is a file, create it manually if you have to), put:

# on the same line
127.0.0.1 localhost php.localhost another.localhost

>> Would i have to mess around with the NameVirtualHost settings

Yes. The Hosts file configuration portion takes care of local hostname lookup. Apache still needs to be configured to be able to know what to do when http://php.localhost is requested.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Virtualhosts??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT