deStrO / eBot-CSGO-Web

The eBot CS:GO panel
http://www.esport-tools.net/ebot
95 stars 71 forks source link

Can't login using nginx #45

Closed moritzsternemann closed 1 year ago

moritzsternemann commented 9 years ago

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;
        }
    }
Chrzi commented 9 years ago

Same here. Any solution?

deStrO commented 9 years ago

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

ryanbentley commented 9 years ago

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 commented 9 years ago

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

Chrzi commented 9 years ago

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