[This reply assumes you've dealt a little with editing your apache config file. If not, skim the docs or just read the comments in the default config file...] Doing what you need is pretty simple, though I don't remember where I found the instructions:
1. open your /etc/httpd/httpd.conf for editing.
2. Add a Listen directive for the port number; that is, for port, say, 3000, add a line that says
Listen 3000
3. Add a <VirtualHost> directive. The opening tag would say <VirtualHost _default_:3000> (usting the same example port number).. inside the <VirtualHost> container, you want a "Port 3000" directive and a DocumentRoot directive pointing to the desired directory. Add whatever else you need to inside the <VirtualHost> directive.
4. Repeat steps 2 and 3 as needed for additional ports..
Note: the "Listen" line goes in the main body of the config file, not in any container-style directives.. There should already be some commented Listen lines in the file, so I just added one below those..
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by zorn:
<strong>Ok. So I have the apple hand me down ver. of Apache running with lots of goodies I added or enabled (PHP, MySQL. Perl, CGI, etc.)
Right now I put all the files for my copy of ASD in /Library/WebServer/Documents/ and it works well. However I have two other sites I'm working on (my personal one and a client)
What I am hoping to do is create
/Library/WebServer/mikezornek/
/Library/WebServer/drexel/
and create two new sites in apache, give them different ports (so i can call 127.0.0.1:1212 and get mikezornek and another port to get to drexel
One of the main reasons I want to do this is I really enjoy using absolute paths like /style.css in html and php.</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">