NGINX only for forwarding to LAN

pixel24 nginx-forum at forum.nginx.org
Thu Dec 12 16:02:26 UTC 2019


based on the default file, combined with your section, the file now looks
like this:

worker_processes  1;

events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;

    server {
        server_name gw.mydomain.com;
        location / {
                proxy_pass http://192.168.XX.5;
        }
    }

    server {
        server_name cloud.mydomain.com;
        location / {
                proxy_pass http://192.168.XX.6;
        }
    }
}


(domain name and IP changed).

However, NGINX does not start:

[root at ipfire nginx]# /etc/init.d/nginx restart
Stopping nginx Server...                                                    
                                                   [  OK  ]
Starting nginx Server...
nginx: [emerg] could not build server_names_hash, you should increase
server_names_hash_bucket_size: 32

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,286443,286454#msg-286454



More information about the nginx mailing list