[thelist] .htaccess Help: Password protection

Gina Anderson gina at sitediva.com
Wed Jun 28 13:43:30 CDT 2006


Hi Eduardo :)

> Oh, sorry, I forgot to mention. You must put that in your httpd.conf
> file, replacing /var/www/htdocs/teste with the directory path of the
> files you want to protect.
> Is this a Linux or a Windows server?

It is a linux server.

> That is needed only if you get an error when trying to access the URL
> without the filename http://www.yourdomain.com/ , not
> http://www.yourdomain.com/login.html (this should be okay).

The "login.html" comes up as the default page without error when I type in
http://www.domain.com, so I'm good to go and don't need to mess with the
above, right?

> That's ok, I need to keep up my english anyway :P

LOL!!! Well, glad I could benefit *you* in some way ;) However, my first
language is English and I don't think I'm great at it, lol. I think
"Hillbilly English" is my first language. ;)

Thanks so much for all your help, you have no idea how big a lifesaver you
are! This was really important and I couldn't have accomplished it without
you. *giving gold star to Eduardo*

Gina

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org]On Behalf Of Eduardo Kienetz
Sent: Tuesday, June 27, 2006 9:06 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] .htaccess Help: Password protection


On 6/27/06, Gina Anderson wrote:
> Hi Eduardo :)
>
> Thank you so much for helping. It's working for me now, and yes your
example
> helped me get it together for my use. The only thing that makes it go
wrong
> is the following:
>
> >  And remember you must allow override to the DirectoryIndex (by adding
> >  the following 'Indexes' to the Directory directive):
> >  <Directory "/var/www/htdocs/teste">
> >       AllowOverride AuthConfig Indexes
> >  </Directory>
> I got a 500 error when I added this. I changed the server path to, I
think,
> the correct one. The path to the Directory Index "login.html" is
> "/home/user/public_html" and that's what I replaced yours with.
>
> I don't know very much about the .htaccess document, enough to be
dangerous
> and get myself into trouble. I may have a syntax problem with this as
well,
> for me, this is like trying to write HTML when you don't know it. Am I
just
> supposed to put that anywhere in the document, or does it have to be
merged
> with the "DirectoryIndex login.html" somehow?

Oh, sorry, I forgot to mention. You must put that in your httpd.conf
file, replacing /var/www/htdocs/teste with the directory path of the
files you want to protect.
Is this a Linux or a Windows server?

That is needed only if you get an error when trying to access the URL
without the filename http://www.yourdomain.com/ , not
http://www.yourdomain.com/login.html (this should be okay).

> I'm sorry I'm an Apache Dummy :( lol I'd buy you a stiff drink if I could.
> You might need it after talking to me all day. ;)
>
> Gina

That's ok, I need to keep up my english anyway :P
And... sorry for the repost on thelist... I keep forgeting to use
"Reply to all". Just re-sent it to thelist for the record. You might
answer to thelist or directly to me as you wish now.

--
Eduardo  Bacchi Kienetz
LPI Certified - Level 2
http://www.noticiaslinux.com.br/eduardo/
--

* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !






More information about the thelist mailing list