<div dir="ltr"><div><div>My conf file on DO contains the following <br>server {<br>server_name <a href="http://edaindia.com">edaindia.com</a> <a href="http://www.edaindia.com">www.edaindia.com</a> <a href="http://dyumnin.com">dyumnin.com</a> <a href="http://www.dyumnin.com">www.dyumnin.com</a> <a href="http://data.dyumnin.com">data.dyumnin.com</a> <a href="http://www.data.dyumnin.com">www.data.dyumnin.com</a>;<br>  location / {<br>      proxy_set_header Host $http_host;<br>      proxy_set_header X-Forwarded-Host $http_host;<br>      proxy_set_header X-Real-IP $remote_addr;<br>      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>      proxy_pass <a href="http://localhost:5000">http://localhost:5000</a>;<br>    }<br><br>    listen 80; # managed by Certbot<br><br>    listen 443 ssl; # managed by Certbot<br></div><Snipped SSL Stuff><br><br><br></div>Hope it helps.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 22, 2018 at 8:22 AM, Richard Reina <span dir="ltr"><<a href="mailto:gatorreina@gmail.com" target="_blank">gatorreina@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Followed Gabor's tutorial <a href="https://perlmaven.com/getting-started-with-perl-dancer-on-digital-ocean" target="_blank">https://perlmaven.com/getting-<wbr>started-with-perl-dancer-on-<wbr>digital-ocean</a><br><br></div>and got my app running on my digitalocean droplet. However, am only able to view it with <a href="http://my.ip.ad.ress:5000" target="_blank">http://my.ip.ad.ress:5000</a> and not if I leave off the :5000<br><br>cat /home/starman/nginx-demo.conf<br>server {<br>  location / {<br>          proxy_set_header Host $http_host;<br>        proxy_set_header X-Forwarded-Host $http_host;<br>      proxy_set_header X-Real-IP $remote_addr;<br>      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>      proxy_pass <a href="http://localhost:5000" target="_blank">http://localhost:5000</a>;<br>   }<br> <br><br>cat /home/starman/<a href="http://starman.pl" target="_blank">starman.pl</a><br><br>#!/usr/bin/perl<br><br>use warnings;<br>use strict;<br>use Daemon::Control;<br><br>use Cwd qw(abs_path);<br><br>Daemon::Control->new(<br>    {<br>    name      => "Starman",<br>    lsb_start => '$syslog $remote_fs',<br>    lsb_stop  => '$syslog',<br>    lsb_sdesc => 'Starman Short',<br>    lsb_desc  => 'Starman controls the web sites.',<br>    path      => abs_path($0),<br><br>    #program      => 'plackup -E deployment -s Starman',<br>    program      => '/home/starman/perl5/bin/<wbr>starman',<br>    program_args => [ '--workers', '3', '/home/starman/rushlogistics/<wbr>bin/app.psgi' ],<br><br>    #plackup -E deployment -s Starman --workers=10 -p 5001 -a bin/app.psgipl<br>    user  => 'starman',<br>    group => 'starman',<br><br>    pid_file    => '/tmp/starman.pid',<br>    stderr_file => '/tmp/starman.err',<br>    stdout_file => '/tmp/starman.out',<br><br>    fork => 2,<br><br>    }<br>    )->run;<br><br></div>tail /tmp/starman.err<br>2018/02/22-02:08:12 Server closing!<br>2018/02/22-02:08:12 Starman::Server (type Net::Server::PreFork) starting! pid(13960)<br>Resolved [*]:5000 to [0.0.0.0]:5000, IPv4<br>Binding to TCP port 5000 on host 0.0.0.0 with IPv4<br>Setting gid to "1002 1002 0"<br></div><br><br>Any idea what I might have missed?<br><br></div>Thanks<br><div><div><div> <br><br><br></div></div></div></div>
<br>______________________________<wbr>_________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" rel="noreferrer" target="_blank">http://lists.preshweb.co.uk/<wbr>mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><a href="https://www.facebook.com/vijayvithal.jahagirdar" target="_blank">https://www.facebook.com/vijayvithal.jahagirdar</a><br><a href="https://twitter.com/jahagirdar_vs" target="_blank">https://twitter.com/jahagirdar_vs</a><br><a href="http://democracies-janitor.blogspot.in/" target="_blank">http://democracies-janitor.blogspot.in/</a><br></div>
</div>