How to enable Apache2 userdir module on Ubuntu Server

  Рет қаралды 2,117

Linux Tech School

Linux Tech School

3 жыл бұрын

How to enable userdir on Apache2 with Ubuntu Server
Hi everyone,
In this video I'll show you how to enable userdir module on Apache2 Web server. With this module you can give your system users the ability to publish their own webpages. After that, I I'llshow you how protect a folder using the .htaccess and .htpasswd authentication method.
Check my video #5 to learn how to install apache2 at:
• How to Install Apache2...
Here are the commands I've used:
a2enmod userdir
systemctl restart apache2
cd /home/rsmatias/
mkdir public_html/
chown rsmatias:rsmatias public_html/
chmod 755 public_html/
cd public_html/
nano index.html
mkdir private
chown rsmatias:rsmatias private/
chmod 755 private
nano /home/rsmatias/public_html/private/.htaccess
####Insert text configuration:####
AuthUserFile /home/rsmatias/public_html/private/.htpasswd
AuthName "Please Authenticate"
AuthType Basic
require valid-user
htpasswd -c /home/rsmatias/public_html/private/.htpasswd rsmatias
Please comment below for any questions of suggestions.
Thanks!!
Regards,
Rodrigo Matias

Пікірлер: 6
@abelorim
@abelorim Жыл бұрын
highly appreciate the content of this video. Can you do a video for User Authentication for user to enter their credentials to access internet similar userdir module.
@clevensvoneinzbern7055
@clevensvoneinzbern7055 2 жыл бұрын
why my picture can't display
@bernardoreis6268
@bernardoreis6268 3 жыл бұрын
Boa tarde. A parte de transferir um ficheiro via scp deu-me algum jeito. Até parece que este vídeo veio mesmo ao encontro do que eu precisava neste momento.
@linuxtechschool4841
@linuxtechschool4841 3 жыл бұрын
Olá Bernardo, Alguns vídeos que publico pode ser sequência das minhas aulas. Podendo não ter sido o caso, fico contente que tenha dado jeito. Os comandos SSH e SCP são muito versáteis e poderosos. Desde a criação de tuneis, encaminhamento de tráfego, copia de A para C, mesmo estando num ponto B (máquina diferente), tudo é possivel. Cumps., Rodrigo Matias
@alvarocamachomaldonado7507
@alvarocamachomaldonado7507 2 жыл бұрын
You sound like Cristiano Ronaldo, I know that you are Portuguese as well but u sound like him for the voice too
@linuxtechschool4841
@linuxtechschool4841 2 жыл бұрын
😆 Yes I am Portuguese!! Thanks for your comment.
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 6 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 195 МЛН
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 6 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 63 МЛН