Forum Moderators: travelin cat

Message Too Old, No Replies

Multiple Web sites on Mac OS X client

Making Apache do virtual hosts

         

timster

12:52 am on Aug 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Has anyone configured Mac OS X client to serve mulitiple web sites? Maybe with Virtual Hosts? Any hints would be appreciated.

(We are trying to serve up a few little sites on an old G4 but don't have the cash for Mac OS X Server.)

Or is this a question for the Unix board?

Yidaki

11:22 am on Aug 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>mulitiple web sites? Maybe with Virtual Hosts?

Exactly! Just open the httpd.conf with pico and adjust it to your needs.

% sudo pico /etc/httpd/httpd.conf

The config file is well commented so you should find out pretty quickly how to set up vhosts. Or do you have specific questions allready?

timster

4:20 pm on Aug 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks. Just knowing it was possible helped, I think.

We've got the Virtual Hosts going (correctly, I hope) and we're plugging away getting the IP addresses set up. We'll beg for more help if we get stuck again.

Yidaki

5:24 pm on Aug 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



And you don't have *any* budget?! Not even just $399 ...? I'd highly recommend WebSTAR Server Suite [4d.com] if you want flexibility. Mail Server is included. Search Engine included as well (with built in web crawling and indexing capabilities). You don't need MacOSX Server at all! I run all my serves just either with the build in apache (single host + MySQL) or under WebSTAR (virtual hosts) - using the plain regular Jaguar OS.

<added>
Another really cool feature of w* is that you can mask url's using either redirect, rewrite or proxy rules. One of my virtual hosts uses rules (regular expressions) to proxy search requests from the virtual host www.example.com/search?q=keyword to another machine at 123.456.789.0/query.cgi?q=keyword&template=... where the search engine runs.
</added>

BjarneDM

6:58 pm on Aug 23, 2003 (gmt 0)

10+ Year Member



[onlamp.com...]

I did some comments in the feedback section

timster

12:57 pm on Aug 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>And you don't have *any* budget?! Not even just $399 ...?

Well, we don't. But that's besides the point.

We're really just trying to become Unix geeks. The chicks dig that. Seriously, though, this is a learning project.

Thanks, everyone, for their posts. I'll report back when we get stuck again or get it working.