Hallo zusammen,
ich versuche meine eigene Webseite zu Bauen und momentan möchte ich sie auf meinem RasPi hosten und betreiben bis sie fertig ist.
Ich betreibe einen apache 2.4 mit php und mysql.
ich habe folgende Anleitungen befolgt, jedoch komme ich nicht ans Ziel: Virtualhost, SSL / https
nun sehen meine Dateien so aus:
/etc/apache2/sites-available/000-default.conf
Code:
<VirtualHost *:443>
ServerName www.mydomain.dyndns.xx
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/mydomain.dyndns.xx/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/ca.crt
SSLCertificateKeyFile /etc/apache2/ssl/ca.key
ErrorLog ${APACHE_LOG_DIR}/www.virtualhost1.com_error.log
CustomLog ${APACHE_LOG_DIR}/www.virtualhost1.com_access.log combined
</VirtualHost>
/etc/apache2/apache.conf
Code:
<Directory /var/www/html/mydomain.dyndns.xx>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
/etx/host
Code:
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 raspberrypi
192.168.x.x www.mydomain.dyndns.xx
wenn ich jetzt meine URL aufrufe http://mydomain.dyndns.ch dann sehe ich den "Index of /". Beim klicken auf diese Index.php, komme ich auf meine Seite jedoch über http und meine URS sieht dann so aus: http://mydomain.dyndns.ch/mydomain.dyndns.ch
über https funktioniert gar nichts. da erhalte ich diese Fehlermeldung auf dem Browser: ERR_CONNECTION_REFUSED
habt Ihr eine Ahnung was ich da falsch mache?
habe genau das auch bei Stackoverflow plaziert.
Vielen Dank für die Hilfe und beste Grüsse
Fraxor