ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Leopard, Htaccess, VirtualHost -- Getting it all to work?

January 03, 2008 12:36pm

Subscribe [2]
  • #1 / Jan 03, 2008 12:36pm

    AlanM

    74 posts

    I enabled Leopard’s web sharing, got PHP working, installed MySQL, set up virtual hosting, but am unable to get my .htaccess files read from my virtual domains directory.

    The .htaccess file is read at localhost/192.168.1.100 or /Library/Webserver/Documents. But the .htaccess file is not read at 192.168.1.100/~alan or /User/alan/Sites. I set up my virtual domains within my Sites directory.

    Does anyone know how to get the .htaccess file read in my Sites directory. I’m at a loss at what needs to be edited in the httpd.conf file. There’s an option to enable symbolic links but I don’t think my virtual hosts are linked symbolically. Or if they can, how?

    My ultimate goal is to get everything working properly so I can use Coda with ExpressionEngine.

    Edit: The path of least resistance is to use MAMP. So I decided to give up on using Leopards built in server. Nonetheless, I’m still interested in knowing if it can be set up. But I suspect if it can, it’ll have to be done by an Apache expert. 😊

  • #2 / Mar 06, 2008 3:50am

    Chad Crowell

    242 posts

    MAMP + Headdress + Coda + EE = endless love.

  • #3 / Mar 06, 2008 12:03pm

    minimal design

    356 posts

    MAMP + Headdress + Coda + EE = endless love.

    Didn’t know Headdress. I checked it out, but it’s not really clear to me what advantages it provides compared to using just MAMP. Would you mind expanding on the subject a little? So I can go “du-uh!”...  Thanks 😉

    To answer the original question, the virtual hosts shold be at the end of your httpd.conf file, something like (I use dyndns.org…):

    <VirtualHost *:80> 
    ServerName your_site.dnsalias.net
    DocumentRoot /Users/your_account/Sites/your_site
    </VirtualHost>

    For htaccess, look for something called AllowOverride in the conf file

  • #4 / Mar 06, 2008 12:18pm

    Chad Crowell

    242 posts

    Headdress does all your virtual host setup for you.  So, once you install MAMP it creates its own httpd.conf file.  When you open headdress, you want to go find that file (by default headdress uses the default Mac file) and then just do new site, tell it where the site root is on your HD, and it will set up the hosts file and its all done, takes less than a minute to open Headdress, add a new site, close it, start MAMP, open Textmate/Coda and create a new project, and begin coding. 

    Headdress is really a config tool - you only need to open it to add or remove sites.  Otherwise just open MAMP and the sites you’ve defined in Headdress will be there waiting to be browsed.  Also, sites you define in Headdress can be located anywhere, not necessarily int he MAMP folder.  I keep them in my Sites folder in my Home directory.

    Some references:
    http://headdress.twinsparc.com/forum/comments.php?DiscussionID=18

    And this is killer- I don’t use Quicksilver but #4 on this page is a knockout blow:
    http://shauninman.com/archive/2006/12/04/mamp_headdress_and_quicksilver
    Whenever I start MAMP the default page it opens is a list of links to the sites I have defined in Headdress. (the headdressed download is at the bottom of the page, so you don’t miss it)

    Let me know if you need any more help.

  • #5 / Mar 06, 2008 12:35pm

    minimal design

    356 posts

    got it 😊

    I just realize that I use MAMP Pro and not MAMP, which does have a virtual host admin window thinggy… But the quick silver integration you’re talking about sounds pretty sweet 😉

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases