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 October 16th, 2000, 03:34 PM
forefront forefront is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 165 forefront User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 55 m 52 sec
Reputation Power: 9
On my Win2K laptop, Apache 1.3.x, I keep local copies of a number of website for these offline, or when a client does not have a connection.

These sites are currently all in folders under /htdocs/

/htdocs/oink/
/htdocs/foo/

etc.,

I want to have each directory ("foo" "oink", etc.,) act as it's own docroot so URL's of "/" take me to the correct root.

I've looked at Apache's docs. re. virtual name-based hosting but am confused as (in this case) my machine is not on a newtork, it is all "localhost 127.0.0.1" -stuff

What changes do I need make within httpd.conf (and Windows "hosts" file?) to enable this?

Thank you
David

Reply With Quote
  #2  
Old October 18th, 2000, 03:58 AM
morsor morsor is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 5 morsor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I do the following to allow access to /htdocs/generator :

In the Win2k hosts file i include a entry :

127.0.0.1 generator.domain.com

In the httpd.conf in include :

NameVirtualHost 127.0.0.1

and just below :

<VirtualHost 127.0.0.1>
ServerName generator.domain.com
DocumentRoot "d:/Apache/htdocs/generator"
ErrorLog logs/generator-error_log
CustomLog logs/generator-access_log common
</VirtualHost>

I restart Apache and can now access what previously was localhost/generator as

generator.domain.com


Hope it helps,


morten sorensen

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Virtual hosting on Windoze


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 3 hosted by Hostway
Stay green...Green IT