Hello,
I have two questions I shall start with the easy one, is there a way to include a access-list from file?
For example like in nginx you can do something like "include /etc/nginx/access-lists/test.conf".
Is there a similar functionality I can use in Hiawatha?
The reason is that we maintain different access-lists currently with some contain 100 different internal ip numbers that can access different vhosts so it makes the config slightly huge with making a big list.
Second question is more a problem I am moving from nginx and previously I had this reverse proxy:
location / {
proxy_pass http://127.0.0.1:5601
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-forwarded-for $proxy_add_x_forwarded_for;
}
Now in Hiawatha my config looks as following:
VirtualHost {
Hostname = loghost.ulyaoth.net
ReverseProxy / http://127.0.0.1:5601
WebsiteRoot = /srv/hiawatha/loghost/public
AccessLogfile = /var/log/hiawatha/loghost/access.log
ErrorLogfile = /var/log/hiawatha/loghost/error.log
StartFile = index.php
ExecuteCGI = yes
RequireTLS = yes,2678400
}
But somehow it not works correctly I get to see the backend page but the page gives a error not sure if the reverse proxy is sending all info and I am not sure how to test this.
I do not stop the backend all I do is stop nginx, start hiawatha and it not loads the backend page correctly. If I stop Hiawatha and start Nginx again then it work perfectly fine.
Nothing in the error logs and if I curl it the headers look almost same:
Hiawatha: curl -i -H "Host: loghost.ulyaoth.net" https://127.0.0.1 --insecure
HTTP/1.1 200 OK
X-App-Name: kibana
Accept-Ranges: bytes
Cache-Control: public, max-age=0
Last-Modified: Mon, 06 Jul 2015 16:58:18 GMT
ETag: W/"6f9-14e644dd010"
Content-Type: text/html; charset=UTF-8
Content-Length: 1785
Vary: Accept-Encoding
Date: Mon, 17 Aug 2015 17:01:11 GMT
Nginx: curl -i -H "Host: loghost.ulyaoth.net" https://127.0.0.1 --insecure
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 17 Aug 2015 17:02:51 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 1785
Connection: keep-alive
X-App-Name: kibana
Accept-Ranges: bytes
Cache-Control: public, max-age=0
Last-Modified: Mon, 06 Jul 2015 16:58:18 GMT
ETag: W/"6f9-14e644dd010"
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000; includeSubdomains;
Do you have any idea what could be going wrong?