hallo zusammen,
ich hab ein kleines Problem bei dem ich nicht weiterkomme.
Nach dem ich meinen RPI-zero mit letsencrypt und einer echten Domain (vom offenen internet aus erreichbar) ausgestattet habe, werden keine PHP-scripte ausgeführt - stattdessen werden die zum download angeboten/ausgeworfen.
Ich finde unter google das gleiche problem nur unter apache2.
hier meine https config[code=php]# HTTPS server
#
server {
listen 443;
server_name localhost;
#
root /var/www;
index index.html index.htm;
#
ssl on;
ssl_certificate /etc/letsencrypt/live/http://meinewebseite.de/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/http://meinewebseite.de/privkey.pem;
##
ssl_session_timeout 5m;
#
ssl_protocols SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
ssl_prefer_server_ciphers on;
#
location / {
try_files $uri $uri/ =404;
}
# location ~ \.php$ {
#try_files $uri =404;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
#fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
#include /etc/nginx/fastcgi_params;
}
}
[/php]
Sowie meine http config
[code=php]server {
root /var/www/meinewebseite.de;
index index.html index.htm index.php;
return 301 https://%24server_name%24request_uri;
server_name http://www.meinewebseite.de;
location / {
try_files $uri $uri/ /index.html;
}
location /doc/ {
alias /usr/share/doc/;
autoindex on;
allow 127.0.0.1;
allow ::1;
deny all;
}
error_page 404 /src/404.html;
error_page 500 502 503 504 /src/500.html;
location = /src/500.html {
root /var/www/src;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_in+dex index.php;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
include fastcgi_params;
}
}
[/php]
Jemand ne Idee wie ich das lösen könnte ?
danke im voraus