Nginx configuration #3050
-
I have followed the troubleshooting steps. I have YOURLS in a folder /enc, I have added a new Nginx conf file with this: location /enc { And I keep getting 404's. The database is working as I see the data there, but it won't redirect. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I found my own answer. Instead of this: location /enc { I added the folder like this: location /enc { Then did nginx -t I hope this helps someone else. |
Beta Was this translation helpful? Give feedback.
I found my own answer.
Instead of this:
location /enc {
try_files $uri $uri/ /yourls-loader.php$is_args$args;
}
I added the folder like this:
location /enc {
try_files $uri $uri/ /enc/yourls-loader.php$is_args$args;
}
Then did nginx -t
and then reloaded and it works.
I hope this helps someone else.