jfa-go icon indicating copy to clipboard operation
jfa-go copied to clipboard

nginx config from wiki not working correctly

Open antoniozh opened this issue 3 years ago • 4 comments

Read the FAQ first!

Describe the bug

When I try to use the config in the wiki my nginx will complain about the proxy_pass statement.

To Reproduce

Use the proxy_pass statement as is

Logs

2022/05/02 15:49:13 [emerg] 45088#45088: "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_except" block in /etc/nginx/conf.d/default.conf:128

antoniozh avatar May 02 '22 13:05 antoniozh

it seems to work if you un-coment the rewrite line, comment the first proxypass, and un-comment the second, but then it throws a 404 error

MrPotatoBobx avatar Dec 28 '22 05:12 MrPotatoBobx

Hi, which config are you using? The Subdomain or Subfolder one?

hrfee avatar Dec 29 '22 17:12 hrfee

subfolder, but i recently switched to subdomain

MrPotatoBobx avatar Dec 31 '22 07:12 MrPotatoBobx

Is the subfolder config working for you? If not try disregarding the wiki and just modifying another service's nginx file to work for jfa-go.

As for the subfolder method, the config given in the wiki is invalid for nginx and i'm not sure why no one (including me) hasn't noticed. simply changing location ~ ^/accounts(.*)$ to location ^~ /accounts appears to fix it.

hrfee avatar Jan 30 '23 13:01 hrfee