Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Better, yet, if you want a local
htpasswd per virtural server, separate from the 'global'
htpasswd/group permissions...
AccessFileName
.htaccess
<Directory
"/usr/home/vsite_a/www">
Options
Indexes FollowSymLinks MultiViews
Allow
from all
AllowOverride
all
AuthUserFile
/usr/home/vsite_a/httpd/htpasswd
AuthGroupFile /usr/home/vsite_a/httpd/htgroup
</Directory>
</VirtualHost>
Of
course be SURE to use prudence, when set the permissions on this httpd
directory.
jam
----- Original Message -----
Sent: Thursday, June 20, 2002 9:48
AM
Subject: Re: [MLUG] using .htaccess with
Virtual Hosts
> Here's the relevant (I think) parts of the config
file, httpd.conf (I can
> send you the whole thing off list if you
want):
>
> #Default is set to none in the AllowOverride
Directive
> <Directory />
> Options
FollowSymLinks
> AllowOverride AuthConfig
>
</Directory>
>
> The virtual Host Config part looks like
this:
>
> <VirtualHost [ip address here]>
>
ServerAdmin EMAIL:PROTECTED>
DocumentRoot
/var/www/vhosts/site
>
AccessFileName .htaccess
>
ServerAlias www.site.com>
ServerName site.com
>
CustomLog
/var/log/httpd/site.com-access_log combined
> </VirtualHost>
>
> What other config file would be good to see? Here's the htaccess
file:
>
> AuthUserFile /var/www/vhosts/site/.htpasswd
>
AuthGroupFile /dev/null
> AuthName "My Folder"
> AuthType
Basic
>
> #require valid user
> require user
bob
>
>
> I see no errors in my error or access logs at all,
it is like it doesn't
> even recognize the .htaccess file is
there.
>
> Thanks!
>
> Bob
>
>
>
----- Original Message -----
> From: "Ross, Matt" <EMAIL:PROTECTED>
> To: <EMAIL:PROTECTED>
> Sent: Thursday, June 20, 2002 9:11 AM
> Subject: RE:
[MLUG] using .htaccess with Virtual Hosts
>
>
> > I know
you have to set up the htaccess on the virtual host as well. Could
>
> you include your config file, minus comments?
> >
> >
--
> > To unsubscribe, go to http://mlug.missouri.edu/members/edit.php> >
> > Archives are available at
http://mlug.missouri.edu/list-archives/> >
>
>
> --
> To
unsubscribe, go to http://mlug.missouri.edu/members/edit.php>
> Archives are available at http://mlug.missouri.edu/list-archives/>