Hallo,
ich habe mir heute meinen Server Debian 8.2 neu aufgesetzt. Nach dem Mailserver (Postfix dovecot mysql phpmyadmin verwendet)
Danach war der Apache dran.
Die alten Virtualhost-Dateien in den entsprechenden Ordner eingefügt (ich leite http gleich auf https weiter), ssl-Pfade mit dem entsprechenden aktuellen letsencrypt-Dateien versehen, mit a2ensite alle enabled.
Weiterleitung auf https funktioniert
Browser wirft nichts aus, https-Verbindung liefert kein sslZertifikat.
Alles wieder disabled, bis auf 000-default.conf geht immer noch nicht.
/var/www/* auf 777 gesetzt. besitzer von root auf www-data auf root auf www-data
Jetzt lautet die Meldung 403 Forbidden.
HTML-Statuscodes wikipedia:
Dazwischen ging es mal kurz, daraufhin habe ich die dateiberechtigungen auf die, die überall empfohlen werden geändert:403 Forbidden
Die Anfrage wurde mangels Berechtigung des Clients nicht durchgeführt, bspw. weil der authentifizierte Benutzer nicht berechtigt ist, oder eine als HTTPS konfigurierte URL nur mit HTTP aufgerufen wurde.
daraufhin ging es wieder nicht, egal ob besessen durch root oder durch www-dataThe permissions on this folder are:
and the files inside the folder are:Code: Alles auswählen
chmod 755 /var/www/
Code: Alles auswählen
chmod 644 /var/www/file
Ich setze wieder die Daten von html und der darin befindlichen index.html auf 777, liefert immer noch 403 aus.
Interessantes Detail: Das über apt-get install installierte phpmyadmin funktioniert (habe es hinter ein alias gesetzt und mit Apache Passwortschutz doppelt gesichert)
000-default.conf:
Code: Alles auswählen
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName http://www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
LogLevel debug
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Code: Alles auswählen
444.444.444.44 - - [07/Jan/2016:00:24:58 +0100] "GET /index.html HTTP/1.1" 403 515 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36"
444.444.444.44 - - [07/Jan/2016:00:25:01 +0100] "GET /index.html HTTP/1.1" 403 514 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36"