Welcome! Log In Create A New Profile

Advanced

Re: NGINX only for forwarding to LAN

December 12, 2019 11:02AM
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@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
Subject Author Posted

NGINX only for forwarding to LAN

pixel24 December 11, 2019 07:42AM

Re: NGINX only for forwarding to LAN

Francis Daly December 11, 2019 03:22PM

Re: NGINX only for forwarding to LAN

pixel24 December 12, 2019 11:02AM

Re: NGINX only for forwarding to LAN

pixel24 December 12, 2019 11:22AM

Re: NGINX only for forwarding to LAN

Francis Daly December 12, 2019 11:38AM

Re: NGINX only for forwarding to LAN

pixel24 December 12, 2019 01:12PM

Re: NGINX only for forwarding to LAN

pixel24 December 13, 2019 02:39AM

Re: NGINX only for forwarding to LAN

Francis Daly December 13, 2019 08:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 92
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready