Article:
  Apache Web-Serving with Mac OS X: Part 2
Subject:   missing lines in httpd.conf
Date:   2002-01-28 13:56:18
From:   gvanmete
I do not have these lines in my hpptd.conf:


<Directory "/Library/WebServer/Documents">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>


where should I add them?


in addition, I was trying to install perl_mod as per the technotes at http://developer.apple.com/internet/macosx/perl.html and it instructs one to add these lines after installing mod_perl (using CPAN):


<Files *.pl>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options ExecCGI
</Files>


<Location /perl-status>
SetHandler perl-script
PerlHandler Apache::Status
order deny,allow
deny from all
allow from mydomain.com
</Location>


do these lines need to fall within a specific section of httpd.conf?

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Morbus Iff photo missing lines in httpd.conf
    2002-01-28 18:08:57  Morbus Iff | O'Reilly Author [View]

    You should have a line that says <Directory /Library/WebServer/ (etc)/> SOMEWHERE in your httpd.conf - it doesn't have to be exactly the same. The instructions assume you're using the Apple supplied Apache, so if you're using one built from Fink or so forth, the specifics may be a bit different.

    If you can't find anything similar, do a search for "Directory" and tell me all the instances that you find.

    As for your mod_perl questions, no, they don't really need to be placed anywhere specific, but make sure they're outside any other containers (ie,. you wouldn't want to place them in a <Directory> container).