i think , think ,so i try archlinux's nginx .
the following /etc/nginx/nginx.conf goes well.
------------------------------
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name a.mydns.jp;
root /srv/http;
index index.html index.htm;
}
server {
listen 80;
server_name s.sun.ddns.vc;
root /srv/http/Fam/;
index index.html index.htm;
auth_basic "Restricted"; #For Basic
Auth
auth_basic_user_file /etc/nginx/.htpasswd; #For Basic
Auth
}
}
in archlinux
2>&1 nginx -V | tr -- - '\n' | grep _module is next
(see
http://serverfault.com/questions/223509/how-can-i-see-which-flags-nginx-was-compiled-with
)
--------------------
imap_ssl_module
http_dav_module
http_gunzip_module
http_gzip_static_module
http_realip_module
http_spdy_module
http_ssl_module
http_stub_status_module
http_addition_module
http_degradation_module
http_flv_module
http_mp4_module
http_secure_link_module
http_sub_module
but in openbsd , there are much less modules by security first policy .
so basic auth except ssl is ineffective in openbsd , so i think .
-----
tuyosi