Hallo Leute,
Ich habe über uWSGI mit dem embedded PHP Modul contao laufen.
Soweit so gut, die installation ging einwandfrei und dass aus dem FF auf Backend komme ich auch. Ging wie am Schnürchen.

Ich habe uWSGI gewählt, weil es offiziellen support von uWSGI gibt, und ich auch meine Python Applikationen laufen habe.
I.d.R laufen alle PHP Applikationen stabil nur mit den rewrite regeln muss ich anknüpfen.

Jetzt kommt mein eigentliches Problem. Frontend und Preview funktionieren nicht.

Meine Konfig:

Code:
server {
  listen xxx.xxx.xxx.xxx:80;
  server_name xxx.xxx.info;
  include /etc/nginx/bots.d/ddos.conf; 
  include /etc/nginx/bots.d/blockbots.conf;
  return 301 https://xxx.xxx.info$request_uri;
}

server {
    listen xxx.xxx.xxx.xxx:443 ssl http2;
    server_name xxx.xxx.info;
    include /etc/nginx/bots.d/ddos.conf; 
    include /etc/nginx/bots.d/blockbots.conf;

    root /var/www/fitnessSite/web;
    ssl_protocols TLSv1.2;
    ssl_dhparam /etc/ssl/dh2048_param.pem;

    ssl_certificate /etc/ssl/private/xxx.crt;
    ssl_certificate_key /etc/ssl/private/xxx.key;

    rewrite ^/app\.php/?(.*)$ /$1 permanent;

    location / {
      index app.php;
      try_files $uri @rewriteapp;
   }

   location @rewriteapp {
     rewrite ^(.*)$ /app.php/$1 last;
   }
   location ~ [^/]\.php(/|$) {
   #location ~ ^/(app|app_dev|preview|config|install)\.php(/|$) {
     include uwsgi_params;
     uwsgi_modifier1 14;
     uwsgi_pass unix:/var/run/cuwsgi/fitnessSite.socket;
  }
}
Die contao.conf mit dem uwsgi started:

Code:
[uwsgi]
plugins-dir = /usr/local/uwsgi
processes = 4
uid = www-data
gid = www-data
socket = /var/run/cuwsgi/fitnessSite.socket
master = true
buffer-size=32768
chdir = /var/www/fitnessSite
plugins = http,php73
php-docroot = /var/www/fitnessSite/web
php-index = index.php

php-allowed-ext = .php
php-allowed-ext = .inc
php-index = index.php
php-index = index.inc
php-set = date.timezone=Europe/Berlin
vacuum = true

check-static = /var/www/fitnessSite
static-skip-ext = .php
static-skip-ext = .inc
static-index = index.html
safe-pidfile = /var/run/cuwsgi/fitnessSite.pid

processes = 17
cheaper = 2
gestartet wird uwsgi mit:
sudo ./uwsgi --ini /var/www//cuwsgi/fitnessSite.conf

Ich habe das Gefühl dass das Routing für uWSGI nicht in nginx passiert, wie mit dem Befehl fastcgi_split_path sondern in uWSGI selbst.
Wenn jemand mit regex fit ist, und das ganze versteh bin ich für jede hilfe Dankbar.
https://uwsgi-docs.readthedocs.io/en...ri-and-friends

weitere infos:
zu uwsgi und php: https://uwsgi-docs.readthedocs.io/en/latest/PHP.html
uwsgi zu nginx support: https://uwsgi-docs.readthedocs.io/en/latest/Nginx.html
nginx zum thema uwsgi: http://nginx.org/en/docs/http/ngx_ht...gi_module.html


Gruss, Tamer