On 7/30/06, David Blomstrom <david_blomstrom@xxxxxxxxx> wrote:
I've been using Apache on a PC, but I bought my first Apple/Mac, a MacBook Pro laptop, just recently. It's pretty easy to use, but I'm still learning how its hard drive and files are organized, etc.
Hi David, good to see you switched ;-)
Anyway, I have some basic questions about using Apache on a Mac. 1) I think I followed the tutorial at http://httpd.apache.org/docs/2.0/vhosts/examples.html in creating virtual hosts. Do I set them up just the same on a Mac?
Are you using the bundled installation of 1.3? In any case, vhost configuration is the same across platforms.
2) I followed standard practice in putting my websites inside a folder named "sites" and putting that folder on the C drive on my PC... c:sites Where do most people with virtual hosts put their websites on a Mac? I was planning on putting them in a folder named "sites" in the folder "documents."
I tend to use /Library/WebServer/Sites (doesn't exist by default) when using the bundled 1.3 version. However, as 1.3 is old news, I generally build my own version in ~/Services. Use whatever feels most comfortable.
3) When I transfer my websites to my Mac, will the .htaccess files and mod-rewrite statements continue to work properly, or am I in for some surprises? (I haven't been able to transfer them yet due to some technical problems.)
You will likely run in to problems using rewrite rules in a .htaccess file if you put your sites in /Users/you/Sites. This is due to mod_rewrite being unable to determine the base uri for sites served via mod_userdir. You can mitigate this with RewriteBase /~your_username, but to be honest using rewrites in .htaccess is evil anyway. There's a page of distro specific layout details here, http://trac.eta-beta-pi.net/wiki/HowTo/Distros-default-layout -- noodl --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx