Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Errors #163

Open
ad1k4h opened this issue Sep 13, 2022 · 3 comments
Open

404 Errors #163

ad1k4h opened this issue Sep 13, 2022 · 3 comments

Comments

@ad1k4h
Copy link

ad1k4h commented Sep 13, 2022

Hello, i installed your Project, and having issues with it.

2022/09/13 18:14:27 [error] 12000#12000: *18 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined variable: res in /var/www/nginx/stats/app/includes/js_controller.php on line 220" while reading response header from upstream, client: 192.168.100.1, server: 192.168.100.1, request: "POST /stats//app/includes/js_controller.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "192.168.100.1", referrer: "http://192.168.100.1/stats/"

I noticing there are two backslashes at /stats**//**app.
May i ask, how can i fix this and get it work?

Nginix is well configured.

@bjarkeh14
Copy link

@ad1k4h I have the same problem, did you find a way to fix it?

@bjarkeh14
Copy link

bjarkeh14 commented Nov 23, 2022

I'm running the website on Windows.

I found the solution.
The problem is that .htaccess is not working in IIS, but you can converte it.

  1. In IIS, double-click on the URL Rewrite module
  2. In the Actions pane, click Import Rules
  3. Select the .htaccess file for the website folder, and click Apply
  4. Boom, your .htaccess rules are converted into IIS web.config

@uraganas
Copy link

merge_slashes off;
rewrite ^(.*?)//+(.*?)$ $1/$2 permanent;

at your website config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants