Forum

Binding to local server

Alex
15 April 2015, 14:12
Hello,

I would like to bind an service from local server with IP 10.0.10.15 on port 8020 with my hiawatha webserver to port 8020 or subdomain

Binding {
Port = 8020
Interface = 10.0.10.15
# MaxKeepAlive = 30
# TimeForRequest = 3,20
# SSLcertFile = hiawatha.pem
}


My config show me:
Error binding 10.0.10.15:8020
/usr/local/etc/rc.d/hiawatha: WARNING: failed to start hiawatha


How to bind an service from local machine to webserver port and also subdomain?

Thanks in advance.

Hiawatha version: 9.12
Operating System: FreeBSD 10.1
Hugo Leisink
15 April 2015, 14:17
What do you mean by 'bind a service to a webserver'? What service? What is it you try to achieve?
Alex
15 April 2015, 14:25
Hiawatha is running on machine wit IP 10.0.10.17 and the Service which I would like to bind is running on another machine with IP 10.0.10.15 on port 8020
Hugo Leisink
15 April 2015, 14:26
What service and why do you want Hiawatha to bind to that service? Hiawatha won't do anything with another service, so therefor there is no option to make Hiawatha connect to it. The Binding section is to define where clients can connect to.
Alex
15 April 2015, 14:51
This is a local server with openerp-server which I think works with python werkzeug. I want access to the openerp-server only through Hiawatha!
Because of great security features of Hiawatha
Hugo Leisink
15 April 2015, 14:52
Does this openerp-server speak HTTP?
Alex
15 April 2015, 14:53
yes
Hugo Leisink
15 April 2015, 14:54
Than you should take a look at the ReverseProxy option. Use a binding where you can connect to. Create a virtual host with a ReverseProxy option to forward HTTP requests.
Alex
15 April 2015, 14:57
You can using openerp-server with an browser by typing 10.0.10.15:8020, so it is HTTP
Hugo Leisink
15 April 2015, 14:59
Binding {
Port = 80
}

VirtualHost {
Hostname = <some hostname>
...
ReverseProxy .* http://10.0.10.15:8020
}
Alex
15 April 2015, 15:00
OK, I'll check it out. Thanks Hugo for amazing quick response
Alex
15 April 2015, 18:59
It works fine with domain.tld, but how to config for the subdomain e.g. sub.domain.tld
My configuration is not working.
VirtualHost {
Hostname = sub.domain.tld
...
ReverseProxy .* http://10.0.10.15:8020
}
Hugo Leisink
15 April 2015, 19:30
That shouldn't make any difference. Does sub.domain.tld resolve to the right IP address?
Alex
15 April 2015, 20:01
No I have completely forgotten about DNS settings
This topic has been closed.