Advertisement
Guest User

chunk-nginx.conf

a guest
Sep 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.48 KB | None | 0 0
  1. server{
  2.         location / {
  3.             root /data/www/;
  4.         }
  5.         location /images/ {
  6.            root /data;
  7.         }
  8.     }
  9.     server{
  10.         listen 8080;
  11.         location / {
  12.             root /data/www2/;
  13.             default_type text/html;
  14.             content_by_lua 'ngx.say("<p>hello, world</p>")';
  15.         }
  16.     }
  17. #Erros
  18. #nginx: [emerg] unknown directive "content_by_lua" in /etc/nginx/nginx.conf:50
  19. #nginx: configuration file /etc/nginx/nginx.conf test failed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement