Welcome! Log In Create A New Profile

Advanced

Nginx index.php/signin => 404

Posted by lasame 
Nginx index.php/signin => 404
December 11, 2018 02:54PM
Guten Abend zusammen,

da ich nun bereits einige Versuche gestartet habe, dieses Problem selbstständig zu lösen, stoße ich nun an den Punkt, an dem ich nicht mehr weiterkomme. Folgendes Problem:

Ich nutze ein CRM-PHP-Script, welches über die Subdomain http://crm.domain.de aufrufbar ist. Soweit kein Problem.

Jedoch werde ich vom CRM dann auf http://crm.domain.de/index.php/signin weitergeleitet wodurch es zum Error 404 kommt.

Mein ServerBlock sieht aus wie folgt:

server {
listen 80;
listen [::]:80;

server_name crm.domain.de;
root /var/www/hi-crm;
index index.php index.html index.htm;

add_header Strict-Transport-Security "max-age=31536000; includeSubdomains" always;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";

location / {
try_files $uri $uri/ /index.php?/$request_uri;
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains" always;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";

location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
}

location ~ [^/]\.php(/|$) {
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains" always;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_read_timeout 300;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
# modify this path if OS flavor different than Ubuntu/Debian
}

# Optional, disallow access to this directories and folders
location ~* "/\.(htaccess|htpasswd|git|svn)$" {
deny all;
return 404;
}
}
}

Ich würde mich sehr freuen, wenn mir jemand helfen könnte.
Vielen Dank schon einmal im Voraus!

Freundliche Grüße

LaSame
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 309
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready