Re: how to , apache's ' AuthType Basic '

2014-12-16 Thread Raf
On Mon, Dec 15, 2014 at 08:14:08PM EST, Ingo Schwarze wrote:

  OpenBSD base also contains nginx.
 
 That is no longer true, but nginx is available from ports.

From what I can tell, Martin was talking about 5.6, where 'nginx' is
still in base.

Not everyone's running -current, Ingo ;^)

Regards,

Raf



Re: how to , apache's ' AuthType Basic '

2014-12-15 Thread martin
Tuyosi Takesima nakajin.fu...@gmail.com wrote:

 hi ,all .
 
 in arch linux , apache's 'AuthType Basic' is easy .
 
 i follow
 http://www.atmarkit.co.jp/flinux/rensai/linuxtips/698apachebasic.html  as a
 whole.
 detail is a little different .  the following .
 
 # ls -l /srv/http/
 -rw-r--r-- 1 root root   28 12??? 10 12:03 index.html
 drwxr-xr-x 2 root root 4096 12??? 10 13:09 member
 
 
 # head /etc/httpd/conf/httpd.conf
 Directory /srv/http/member
 AuthType Basic
 AuthName Secret Zone
 AuthUserFile /etc/httpd/.htpasswd
 Require user secret
 /Directory
 
 
 htpasswd  -c /etc/httpd/.htpasswd secret
 
 
 but openbsd's apache is defferent .
 this method is out .
 
 there is little iformation on iternet about openbsd's 'AuthType Basic' .
 what should i do ?
 
 the newest is not best . the best is best .

You have not adequately explained your problem, but I will try to
answer.

First I will note that you want to look for material in English. I
cannot verify this first-hand, because I do not understand Japanese
writings, but I feel that there is not going to be much on OpenBSD in
Japanese. There is no official Japanese documentation. The project
originates from an English-speaking part of the world, and there is
simply not enough manpower to keep international documentation up to
date.

The best documentation is the manuals that come with the system and the
FAQ on http://www.openbsd.org/faq/. This is the only official
documentation. It is always kept up to date, unlike the tutorials you
may find elsewhere.

As for the immediate question, OpenBSD base had a fork of Apache 1.x
prior to 5.6. This was removed in 5.6 and is no longer available. In 5.6
the Apache 1.x httpd was replaced with a OpenBSD-specific httpd. OpenBSD
base also contains nginx. It is also possible to install Apache 2.x on
OpenBSD from ports.

OpenBSD httpd does not support authentication. So that will not work
for you. Your options are to learn to configure nginx or to install
Apache 2.x and configure it.

If you install Apache 2.x it will work just like any other installation
of Apache.

-- Martin



Re: how to , apache's ' AuthType Basic '

2014-12-15 Thread Tuyosi Takesima
i thank you for  very nice advise.
i will try apache-httpd-2.2.27p4.tgz.

translation  site is https://translate.google.com/ .
please input URL , then the site translate it in english .



Re: how to , apache's ' AuthType Basic '

2014-12-15 Thread Ingo Schwarze
Hi,

mar...@martinbrandenburg.com wrote on Mon, Dec 15, 2014 at 08:07:01AM +:

 As for the immediate question, OpenBSD base had a fork of Apache 1.x
 prior to 5.6. This was removed in 5.6 and is no longer available.

That is not true.  It is still available from ports:
  apache-httpd-openbsd

Unless you need specific Apache 2 features, it's still a better
choice than Apache 2 because moving it from base to ports obviously
didn't invalidate the security audits done years ago.

 OpenBSD base also contains nginx.

That is no longer true, but nginx is available from ports.

Yours,
  Ingo



Re: how to , apache's ' AuthType Basic '

2014-12-15 Thread Tuyosi Takesima
i managed to work 'Basic Auth' but there may be mistakes .
please correct them .

www root is /var/apache2/htdocs/ .


conf file is /etc/apache2/httpd2.conf .


cd /etc/apache2/
htpasswd .htpasswd  XXX
chmod 644  .htpasswd - correct ?



# head /etc/apache2/httpd2.conf
Directory /var/apache2/htdocs/YYY
AuthType Basic
AuthName Secret Zone
AuthUserFile /etc/apache2/.htpasswd
Require user XXX
/Directory

---
tuyosi



how to , apache's ' AuthType Basic '

2014-12-14 Thread Tuyosi Takesima
hi ,all .

in arch linux , apache's 'AuthType Basic' is easy .

i follow
http://www.atmarkit.co.jp/flinux/rensai/linuxtips/698apachebasic.html  as a
whole.
detail is a little different .  the following .

# ls -l /srv/http/
-rw-r--r-- 1 root root   28 12月 10 12:03 index.html
drwxr-xr-x 2 root root 4096 12月 10 13:09 member


# head /etc/httpd/conf/httpd.conf
Directory /srv/http/member
AuthType Basic
AuthName Secret Zone
AuthUserFile /etc/httpd/.htpasswd
Require user secret
/Directory


htpasswd  -c /etc/httpd/.htpasswd secret


but openbsd's apache is defferent .
this method is out .

there is little iformation on iternet about openbsd's 'AuthType Basic' .
what should i do ?

the newest is not best . the best is best .