thanks for good advise .
surely no need to compile to obtain basic auth .
my test nginx.conf is next .
cat /etc/nginx
/nginx.conf
worker_processes 1;
worker_rlimit_nofile 1024;
events {
worker_connections 800;
}
http {
include mime.types;
default_type application/octet-stream;
index index.html index.htm;
keepalive_timeout 65;
server_tokens off;
server {
listen 80;
listen [::]:80
server_name s.sun.ddns.vc;
root /var/www/htdocs;
error_page 500 502 503 504 /50x.html;
auth_basic "Restricted";
auth_basic_user_file /var/www/1/.htpasswd;
location = /50x.html {
root /var/www/htdocs;
}
}
}
when intenal server error occur .i overcom by
' chown -R www /var/www ' .
is this right ?
------
tuyosi