api eirichitung = sudo nano /etc/nginx/sites-available/default dann sudo nginx -t dann sudo systemctl reload nginx server { listen 80; listen [::]:80; server_name cloudsigns.ch; # Ă„ndere dies zu deinem Domainnamen root /var/www/cloudsigns.ch; index index.php index.html index.htm; location / { try_files $uri $uri/ =404; } location /api/register-device { try_files $uri $uri/ /var/www/cloudsigns.ch/php/register_device.php; } location /device-info { try_files $uri $uri/ /var/www/cloudsigns.ch/php/geolocation.php; } location /api/update-location { try_files $uri $uri/ /var/www/cloudsigns.ch/php/geolocation.php; } # PHP-FastCGI-Einstellungen location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; # Stelle sicher, dass du die richtige Version und den Pfad anpasst fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }