|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
>> 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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Virtualhosts?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|