Re: .htaccess php configuration
| From: | The Doctor What | Date: | Tue, 27 Jun 2000 17:16:03 +0000 |
| Subject: | Re: .htaccess php configuration | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3372@lists.php.net to get a copy of this message | ||
* Kevin DeCapite (kevin@creationsite.com) [000627 12:12]:
> Hi all...
>
> i know this is a bit off-topic, but maybe someone can help... i've
> already posted this to an apache newsgroup, but haven't heard anything
> back yet
>
> here goes...
>
> i am trying to setup some directives in a .htaccess file so i can
> configure php for my needs
> my isp tells me to do this, except when i try it, i receive an
> internal server error
>
> my error.log file gives messages like:
>
> <Directory not allowed here
> <DirectoryMatch not allowed here
> <Location not allowed here
>
> ... etc. ...
>
>
> here's my .htaccess file:
>
>
> ------------------------------
>
>
> <Directory /home/cust1/usr1004/html/AdminTools>
> php3_upload_tmp_dir /tmp
> </Directory>
>
> AuthName "Sheep In A Heep Knit Shoppe, Inc."
> AuthType Basic
> AuthUserFile /home/cust1/usr1004/html/AdminTools/.htpasswd
>
> <Limit GET POST>
> Require valid-user
> </Limit>
>
>
> ------------------------------
Try:
-------------------------------
<IfModule mod_php3.c>
php3_upload_tmp_dir /tmp
</IfModule>
<IfModule mod_php4.c>
php3_upload_tmp_dir /tmp
</IfModule>
AuthName "Sheep In A Heep Knit Shoppe, Inc."
AuthType Basic
AuthUserFile /home/cust1/usr1004/htpasswd
Require valid-user
-------------------------------
Uhhh...that's Really bad to have the AuthUserFile within your
web-space. Move it out of there.
Ciao!
--
When the going gets weird, the weird turn pro...
-- Hunter S. Thompson
The Doctor What: <fill in the blank> http://docwhat.gerf.org/
docwhat@gerf.org KF6VNC