How to Password Protect Apache with Basic Authentication

  Рет қаралды 25,441

Tony Teaches Tech

Tony Teaches Tech

Күн бұрын

Пікірлер: 51
@brymstoner
@brymstoner 3 жыл бұрын
I remember doing this back in '03 on my first home-based Apache install. Fond memories indeed!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Throwback :)
@SuperMBARutgers2013
@SuperMBARutgers2013 Жыл бұрын
You are an awesome teach. Thank you sir.
@fotografm
@fotografm 3 жыл бұрын
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 :-)
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Nice work! Happy to help Simon
@camy_dev
@camy_dev Жыл бұрын
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
@chandratirta8240
@chandratirta8240 Жыл бұрын
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 ???
@fouadchaar4021
@fouadchaar4021 2 жыл бұрын
thank you Tony. how can i call solr (with basic authentication) from application.?
@DanangSuprastiya
@DanangSuprastiya Жыл бұрын
what if using centos? where is the configuration? do you have the tutorial?
@majidderkaoui
@majidderkaoui 3 жыл бұрын
Thank you Mr.Tony
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome!
@benfau9992
@benfau9992 Жыл бұрын
Thank you for your tutorial
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
You're welcome 😊
@subhamthemusicalguy8851
@subhamthemusicalguy8851 3 жыл бұрын
Thank you so much, You saved my day.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome!
@coreycodez
@coreycodez 2 жыл бұрын
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 anything.....idk what I am doing wrong.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
If you have /var/www/html/index.html and follow the instructions in this video, you should be prompted for credentials before a user is able to access the page
@longrolstral
@longrolstral 2 жыл бұрын
Did you figure it out? I have the same problem: no authentication at all.
@maliklafia4077
@maliklafia4077 3 жыл бұрын
Thanks you Bro. You've saved me today
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You’re welcome!
@rootuserjarvis
@rootuserjarvis 2 жыл бұрын
How to do the same thing with docker without using Nginx?
@llamingo
@llamingo 8 ай бұрын
How safe is this from brute force attacks?
@darphaprothon20
@darphaprothon20 2 жыл бұрын
will it work if i remove admin and keep /var/www/html/ to block the main page ?
@longrolstral
@longrolstral 2 жыл бұрын
It didn't work. Nothing changed regarding accessing the directory. I did restart apache2. Perhaps there's something wrong with Apache Server.
@johnstonestuart4332
@johnstonestuart4332 3 жыл бұрын
Great video...KUdos i got a .db file in some directory how can i display the contents on apache site
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Is it a MySQL database export file? You'll need to spin up a MySQL server and retrieve the data from there
@dev_manish
@dev_manish 4 жыл бұрын
Since Openlitespeed and Apache are quite similar, do you think this would work on Openlitespeed as well.
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
That's a good question. I plan to test this out soon
@dev_manish
@dev_manish 4 жыл бұрын
@@TonyTeachesTech As always, I'll be waiting ✌🏼
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
@@LyleSpringer Perhaps this one? openlitespeed.org/kb/user-authentication-through-realms/
@Satyakibat3694
@Satyakibat3694 2 жыл бұрын
Hey tony, How you creat this awesome web page ? Please make a vedio on it 😃.
@laci272
@laci272 4 жыл бұрын
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..
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
Thanks, good suggestion
@laci272
@laci272 4 жыл бұрын
@@TonyTeachesTech you have really good videos, I'm commenting to make the algorithm recommend your channel, only good intentions here
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
@@laci272 thank you so much!!!
@rajeshmoravaneni1360
@rajeshmoravaneni1360 3 жыл бұрын
Thank You
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome Rajesh
@rajeshmoravaneni1360
@rajeshmoravaneni1360 3 жыл бұрын
@@TonyTeachesTech Hello brother I have one request. would you make a video onc omplete details how .htaccess file can be useful to protect website like(Indexing disabled and specific file access denied ) Please make
@valou9820
@valou9820 2 жыл бұрын
Hi, is it possible to redirect someone who failed authentification ro an other page ?
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Probably but off the top of my head I don't know a solution
@whazitcrease4455
@whazitcrease4455 3 жыл бұрын
Thanks
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome
@1UniverseGames
@1UniverseGames 3 жыл бұрын
Nice video, is it possible to make a web server on Ubuntu, any helps if I want to do for myself one
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Yes of course kzbin.info/www/bejne/aHm8k2yQmsyBqck
@miak911
@miak911 3 жыл бұрын
Thank You
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome
@HoumanAlmassi
@HoumanAlmassi Жыл бұрын
Thanks
@kamalchan9756
@kamalchan9756 3 жыл бұрын
Thank you
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome
How to Password Protect OpenLiteSpeed with Basic Auth and Realms
5:26
Tony Teaches Tech
Рет қаралды 5 М.
Apache Virtual Hosts
40:20
Nerd on the Street
Рет қаралды 106 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
"Basic Authentication" in Five Minutes
5:07
OktaDev
Рет қаралды 183 М.
How to Password Protect Nginx with Basic Authentication
6:16
Tony Teaches Tech
Рет қаралды 23 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 359 М.
[Password] Password Protection using htaccess
14:34
Realmac Software
Рет қаралды 1,9 М.
Hackers Bypass Google Two-Factor Authentication (2FA) SMS
12:47
John Hammond
Рет қаралды 1,1 МЛН
HTTP 1 Vs HTTP 2 Vs HTTP 3!
7:37
ByteByteGo
Рет қаралды 361 М.
10 Basic Ways to Secure Ubuntu from Hackers
7:34
Tony Teaches Tech
Рет қаралды 50 М.
Password Protect Folders in Seconds With .htaccess
10:29
Tuts+ Code
Рет қаралды 39 М.
Linux Security - Securing Apache2
23:43
HackerSploit
Рет қаралды 61 М.
Build Node.js User Authentication - Password Login
13:31
Web Dev Simplified
Рет қаралды 534 М.