Hallo zusammen,
prima!
Alles hat genau so funktioniert.
Dank eurer Hilfe habe ich nun für die nächsten Monate (Jahre?) ausgesorgt.
Vielen Dank
Thomas
PS: allen noch ein gesundes Neues Jahr
Hallo zusammen,
prima!
Alles hat genau so funktioniert.
Dank eurer Hilfe habe ich nun für die nächsten Monate (Jahre?) ausgesorgt.
Vielen Dank
Thomas
PS: allen noch ein gesundes Neues Jahr
Hallo framp,
vielen Dank.
Hier die vollständige Ausgabe:
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
/dev/sda
└─/dev/sda1 ntfs Elements 8C4EC71A4EC6FC48 262,9G 72% /home/pi/Daten
/dev/mmcblk0
├─/dev/mmcblk0p1 vfat FAT32 boot 17B6-FC00 202,5M 20% /boot
└─/dev/mmcblk0p2 ext4 1.0 rootfs b101bb80-3338-4b94-a775-b3844f8f2aa8 19,5G 28% /
Und hier der Inhalt der /etc/fstab
proc /proc proc defaults 0 0
PARTUUID=0cc3c3de-01 /boot vfat defaults,flush 0 2
PARTUUID=0cc3c3de-02 / ext4 defaults,noatime 0 1
UUID=8C4EC71A4EC6FC48 /home/pi/Daten ntfs uid=pi,gid=pi,nofail 0 0
Ich werde den Raspi jetzt runterfahren, alte Platte ab, am WIN PC kopieren und dann sehen wir weiter.
Bis dahin ändert sich ja erst mal gar nix.
Danke und bis später.
Thomas
Hallo zusammen,
vielen Dank für die Hilfestellung.
@Klein-Dev: eingebunden ist sie als
hat nur eine Partition, also nix besonderes.
framp: hier die Ausgabe:
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
/dev/sda
└─/dev/sda1 ntfs Elements 8C4EC71A4EC6FC48 262,9G 72% /home/pi/Daten
Nach meiner Lesart eurer Antworten, dürfte das einfache Kopieren der Daten Alt--> Neu kein Problem sein.
Danke
Thomas
Hallo zusammen,
an meinem Raspi habe ich eine USB-Festplatte angeschlossen.
Nun wird der verfügbare Speicherplatz immer weniger
Eine neu USB-Platte mit mehr Speicherplatz ist vorhanden.
Da der Raspi auch als Media-Server läuft und ich seinerzeit große Probleme hatte, den einzurichten,
tue ich mich jetzt ein bisschen schwer.
Die Daten der "alten" Platte sollen vollständig auf die neue Platte übertragen werden.
Die neue Platte muss dann dem Media-Server wieder zur Verfügung stehen.
Theoretisch könnte ich, da Samba läuft, auf dem WIN-PC alle Dateien von der alten auf die neue kopieren.
Anschließend tausche ich beiden beiden Platten am Raspi aus.
Geht das wirklich so einfach?
Vielen Dank
Thomas
Hallo zusammen,
vielen Dank für die Information von Gnom.
Also ist es für Otto-Normalverbraucher nicht nachvollziehbar, woher die Berechnungen kommen.
Aber das ist es ja in den meisten Fällen nicht. Sicher auch nicht gewollt.
Und vielen Dank auch für die kurze Exkursion in die Einheitenlehre.
Schönes WE noch
Thomas
PS: Taubensaft und Wein sind definitiv nicht vergleichbar
Hallo zusammen,
ich hoffe, ich sprenge den Rahmen nicht zu sehr.
Mir fehlt das Verständnis für die unterschiedlichen "Energiepreisdeckel" für Gas bzw. Strom.
(mir geht es nicht um das Thema "Energiepreisdeckel" an sich!)
Nach meinem Verständnis, wurde der Deckel bei Gas auf 12ct je kw/h festlegt.
Bei Strom auf 40ct je kw/h.
Die Leistung kw/h ist doch aber bei beiden gleich. Eine kw/h ist doch gleich einer kw/h.
Das wäre doch so, als wenn ich fragen würde, was ist schwerer: ein Kilogramm Blei oder ein Kilogramm Daunenfedern?
Wenn ich davon ausgehe, dass die Regierung nicht nur aus "Mathematikverweigerern" besteht, habe sicher ICH einen Denkfehler bei diesem Vergleich.
Vielleicht kann mir bitte jemand auf die Sprünge helfen.
Vielen Dank
Thomas
Hallo Ilutz,
nach meiner Lesart auf https://wiki.ubuntuusers.de/Apache/Virtual_Hosts/ habe ich grundsätzlich alles richtig gemacht.
Die Fehler lagen, meines Erachtens nach, außerhalb dieser Konfiguration.
Vielen Dank. Jede neue Information ist eine Quelle neuen Wissens.
Thomas
Hallo hyle,
das wars. Also als letzte Lösung.
Weiß nun nicht mehr genau, was alles falsch war (Leerzeichen zu viel, falscher Platz für Datei ...)
Nun funktioniert es einwandfrei.
Diese Zeile in der /etc/apache2/apache2.conf AccessFileName .htaccess also OHNE Pfadangabe war die entscheidende Aktion.
Vielen Dank an Alle, die sich die Zeit für mein Problem nahmen.
Schönen Sonntag noch
Thomas
Hallo Ilutz,
vielen Dank für die umfangreiche Information.
Leider verstehe ich Dich nicht so richtig.
MUSS ich die Datei 000-default.conf, die es bei mir im Verzeichnis /etc/apache2/sites-anabled gar nicht gibt (pi@blau31:/etc/apache2/sites-enabled $ ls -l
insgesamt 0
lrwxrwxrwx 1 root root 35 26. Dez 2021 000-default.conf -> ../sites-available/000-default.conf
, so wie Du sie geschrieben hast anlegen, damit es funktioniert?
Bei mir ist die 000-default.conf direkt im Verzeichnis /etc/apache2/sites-avalaible.
Dort ist sie meinen Gegebenheiten angepasst.
Der Webserver funktioniert ja ansonsten einwandfrei. Nur der Zugriffsschutz geht nicht. Bin ich wirklich dabei an diese strengen Restriktionen gebunden (DocumentRoot /var/www/html)?
Danke Thomas
Guten Morgen zusammen.
Gestern Abend war es mir zu spät und auch das Gehirn hing schon aus dem Kopf
hyle:
Also aufgesetzt wurde das System mit diesem Abbild 2021-10-30-raspios-bullseye-armhf.img
Das Verzeichnis .../h6 habe ich angelegt. Dort befinden sich die Seiten/Dateien, die ich schützen will. Doch selbst wenn ich alles schützen will, also von /var/www/ abwärts, geht es nicht.
@llutz :
Habe die Zeilen in ein Shellscript kopiert. Das Ergebnis ist das hier:
pi@blau31:/home/scripts $ sudo ./apache_auslesen.sh
Enabling module info.
To activate the new configuration, you need to run:
systemctl restart apache2
AH00558: apache2: Could not reliably determine the server's fully qualified doma in name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress th is message
# In file: /etc/apache2/apache2.conf
PidFile /var/run/apache2/apache2.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
User www-data
Group www-data
HostnameLookups Off
ErrorLog /var/log/apache2/error.log
LogLevel warn
# In file: /etc/apache2/mods-enabled/alias.conf
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options FollowSymlinks
AllowOverride None
Require all granted
</Directory>
# In file: /etc/apache2/mods-enabled/autoindex.conf
IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=* DescriptionWidth=* Charset=UTF-8
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip x-bzip2
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif /core
AddIcon (SND,/icons/sound2.gif) .ogg
AddIcon (VID,/icons/movie.gif) .ogm
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
AddIcon /icons/odf6odt-20x22.png .odt
AddIcon /icons/odf6ods-20x22.png .ods
AddIcon /icons/odf6odp-20x22.png .odp
AddIcon /icons/odf6odg-20x22.png .odg
AddIcon /icons/odf6odc-20x22.png .odc
AddIcon /icons/odf6odf-20x22.png .odf
AddIcon /icons/odf6odb-20x22.png .odb
AddIcon /icons/odf6odi-20x22.png .odi
AddIcon /icons/odf6odm-20x22.png .odm
AddIcon /icons/odf6ott-20x22.png .ott
AddIcon /icons/odf6ots-20x22.png .ots
AddIcon /icons/odf6otp-20x22.png .otp
AddIcon /icons/odf6otg-20x22.png .otg
AddIcon /icons/odf6otc-20x22.png .otc
AddIcon /icons/odf6otf-20x22.png .otf
AddIcon /icons/odf6oti-20x22.png .oti
AddIcon /icons/odf6oth-20x22.png .oth
DefaultIcon /icons/unknown.gif
ReadmeName README.html
HeaderName HEADER.html
IndexIgnore .??* *~ *# RCS CVS *,v *,t
# In file: /etc/apache2/mods-enabled/deflate.conf
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javasc ript
AddOutputFilterByType DEFLATE application/x-javascript application/javascript ap plication/ecmascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/wasm
AddOutputFilterByType DEFLATE application/xml
# In file: /etc/apache2/mods-enabled/dir.conf
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
# In file: /etc/apache2/mods-enabled/info.conf
<Location /server-info>
SetHandler server-info
Require local
</Location>
# In file: /etc/apache2/mods-enabled/mime.conf
TypesConfig /etc/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-bzip2 .bz2
AddLanguage am .amh
AddLanguage ar .ara
AddLanguage be .be
AddLanguage bg .bg
AddLanguage bn .bn
AddLanguage br .br
AddLanguage bs .bs
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage cy .cy
AddLanguage da .da
AddLanguage da .dk
AddLanguage de .de
AddLanguage dz .dz
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
RemoveType es
AddLanguage es .es
AddLanguage et .et
AddLanguage eu .eu
AddLanguage fa .fa
AddLanguage fi .fi
AddLanguage fr .fr
AddLanguage ga .ga
AddLanguage gl .glg
AddLanguage gu .gu
AddLanguage he .he
AddLanguage hi .hi
AddLanguage hr .hr
AddLanguage hu .hu
AddLanguage hy .hy
AddLanguage id .id
AddLanguage is .is
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ka .ka
AddLanguage kk .kk
AddLanguage km .km
AddLanguage kn .kn
AddLanguage ko .ko
AddLanguage ku .ku
AddLanguage lo .lo
AddLanguage lt .lt
AddLanguage ltz .ltz
AddLanguage lv .lv
AddLanguage mg .mg
AddLanguage mk .mk
AddLanguage ml .ml
AddLanguage mr .mr
AddLanguage ms .msa
AddLanguage nb .nob
AddLanguage ne .ne
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pa .pa
AddLanguage pl .po
AddLanguage pt-BR .pt-br
AddLanguage pt .pt
AddLanguage ro .ro
AddLanguage ru .ru
AddLanguage sa .sa
AddLanguage se .se
AddLanguage si .si
AddLanguage sk .sk
AddLanguage sl .sl
AddLanguage sq .sq
AddLanguage sr .sr
AddLanguage sv .sv
AddLanguage ta .ta
AddLanguage te .te
AddLanguage th .th
AddLanguage tl .tl
RemoveType tr
AddLanguage tr .tr
AddLanguage uk .uk
AddLanguage ur .ur
AddLanguage vi .vi
AddLanguage wo .wo
AddLanguage xh .xh
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw
AddCharset us-ascii .ascii .us-ascii
AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .arb .arabic
AddCharset ISO-8859-7 .iso8859-7 .grk .greek
AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew
AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk
AddCharset ISO-8859-10 .iso8859-10 .latin6
AddCharset ISO-8859-13 .iso8859-13
AddCharset ISO-8859-14 .iso8859-14 .latin8
AddCharset ISO-8859-15 .iso8859-15 .latin9
AddCharset ISO-8859-16 .iso8859-16 .latin10
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5 .b5
AddCharset cn-Big5 .cn-big5
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8 .koi8
AddCharset KOI8-E .koi8-e
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-U .koi8-u
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-7 .utf7
AddCharset UTF-8 .utf8
AddCharset UTF-16 .utf16
AddCharset UTF-16BE .utf16be
AddCharset UTF-16LE .utf16le
AddCharset UTF-32 .utf32
AddCharset UTF-32BE .utf32be
AddCharset UTF-32LE .utf32le
AddCharset euc-cn .euc-cn
AddCharset euc-gb .euc-gb
AddCharset euc-jp .euc-jp
AddCharset euc-kr .euc-kr
AddCharset EUC-TW .euc-tw
AddCharset gb2312 .gb2312 .gb
AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
AddCharset shift_jis .shift_jis .sjis
AddCharset BRF .brf
AddHandler type-map var
AddType text/html .shtml
# In file: /etc/apache2/mods-enabled/mpm_event.conf
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers 150
MaxConnectionsPerChild 0
# In file: /etc/apache2/mods-enabled/negotiation.conf
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv tr zh-CN zh-TW
ForceLanguagePriority Prefer Fallback
# In file: /etc/apache2/mods-enabled/reqtimeout.conf
RequestReadTimeout header=20-40,minrate=500
RequestReadTimeout body=10,minrate=500
# In file: /etc/apache2/mods-enabled/setenvif.conf
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-caref ully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^gvfs/1" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
BrowserMatch " Konqueror/4" redirect-carefully
# In file: /etc/apache2/mods-enabled/status.conf
<Location /server-status>
SetHandler server-status
Require local
</Location>
ExtendedStatus On
# In file: /etc/apache2/ports.conf
Listen 80
# In file: /etc/apache2/apache2.conf
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<Directory /var/www/html/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<Directory />
Options FollowSymLinks
AllowOverride All
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/html/h6/>
AllowOverride All
Require all granted
</Directory>
AccessFileName /var/www/html/h6/.htaccess
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" v host_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combine d
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# In file: /etc/apache2/conf-enabled/other-vhosts-access-log.conf
CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined
# In file: /etc/apache2/conf-enabled/security.conf
ServerTokens OS
ServerSignature On
TraceEnable Off
# In file: /etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/h6
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
httpd (pid 366) already running
Module info disabled.
To activate the new configuration, you need to run:
systemctl restart apache2
AH00558: apache2: Could not reliably determine the server's fully qualified doma in name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress th is message
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
pi@blau31:/home/scripts $
Display More
Weiß damit leider nicht so viel anzufangen.
Wenn ich die /var/log/apache2/access.log auslese, habe ich diese beiden Einträge von Heute:
192.168.10.117 - - [06/Nov/2022:10:58:04 +0100] "GET / HTTP/1.1" 200 11138 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHT>
192.168.10.117 - - [06/Nov/2022:10:58:04 +0100] "GET /favicon.ico/favicon-32x32.png HTTP/1.1" 200 3474 "http://192.168.10.31/" "Mozilla/5.0 (Wind>
Und in der /var/log/apache2/error.log diese beiden Zeilen:
[Sun Nov 06 00:00:06.804070 2022] [mpm_event:notice] [pid 366:tid 3070037568] AH00489: Apache/2.4.54 (Raspbian) configured -- resuming normal ope>
[Sun Nov 06 00:00:06.804387 2022] [core:notice] [pid 366:tid 3070037568] AH00094: Command line: '/usr/sbin/apache2'
Ich kann nichts erkennen, was auf einen Missstand hindeutet. Aber vielleicht sehe ich auch nicht richtig.
Danke Thomas
Hallo hyle,
der Pfad /var/www/html/ war in der apache2.conf nicht vorhanden.
Habe ihn ergänzt:
<Directory /var/www/html/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
- keine Änderung.
Das Kommando cat /etc/os-release ergibt dieses Ergebnis:
pi@blau31:/var/www/html/h6 $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Display More
Danke Thomas
Hallo zusammen,
noch was zum Überlegen:
In der apache2.conf steht dieser Eintrag:
<Directory />
Options FollowSymLinks
#AllowOverride None
AllowOverride All
Require all denied
</Directory>
Wenn ich den, wie geschehen, von
AllowOverride None auf AllowOverride All ändere, passiert gar nichts.
Kommentiere ich diese Sektion aber ganz aus (# vor jede Zeile), dann erhalte ich beim Aufruf der Seite eine Fehlermeldung:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.54 (Raspbian) Server at 192.168.10.31 Port 80
???
Habe das jetzt wieder geändert, so dass zumindest die Seite wieder angezeigt wird.
Dann habe ich die .htpasswd in /etc/apache2/ geändert in htpasswd.
In der .htaccess habe ich das auch angepasst
AuthUserFile /etc/apache2/htpasswd
Es funktioniert nicht. Die Seite wird ohne Rückfrage angezeigt. Habe das auch mit einem anderen Browser getestet. Auch mit Seite neu Laden, Cache löschen, Browserdaten löschen etc.
Danke Thomas
Hallo hyle,
in #14 steht diese Zeile:
<Directory /var/www/>
Ich habe die Einträge um
<Directory /var/www/html/>
ergänzt.
Keine Änderung
Danke Thomas
Update: war in #13!
Hallo hyle,
hier die Ausgaben der beiden Kommandos:
pi@blau31:/var/www/html/h6 $ cat /var/www/html/h6/.htaccess
AuthType Basic
AuthName "Erst anmelden!"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
pi@blau31:/var/www/html/h6 $ ls -l /var/www/html/h6/.htaccess
-rw-r--r-- 1 pi pi 96 5. Nov 21:45 /var/www/html/h6/.htaccess
pi@blau31:/var/www/html/h6 $
Danke Thomas
Hallo hyle,
ich vergaß:
Es geht noch nicht
Hallo hyle,
vielen Dank für die Hilfe und die Geduld.
Hier das Ergebnis:
apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2022-11-05 21:45:42 CET; 16min ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 30888 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 30892 (apache2)
Tasks: 55 (limit: 415)
CPU: 717ms
CGroup: /system.slice/apache2.service
├─30892 /usr/sbin/apache2 -k start
├─30893 /usr/sbin/apache2 -k start
└─30895 /usr/sbin/apache2 -k start
Nov 05 21:45:42 blau31 systemd[1]: Starting The Apache HTTP Server...
Nov 05 21:45:42 blau31 apachectl[30891]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1>
Nov 05 21:45:42 blau31 systemd[1]: Started The Apache HTTP Server.
Display More
Sieht soweit alles OK aus, bis auf:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1.
Set the 'ServerName' directive globally to suppress this message
Weiß aber nicht, was das bedeutet, die deutsche Übersetzung bringt auch keine Klarheit:
apache2: Der vollqualifizierte Domänenname des Servers konnte mit 127.0.1.1 nicht zuverlässig ermittelt werden. Setzen Sie die Direktive 'ServerName' global, um diese Meldung zu unterdrücken
???
Danke Thomas
Hallo hyle,
auch hier vielen Dank.
In der apache2.conf steht kein Eintrag nach dem Muster. Verzeichnisse sind diese:
# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/html/h6/>
#Options Indexes FollowSymLinks
#AllowOverride None
AllowOverride All
Require all granted
</Directory>
Display More
Beim Eintrag <Directory /var/www/html/h6/> habe ich die Rauten vor die beiden Zeilen gesetzt, um zu wissen, wie der Ursprungswert war
Soll ich den Eintrag <Directory /var/www/> noch einfügen?
Danke Thomas
Hallo Ilutz,
vielen Dank auch hier für die Hinweise.
Im Verzeichnis /etc/apache2/sites-available $ stehen 2 Dateien:
-rw-r--r-- 1 root root 1335 26. Dez 2021 000-default.conf
-rw-r--r-- 1 root root 6338 8. Aug 2020 default-ssl.conf
Also weder eine default.conf noch eine vhost.conf.
Auf dem Link https://httpd.apache.org/docs/2.4/howto/auth.html ist leider alles in Englisch.
Leider reichen meine Kenntnisse dafür nicht aus.
Danke Thomas
Hallo fred0815,
vielen Dank für die Hinweise.
Die beiden Anführungszeichen ("..") haben nichts gebracht
Da bei Dir nano ... stand, habe ich den Nutzer von .htaccess auf pi:pi geändert.
Keine Änderung.
Die Ausgabe von apt show libapache2-mod-webauth brachte dieses Ergebnis:
Package: libapache2-mod-webauth
Version: 4.7.0-8
Priority: optional
Section: httpd
Source: webauth
Maintainer: Debian QA Group <packages@qa.debian.org>
Installed-Size: 547 kB
Depends: apache2 (>= 2.4.4), apache2-api-20120211, apache2-bin (>= 2.4.16), libc 6 (>= 2.4), libcurl4 (>= 7.16.2), libwebauth12 (>= 4.7.0)
Suggests: libapache2-mod-webauthldap
Breaks: libapache2-webauth (<< 4.2.0)
Replaces: libapache2-webauth (<< 4.2.0)
Homepage: https://webauth.stanford.edu/
Download-Size: 239 kB
APT-Sources: http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packag es
Description: Apache module for WebAuth authentication
WebAuth is a cookie-based web authentication system built on top of
Kerberos. It relies on a central authentication server that handles all
user authentication for a domain and creates user authentication
credentials for any web server that needs strong authentication.
.
This package contains the Apache module to do user authentication for
individual web servers. This module does not do authorization; for an
approach to LDAP-based authorization that works well with WebAuth, see
libapache2-mod-webauthldap.
Display More
Weiß allerdings nicht, was das bedeutet.
Danke Thomas