Welcome! Log In Create A New Profile

Advanced

Nginx reverse proxy is not working with Mojolicious Hypnotoad

Posted by manashb 
Nginx reverse proxy is not working with Mojolicious Hypnotoad
December 21, 2017 05:39AM
Application is running in server. But it is not accessible from browser.


sample config file --

server {
listen 80;
listen [::]:80;
server_name ..;
access_log /var/log/..;
error_log /var/log/..;

location / {
proxy_pass http://localhost-app;
proxy_http_version 1.1;
proxy_read_timeout 150s;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-HTTPS 0;
}
}

upstream localhost-app {
server 127.0.0.1:8081;
}

-----------

nginx version: nginx/1.10.3
Ubuntu 16.04.3 LTS
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 104
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