New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

Configuring Multiple Web Sites with single IP on web server running Snow Leopard


Post Reply New Thread Subscribe

 
Thread Tools
Runner NYC

 
Member Since: Mar 08, 2010
Posts: 1
Runner NYC is on a distinguished road

Runner NYC is offline
So how do I go about doing that? I have three sites I want to host on a single server with one IP. What is the actual settings on the server running Snow Leopard that directs the traffic to the site?

Thanks for any help.
QUOTE Thanks
Jarvis

 
Member Since: Dec 16, 2009
Posts: 6
Jarvis is on a distinguished road

Jarvis is offline
I've been searching this same thing all night. I ordered a Mac Mini I plan to host multiple sites on. I don't have it yet so I haven't gotten to try this, but the instructions at this link look promising. I know it's for xserve but I think it's all the same.

Optimizing an Xserve for Web Hosting
QUOTE Thanks
mbohn

 
Member Since: Jul 09, 2009
Location: Colorado
Posts: 356
mbohn will become famous soon enough

mbohn is offline
Mac Server Series: Multiple IP Addresses on One Mac : far away mac | mac server tips

Not sure if this is exactly what you are looking for but take a look at it.

www.dynostep.com
engine simulation software
QUOTE Thanks
Jarvis

 
Member Since: Dec 16, 2009
Posts: 6
Jarvis is on a distinguished road

Jarvis is offline
I looked more closely and it looks like the link I posted previously applies to the server edition of OS X. The regular version requires the same steps, but is more manual. You need to manually edit the httpd.conf file (in /private/etc/apache2) by uncommenting line 465: "Include /private/etc/apache2/extra/httpd-vhosts.conf". Then add virtual host information to vhost.conf (in /private/etc/apache2/extra). Here's an example of virtual host info copied from Apache's website:

<VirtualHost 10.1.2.3>
ServerAdmin webmaster@host.foo.com
DocumentRoot /www/docs/host.foo.com
ServerName host.foo.com
ErrorLog logs/host.foo.com-error_log
TransferLog logs/host.foo.com-access_log
</VirtualHost>

Restart Apache by turning web sharing on/off in System Prefs and it should go.

This is to add multiple domains behind the same IP, you also have the option to create multiple IPs (though I don't know how that works). Also, this is for Snow Leopard (and possibly Leopard), if you're running a slightly older version I think the only difference is that vhost.conf is included in httpd.conf.

Let me know if you have any luck!
QUOTE Thanks

Post Reply New Thread Subscribe


« Getting my domain name to work w/ Mobileme | Web deployment, ftp & .php: the deliberations of a noob »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Newbie question about leopard server and domains/dns etc edokid OS X - Operating System 3 01-27-2009 09:11 PM
Question about using a computer running leopard server edokid OS X - Operating System 1 01-24-2009 11:28 AM
Problems with MySQL scorpionbilli Web Design and Hosting 18 04-29-2008 07:07 PM

All times are GMT -4. The time now is 08:32 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?