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

panic: unknown directive '''' on line 32, column 2 #42

Open
AmShadows opened this issue Feb 27, 2024 · 0 comments
Open

panic: unknown directive '''' on line 32, column 2 #42

AmShadows opened this issue Feb 27, 2024 · 0 comments

Comments

@AmShadows
Copy link

https://github.com/tufanbarisyildirim/gonginx/blob/master/examples/formatting/main.go
运行报错了
panic: unknown directive '''' on line 32, column 2

类似报错的还有
案例
location /aaa/ {
limit_rate 10M;
check_status;
}
报错unknown directive 'check_status' on line 256, column 17

案例
map $http_x_forwarded_for $clientRealIp
{
"" $remote_addr;
~^(?P[0-9.]+),?.*$ $firstAddr;
}
报错unknown directive '""' on line 2047, column 5

案例upstream www.abc.com{
server 1.2.3.4:8080;
check interval=5000 rise=1 fall=2 timeout=1000;
}

报错unknown directive 'check' on line 481, column 2

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

No branches or pull requests

1 participant