Can't login using nginx
I have installed eBot-CSGO-Web on my CentOS-7 running nginx..
Now the problem is when I try to login from /admin.php I always get Error - Page not found!
In my nginx log file I get the error:
PHP message: Empty module and/or action after parsing the URL "/admin.php/guard/login" (/)
My nginx.conf
server {
listen 80 default_server;
server_name localhost;
root /var/www/web;
index index.php;
access_log /var/log/nginx/main.access.log main;
error_log /var/log/nginx/main.error.log;
location / {
rewrite ^/$ /index.html;
rewrite ^/([^.]+)$ /$1.html;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php last;
}
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
location ~* ^.+\.(jpg|jpeg|gif|css|png|js|xml)$ {
expires 30d;
}
}
Same here. Any solution?
https://www.nginx.com/resources/wiki/start/topics/recipes/symfony/#secure-symfony-1-4
I am still receiving this error, no matter what I do.
server { listen 80; server_name ebot.domain.tld; root /home/ebot/ebot-web/web/; index index.php;
location ~ ^/(index|frontend|frontend_dev|backend|backend_dev|admin).php$ { include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass unix:/var/run/php5-fpm.sock; }
location / { index index.php; try_files $uri /index.php?$args; } }
@iMoritz Did you resolve this? Can you share your config?
This is my (working) config: http://pastebin.com/suicQNVw