Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server{
- location / {
- root /data/www/;
- }
- location /images/ {
- root /data;
- }
- }
- server{
- listen 8080;
- location / {
- root /data/www2/;
- default_type text/html;
- content_by_lua 'ngx.say("<p>hello, world</p>")';
- }
- }
- #Erros
- #nginx: [emerg] unknown directive "content_by_lua" in /etc/nginx/nginx.conf:50
- #nginx: configuration file /etc/nginx/nginx.conf test failed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement