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 > Developer Center > Need info on how to configure web server

Need info on how to configure web server
Thread Tools
Senior User
Join Date: Feb 2000
Location: Webster, NY, USA
Status: Offline
Reply With Quote
Oct 20, 2006, 10:11 PM
 
I have an old PowerMac G4, running OS 10.4.8. I am hoping I can use this to host MULTIPLE websites. While I am familiar how to configure Windows SBS and Windows 2003 Server to host multiple sites, I am unfamiliar as to how this is done in OS X.

I have a business DSL line with 1 dedicated IP, and I want to put my two personal sites as well as my business site on one machine.

I have been unsuccessful at finding how to configure multiple sites on a Mac. In addition I was figuring I could allow a few of my friends to host sites free as well (only personal sites as I don't have a lot of bandwidth).

Can someone give me a link to a good tutorial for configuring OSX to act as a webhost for multiple sites without having to create numerous user accounts.

Thank you,

O
B unce!
     
Mac Elite
Join Date: Sep 2001
Location: MA, USA
Status: Offline
Reply With Quote
Oct 20, 2006, 11:06 PM
 
You want to use apache. While I can't point you toward a specific guide, I can tell you what you have to do and maybe you can find something on google more in depth. Basically any guide regarding apache will help although things are likely to be a little different.

First you want to edit the httpd.conf file located at /etc/httpd/

at the bottom you will see a line:

Include /private/etc/httpd/users/*.conf

That means that any conf file under the /private/etc/httpd/users/ directory will be read. You can either leave this or duplicate the line and change users to some other directory that you want to store these conf files in.

Anyway, what you want to do is create a file called mysite1.conf in the either the /etc/httpd/users directory or the new directory specified. In that file you want to create a virtual host. You can search google for info or look for an example in the httpd.conf file. It will look something like this:

Code:
<VirtualHost *:80> DocumentRoot /www/example2 ServerName http://www.example2.org </VirtualHost>
Do this for every site. You will have to restart apache after you make these changes.

Go to System Preferences -> Sharing and turn on Personal Web Sharing.
(Last edited by TheMosco; Oct 21, 2006 at 02:04 PM. (Reason:Changing the exmaple))
AXP
ΔΣΦ
     
Moderator
Join Date: Mar 2004
Location: Copenhagen
Status: Offline
Reply With Quote
Oct 21, 2006, 04:35 AM
 
Hehe, that example2 server name sort of backfired, eh?
     
Mac Elite
Join Date: Sep 2001
Location: MA, USA
Status: Offline
Reply With Quote
Oct 21, 2006, 02:05 PM
 
Originally Posted by Oisín View Post
Hehe, that example2 server name sort of backfired, eh?
yeah, that was kinda annoying...
AXP
ΔΣΦ
     
   
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 02:39 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