image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
LinkBack Thread Tools
  #1  
Old June 26th, 2002, 03:22 PM
Registered User
 
Join Date: Oct 2001
Location: Minneapolis, MN
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
kwiersma is on a distinguished road
Lightbulb Virtual Hosts in Apache

I figured out that I could probably set up apache to have several virtual hosts for each web project I work on. This way I could just go to http://project1/ and http://project2/ and I could have separate document roots for each project.

Does anyone know the right apache httpd.conf directives to set this up so that http://project1 points to a directory on my hard drive and http://project2 points to a different directory?

Thanks. O
Reply With Quote
  #2  
Old June 26th, 2002, 05:15 PM
Registered User
 
Join Date: Jun 2001
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
howardm4 is on a distinguished road
when in doubt, use the gobs of
documentation available to you.

http://httpd.apache.org/docs-2.0/vho....html#purename
Reply With Quote
  #3  
Old June 26th, 2002, 11:07 PM
hazmat's Avatar
Rusher of Din
 
Join Date: Oct 2001
Location: Brooklyn, NY
Posts: 1,803
Thanks: 0
Thanked 0 Times in 0 Posts
hazmat is on a distinguished road
Just in case some of the info for Apache 2.0 varies, you should stick with http://httpd.apache.org/docs/vhosts/index.html , since unless you installed 2.0, OS X runs 1.3.x. You probably want to use name-based vhosts.
Reply With Quote
Reply

Bookmarks

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache + mod_rendezvous + virtual hosts? suzerain Design & Media 0 February 9th, 2003 05:29 PM
Apache Virtual Hosts... help! TommyWillB Design & Media 1 January 1st, 2003 07:10 PM
Apache and hosts. hugheba Mac OS X System & Mac Software 5 July 7th, 2002 03:42 AM


All times are GMT -5. The time now is 12:33 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.