Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2010-02-26 23:00:57

  pink - Użytkownik

pink
Użytkownik
Skąd: P17PY93
Zarejestrowany: 2005-09-16

apache uwierzytelnianie www

jak ustawic autentykacje uwierzytelnianie dla apacza
robie tak ale bez efektu:

Kod:

htpasswd -c /etc/apache2/htpasswd user

Kod:

<VirtualHost accounting.da.com:80>
    ServerName accounting.da.com
    
    DocumentRoot /srv/www/accounting
    ErrorLog /var/log/apache2/accounting.da.com-error.log
    CustomLog /var/log/apache2/accounting.da.com-acces_log
    combined
    UseCannonicalName On

    ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
    <Directory "/srv/www/cgi-bin">
        AllowOverride None
        Options +ExecCGI -Includes
        Order allow,deny
        Allow from all
    </Directory>

    <Directory "/srv/www/accounting/">
        AuthType Basic
    AuthName "Accounting Intranet"
    AuthUserFile /etc/apache2/htpasswd
    Require user user

    Options Indexes FollowSymLinks
        AllowOverride None
        Order deny,allow
        Allow from all
    </Directory>

</VirtualHost>

Ostatnio edytowany przez azhag (2010-02-26 23:11:57)


T430 think-box 4.9-custom x86_64 Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz GenuineIntel GNU/Linux
"Doktor plama i maharadża są pod złotym leszczem." "Człowieka od zwierzęcia odróżnia ciekawość świata. Patrze słucham i wyciągam wnioski."
https://www.behance.net/przemyslawmamon

Offline

 

#2  2010-02-26 23:53:32

  bercik - Moderator Mamut

bercik
Moderator Mamut
Skąd: Warszawa
Zarejestrowany: 2006-09-23
Serwis

Re: apache uwierzytelnianie www

moduly wlaczone do konfiguracji, serwer przeladowany, co mowia logi?

Ostatnio edytowany przez bercik (2010-02-26 23:53:53)


"Wszyscy wiedzą, że czegoś zrobić nie można. Ale przypadkowo znajduje się jakiś nieuk, który tego nie wie. I on właśnie robi odkrycie." (A.Einstein)

Offline

 

#3  2010-02-27 21:12:58

  pink - Użytkownik

pink
Użytkownik
Skąd: P17PY93
Zarejestrowany: 2005-09-16

Re: apache uwierzytelnianie www

Kod:

 cat /var/log/apache2/accounting.da.com-error.log 
[Fri Feb 26 21:39:18 2010] [error] [client 127.0.0.1] File does not exist: /srv/www/accounting/favicon.ico
[Fri Feb 26 22:04:02 2010] [error] [client 127.0.0.1] File does not exist: /srv/www/accounting/favicon.ico

Kod:

cat /var/log/apache2/accounting.da.com-acces_log 
127.0.0.1 - - [26/Feb/2010:21:25:26 +0000] "GET / HTTP/1.1" 200 120 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.18) Gecko/2010021720 Iceweasel/3.0.6 (Debian-3.0.6-3)"
127.0.0.1 - - [26/Feb/2010:21:33:17 +0000] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.18) Gecko/2010021720 Iceweasel/3.0.6 (Debian-3.0.6-3)"
127.0.0.1 - - [26/Feb/2010:21:33:19 +0000] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.18) Gecko/2010021720 Iceweasel/3.0.6 (Debian-3.0.6-3)"
127.0.0.1 - - [26/Feb/2010:21:33:19 +0000] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.18) Gecko/2010021720 Iceweasel/3.0.6 (Debian-3.0.6-3)"
127.0.0.1 - - [26/Feb/2010:21:33:20 +0000] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.18) Gecko/2010021720 Iceweasel/3.0.6 (Debian-3.0.6-3)"
127.0.0.1 - - [26/Feb/2010:21:38:35 +0000] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.18) Gecko/2010021720 Iceweasel/3.0.6 (Debian-3.0.6-3)"
127.0.0.1 - - [26/Feb/2010:21:38:38 +0000] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.18) Gecko/2010021720 Iceweasel/3.0.6 (Debian-3.0.6-3)"
127.0.0.1 - - [26/Feb/2010:21:39:18 +0000] "GET /favicon.ico HTTP/1.1" 404 268 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.18) Gecko/2010021720 Iceweasel/3.0.6 (Debian-3.0.6-3)"
127.0.0.1 - - [26/Feb/2010:21:43:44 +0000] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.18) Gecko/2010021720 Iceweasel/3.0.6 (Debian-3.0.6-3)"
127.0.0.1 - - [26/Feb/2010:21:43:45 +0000] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.18) Gecko/2010021720 Iceweasel/3.0.6 (Debian-3.0.6-3)"
127.0.0.1 - - [26/Feb/2010:22:03:58 +0000] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.18) Gecko/2010021720 Iceweasel/3.0.6 (Debian-3.0.6-3)"
127.0.0.1 - - [26/Feb/2010:22:04:02 +0000] "GET /favicon.ico HTTP/1.1" 404 268 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.18) Gecko/2010021720 Iceweasel/3.0.6 (Debian-3.0.6-3)"

