Kann mir nicht vorstellen das Apache das groß verbiegt, aber im "Normalfall" sollte die Webserver Konfiguration so aussehen, das sie existente Dateien auch durchreicht.
Bei mir sieht das zB so aus:
Code Alles anzeigenmap $http_upgrade $connection_upgrade { default upgrade; '' close; } server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name syntafin.de api.syntafin.de syntafin.sexy; server_tokens off; root /home/forge/syntafin.de/public; ssl_certificate /etc/nginx/ssl/syntafin.de/1760218/server.crt; ssl_certificate_key /etc/nginx/ssl/syntafin.de/1760218/server.key; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384; ssl_prefer_server_ciphers off; ssl_dhparam /etc/nginx/dhparams.pem; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block"; add_header X-Content-Type-Options "nosniff"; index index.html index.htm index.php; charset utf-8; location /index.php { try_files /not_exists @octane; } location / { try_files $uri $uri/ @octane; } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } access_log off; error_log /var/log/nginx/syntafin.de-error.log error; error_page 404 /index.php; location @octane { set $suffix ""; if ($uri = /index.php) { set $suffix ?$query_string; } proxy_http_version 1.1; proxy_set_header Host $http_host; proxy_set_header Scheme $scheme; proxy_set_header SERVER_PORT $server_port; proxy_set_header REMOTE_ADDR $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_pass http://127.0.0.1:8181$suffix; } location ~ /\.(?!well-known).* { deny all; } }
Danke
Ich habe es jetzt so gelöst, das in der htacess alle Pfade, die in den Einstiegspunkt des MVC weitergeleitet werdne mussen einzeln aufgezählt werden. das funktioniert. Als nächstes werde ich mal eine Mini-Anwendung bauen um das auszuprobieren. Ich bin schonn jetzt erstaunt wie viel code sich dadurch sparen lässt.
Und hat jemand einen Plan, woher diese email kommt? ist das eine automatisch versendete email?
Was hat das zu bedeuten? wer sind diese typen und was wollen die von mir?