I am trying to host erlang Yaws web server on my Raspberry Pi. I am using no-ip as dynamic DNS. My router is Thomson ST780. On the router I have made port forwarding from port 50001 to port 8081 on my Raspberry Pi. My server is accessible from within the local network only and shows index.yaws as expected. However, I want it to be accessible from the internet. I believe the problem lies in Yaws config, because I have disabled firewall on my router, and also firewall is disabled on Pi.
The Yaws config part that I believe is wrongly configured looks like this:
<server my_application_name.no-ip.org>
port = 8081
listen = 0.0.0.0
docroot = /home/pi/erl/airport
dir_listing = false
auth_log = true
statistics = true
appmode = <cgi-bin, yaws_appmod_cgi>
</server>
I have also tried adding
<auth> allow = all </auth>
and putting local IP address in listen part and it is still not working.
Can anybody see the problem with this configuration?
I am also using the same way of port forwarding on my router for SSH and SSH is accessible from the internet.
EDIT: The install that I have made is local_install, as recommended here: http://yaws.hyber.org/configuration.yaws and perhaps that might be a problem.