arch linux armv7 nginx http authentication

Raspberry Pi 2

arch linux armv7 nginx http authentication

Postby raid3868 » Sun Jun 07, 2015 1:05 am

Hi,

Do anyone know how to enable http authentication + nginx ?

tks
raid3868
 
Posts: 1
Joined: Sun Jun 07, 2015 1:02 am

Re: arch linux armv7 nginx http authentication

Postby haiku » Sun Jun 07, 2015 1:42 pm

Hi,

Edit /etc/nginx/nginx.conf
$this->bbcode_second_pass_code('', '
location /thepath/ {
index index.php;
auth_basic "Restricted";
auth_basic_user_file /srv/http/pathto/.htpasswd;
}
')
Then systemctl restart nginx
haiku
 
Posts: 96
Joined: Tue May 31, 2011 6:34 am


Return to Broadcom

Who is online

Users browsing this forum: No registered users and 9 guests