Kod:

cat /var/log/apache2/error.log 
[Fri Feb 26 20:02:11 2010] [notice] Apache/2.2.9 (Debian) configured -- resuming normal operations
[Fri Feb 26 20:02:16 2010] [notice] Graceful restart requested, doing restart
[Fri Feb 26 20:02:16 2010] [notice] Apache/2.2.9 (Debian) configured -- resuming normal operations
[Fri Feb 26 20:27:29 2010] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Feb 26 20:27:32 2010] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Feb 26 21:07:21 2010] [notice] caught SIGTERM, shutting down
[Fri Feb 26 21:07:23 2010] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny4 with Suhosin-Patch configured -- resuming normal operations
[Fri Feb 26 21:11:06 2010] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Feb 26 21:11:09 2010] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Feb 26 21:19:21 2010] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Feb 26 21:21:55 2010] [notice] caught SIGTERM, shutting down
[Fri Feb 26 21:25:15 2010] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny4 with Suhosin-Patch configured -- resuming normal operations
[Fri Feb 26 21:25:55 2010] [notice] caught SIGTERM, shutting down
[Fri Feb 26 21:25:57 2010] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny4 with Suhosin-Patch configured -- resuming normal operations
[Fri Feb 26 21:33:12 2010] [notice] caught SIGTERM, shutting down
[Fri Feb 26 21:33:14 2010] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny4 with Suhosin-Patch configured -- resuming normal operations
[Fri Feb 26 21:38:29 2010] [notice] caught SIGTERM, shutting down
[Fri Feb 26 21:38:31 2010] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny4 with Suhosin-Patch configured -- resuming normal operations
[Fri Feb 26 21:43:39 2010] [notice] caught SIGTERM, shutting down
[Fri Feb 26 21:43:40 2010] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny4 with Suhosin-Patch configured -- resuming normal operations
[Fri Feb 26 22:03:37 2010] [notice] caught SIGTERM, shutting down
[Fri Feb 26 22:03:37 2010] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny4 with Suhosin-Patch configured -- resuming normal operations
[Fri Feb 26 22:07:41 2010] [notice] caught SIGTERM, shutting down
[Fri Feb 26 22:10:38 2010] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny4 with Suhosin-Patch configured -- resuming normal operations
[Sat Feb 27 19:55:46 2010] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny4 with Suhosin-Patch configured -- resuming normal operations

Kod:

cat /etc/apache2/mods-enabled/
alias.conf            authz_host.load       deflate.load          negotiation.conf      status.conf
alias.load            authz_user.load       dir.conf              negotiation.load      status.load
auth_basic.load       autoindex.conf        dir.load              php5.conf             
authn_file.load       autoindex.load        env.load              php5.load             
authz_default.load    cgi.load              mime.conf             setenvif.conf         
authz_groupfile.load  deflate.conf          mime.load             setenvif.load

Ostatnio edytowany przez pink (2010-02-27 21:19:13)


T430 think-box 4.9-custom x86_64 Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz GenuineIntel GNU/Linux
"Doktor plama i maharadża są pod złotym leszczem." "Człowieka od zwierzęcia odróżnia ciekawość świata. Patrze słucham i wyciągam wnioski."
https://www.behance.net/przemyslawmamon

Offline

 

#4  2010-02-27 22:24:01

  pink - Użytkownik

pink
Użytkownik
Skąd: P17PY93
Zarejestrowany: 2005-09-16

Re: apache uwierzytelnianie www

nie wiem co bylo nie tak ale teraz dziala


T430 think-box 4.9-custom x86_64 Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz GenuineIntel GNU/Linux
"Doktor plama i maharadża są pod złotym leszczem." "Człowieka od zwierzęcia odróżnia ciekawość świata. Patrze słucham i wyciągam wnioski."
https://www.behance.net/przemyslawmamon

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)