Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Nginx cant find my site

Started by Muut Archive 10 years ago · 6 replies · 540 views
10 years ago

Hi there,
I got a problem with my grav site:
For some reason nginx can't find my grav project and always returns a #404
Here's a screenshot: http://img.ourl.ca/nginx.png
I'm using multilanguage and it redirects from /grav-admin/ to /grav-admin/en/ but there it just returns 404.
Directly navigating to /grav-admin/admin results in the same error.
This is the debug log: http://pastebin.com/4QVisQRK I think it's caused at line 435. To me it looks like it tries to access /grav-admin/de/ as if it was a folder, resulting in an error... But I dont know how to fix it.
Here's my nginx.conf: http://pastebin.com/vSM5jFBU
Can anyone help me please?
Thank you :)

10 years ago

How have you configured Nginx for Grav? There is a sample webserver-configs/nginx.conf in the package. Did you use a modified version of that?

10 years ago

I put my nginx.conf in the post above... <_<
pastebin.com/vSM5jFBU

10 years ago

you know... getting an answer from ANYONE who at least read my entire post would be really cool... :P
gettting your answer as the only one within 3 days really sucks... :P

10 years ago

It's kinda hard to debug these kinda things. I've installed with Nginx many times. I always use the default nginx configuration with minimal changes for paths etc. And it just works.

The advanced configuration of Nginx is something beyond my skills to help with i'm afraid.

10 years ago

wit hthe default configuration I got "302 - permanently moved" for every file. I now switched from CentOS to Ubuntu Server and now it works. Thanks anyways. :)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1357 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2955 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago