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

Lua code outside conf #2

Closed
desbouis opened this issue Nov 29, 2011 · 1 comment
Closed

Lua code outside conf #2

desbouis opened this issue Nov 29, 2011 · 1 comment
Assignees

Comments

@desbouis
Copy link
Owner

Just put the lua script outside the nginx conf.

@ghost ghost assigned desbouis Feb 26, 2012
@desbouis
Copy link
Owner Author

It seems that when a "location" bloc in the nginx conf is too big, I have this error when I reload nginx :

nginx: [emerg] too long parameter, probably missing terminating "'" character in /opt/nginx/conf/sites-enabled/proxy-redis.conf:57

At the line 57, the lua code is beginning with the "content_by_lua" directive
Then, I will put the lua code in a lua file and I will call it with "content_by_lua_file" directive.

desbouis added a commit that referenced this issue Feb 26, 2012
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