Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Host multiple sites

Host multiple sites
Thread Tools
Junior Member
Join Date: Oct 1999
Location: Greenville, NC USA
Status: Offline
Reply With Quote
Apr 2, 2003, 02:21 PM
 
hi,

I'm trying to decide between a mac g4 with OSX (Not server) and a cobalt raq.. Obviously I'd like to go with the g4.. but I need to figure out if two things are possible.

1) Can I do virtual domain hosting? So multiple website names go to different web folders?

2) Can it do the above, except for different ips? Can my single g4 handle x amount of ips and host a different web site for each ip?

Are these apache tweaks?
Can I do it in server? I'd rather stick with osx regular, and not need server.. but if needbe fine.. as long as I don't have to get the raq..

Thanks
Tim
     
Fresh-Faced Recruit
Join Date: Jun 2002
Status: Offline
Reply With Quote
Apr 4, 2003, 03:43 PM
 
i build websites at home and host all of them off my OS X machine to my local network by configuring apache's virtual server options. you can map separate ports to diferent root folders. for example:

/Users/myhome/Sites/site1/ => 192.168.1.2:5001
/Users/myhome/Sites/site2/ => 192.168.1.2:5002

I also have to tell apache to listen for incoming requests on those ports, so under where it says:
Listen 80
(the default http port)
i add:
Listen 5001
Listen 5002

i don't know if it's valid to list an IP with a specific port with DNS, but i think apache can be configured to listen for specific domain requests. the port numbers i just picked randomly, and i'd have pasted the actual text fom my httpd.conf file in here, but my mac is currently de-fragging.

i hope this helps
     
Dedicated MacNNer
Join Date: Nov 1999
Status: Offline
Reply With Quote
Apr 4, 2003, 03:53 PM
 
just wanted to offer a bit more help:

first you'll need to decide such things as:
1. are these publicly available domains?
2. do you have access to a single or multiple static IP's?
3. do you have FQDN's for all virtual hosts?

anyways here's what i have running on my mac os x box: i added these directives to the end of my /etc/httpd/httpd.conf file

NameVirtualHost (ip address of your host here)

<VirtualHost 192.168.0.1>
DocumentRoot "(indsert path to your content here)"
ServerName (insert name of your server here--a fully qualified domain name)
</VirtualHost>

<VirtualHost (ip address of your host here)>
DocumentRoot "(insert path to 2nd web content here)"
ServerName (insert name of your 2nd server here--a fqdn)
</VirtualHost>


there are also a few tutorials at www.apache.org that you can read. alternatively you can read the apache docs that come with mac os x in /Library/Webserver/Documents/manual

ppmax
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:13 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2