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

"301 Permanently Moved" on nginx?

Started by Muut Archive 10 years ago · 3 replies · 561 views
10 years ago

I'm trying to setup a grav website on a server (CentOS7, PHP7.0.11) using nginx.
I hat a site setup in XAMPP locally and everything worked fine.
But when I uploaded it to the server, I always got errors like "301 - PERMANENTLY MOVED" from nginx.
So I instead downloaded a new admin-plugin version and put it on the server without changing anythin.
This way I wanted to find out if it was my procect that was messed up or what else it might be.
The new site seems to work at least a little bit as it automatically redirects me to www.domain.com/admin/ but there I get another "301 - PERMANENTLY MOVED" error.
No entries in error log or grav log.
only nginx' access log tells me I tryed it acess www.domain.com/admin/ and got a 301... (not helpfull)
Can anyone help me? I'm running out of ideas here :(

10 years ago

*it's nginx/1.10.1 in case that's important :)

10 years ago

Did you use the sample configuration: webserver-configs/nginx.conf in the Grav download package?

10 years ago

I am now using this configuration for both [GRAV/webserver-configs/nginx.conf] and [/etc/nginx/nginx.conf]:
http://pastebin.com/qhFe8Yzd
Still I'm getting "file not found" an "moved permanently" errors everywhere... :(

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1336 9 years ago
Archive · by Muut Archive, 9 years ago
2 926 9 years ago
Archive · by Muut Archive, 9 years ago
2 4056 9 years ago
Archive · by Muut Archive, 9 years ago
1 2941 9 years ago
Archive · by Muut Archive, 9 years ago
3 1112 9 years ago