eBot-CSGO-Web icon indicating copy to clipboard operation
eBot-CSGO-Web copied to clipboard

Can't login using nginx

Open moritzsternemann opened this issue 10 years ago • 5 comments

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;
        }
    }

moritzsternemann avatar Jun 06 '15 13:06 moritzsternemann

Same here. Any solution?

Chrzi avatar Sep 20 '15 12:09 Chrzi

https://www.nginx.com/resources/wiki/start/topics/recipes/symfony/#secure-symfony-1-4

deStrO avatar Sep 21 '15 12:09 deStrO

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; } }

ryanbentley avatar Sep 28 '15 21:09 ryanbentley

@iMoritz Did you resolve this? Can you share your config?

ryanbentley avatar Sep 28 '15 21:09 ryanbentley

This is my (working) config: http://pastebin.com/suicQNVw

Chrzi avatar Sep 29 '15 20:09 Chrzi