How to Password Protect Apache with Basic Authentication

preview_player
Показать описание
Learn how to password protect your Apache website or a folder with basic HTTP authentication. This method does not require htaccess.

Check out my vlog channel @TonyFlorida

#apache #basicauth
Рекомендации по теме
Комментарии
Автор

I remember doing this back in '03 on my first home-based Apache install. Fond memories indeed!

brymstoner
Автор

Thank you for that clear information, Tony. It worked for me first time and then I managed to extend it to nginx to password protect my Jitsi server (with a little help from your blog). I am very grateful to you :-)

fotografm
Автор

thank you, I was struggling for hours trying to get it, I had my own config file for that site and according to sites enabled it was indeed the one active but for some reason i couldn't get it to work, simply following your example I copy and pasted my directory into the default config and it worked right away, strange but it working ty

camy_dev
Автор

You are an awesome teach. Thank you sir.

SuperMBARutgers
Автор

Thanks you Bro. You've saved me today

maliklafia
Автор

Hello guyss...
Have a nice day 😎
So, I need help about this .,
I have a question .,
I've tried this method to protect the folder and it's good, but after entering the password the first time and when the page is reloaded it won't ask for the password again (most likely the password is stored in the browser cache).
what I want to know is how do I make it so that when the page is reloaded or when I open a new tab with the same URL (more than 1 tab) a popup will still appear, enter username & password ???

chandratirta
Автор

will it work if i remove admin and keep /var/www/html/ to block the main page ?

darphaprothon
Автор

thank you Tony. how can i call solr (with basic authentication) from application.?

fouadchaar
Автор

How to do the same thing with docker without using Nginx?

rootuserjarvis
Автор

what if using centos? where is the configuration? do you have the tutorial?

DanangSuprastiya
Автор

Good video, you could have mentioned .htaccess folder password protection, too, for people who are not comfortable editing the host file, or have a control panel that doesn't support basic auth out of the box..

laci
Автор

Hey tony,
How you creat this awesome web page ? Please make a vedio on it 😃.

Satyakibat
Автор

How is the your var/www/html file structured though? I did this with a basic index.html file just saying "This is a test page". I would like to have a sign in prior to users hitting that page, but everytime I try, it doesn't ask for what I am doing wrong.

coreysmith
Автор

It didn't work. Nothing changed regarding accessing the directory. I did restart apache2.
Perhaps there's something wrong with Apache Server.

longrolstral
Автор

Since Openlitespeed and Apache are quite similar, do you think this would work on Openlitespeed as well.

dev_manish
Автор

How safe is this from brute force attacks?

llamingo
Автор

Hi, is it possible to redirect someone who failed authentification ro an other page ?

valou
Автор

Great video...KUdos
i got a .db file in some directory
how can i display the contents on apache site

johnstonestuart
Автор

Nice video, is it possible to make a web server on Ubuntu, any helps if I want to do for myself one

UniverseGames