{"id":112,"date":"2021-11-29T17:14:45","date_gmt":"2021-11-29T23:14:45","guid":{"rendered":"https:\/\/sourceopen.com\/?p=112"},"modified":"2021-11-29T17:14:45","modified_gmt":"2021-11-29T23:14:45","slug":"howto-fix-obhttpd1234-parent-send-server-protocol-not-supported-on-freebsd","status":"publish","type":"post","link":"https:\/\/sourceopen.com\/index.php\/howto-fix-obhttpd1234-parent-send-server-protocol-not-supported-on-freebsd\/","title":{"rendered":"HOWTO Fix obhttpd[1234]: parent: send server: Protocol not supported on FreeBSD"},"content":{"rendered":"\n<p>I was putting OpenBSD Httpd (obhttpd as it is known on FreeBSD) in a jail on FreeBSD 13.0. When I fired up the webserver I got the following error in the logs:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">obhttpd[1234]: parent: send server: Protocol not supported<\/pre>\n\n\n\n<p>The error occurred because FreeBSD jails do not handle localhost 127.0.0.1 the same as a normal non-jailed host.<\/p>\n\n\n\n<p>By default the obhttpd listens on all ip addresses, including localhost.<\/p>\n\n\n\n<p>You can fix the error and get obhttpd running in a jail by adding something like this to your obhttpd.conf file (by default \/usr\/local\/etc\/obhttpd.conf ):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#specific your external ip here\next_ip=\"11.22.33.44\"\n\nchroot \"\/var\/www\"\n\nserver \"www.example.com\" {\n\n####### Note the listen on now listening only to the external ip, \n####### and not localhost\nlisten on $ext_ip port 80\n\nlocation \"\/.well-known\/acme-challenge\/*\" {\nroot \"\/acme\"\nrequest strip 2\n}\nlocation * {\nblock return 302 \"https:\/\/$HTTP_HOST$REQUEST_URI\"\n}\n}\n\n...<\/pre>\n\n\n\n<p>Basically to fix it you configure obhttpd NOT to listen on localhost. That&#8217;s it. There are plenty of other examples out on the web if you need to figure out how to make it listen to multiple ip addresses.<\/p>\n\n\n\n<p>Hopefully this got you back up and running quickly when encountering the &#8220;<strong>parent: send server: Protocol not supported <\/strong>&#8221; error with obhttpd in a FreeBSD jail.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was putting OpenBSD Httpd (obhttpd as it is known on FreeBSD) in a jail on FreeBSD 13.0. When I fired up the webserver I got the following error in the logs: obhttpd[1234]: parent: send server: Protocol not supported The &hellip; <a href=\"https:\/\/sourceopen.com\/index.php\/howto-fix-obhttpd1234-parent-send-server-protocol-not-supported-on-freebsd\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[18,79,101,7,5,89,100,2,24],"_links":{"self":[{"href":"https:\/\/sourceopen.com\/index.php\/wp-json\/wp\/v2\/posts\/112"}],"collection":[{"href":"https:\/\/sourceopen.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sourceopen.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sourceopen.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sourceopen.com\/index.php\/wp-json\/wp\/v2\/comments?post=112"}],"version-history":[{"count":1,"href":"https:\/\/sourceopen.com\/index.php\/wp-json\/wp\/v2\/posts\/112\/revisions"}],"predecessor-version":[{"id":113,"href":"https:\/\/sourceopen.com\/index.php\/wp-json\/wp\/v2\/posts\/112\/revisions\/113"}],"wp:attachment":[{"href":"https:\/\/sourceopen.com\/index.php\/wp-json\/wp\/v2\/media?parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sourceopen.com\/index.php\/wp-json\/wp\/v2\/categories?post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sourceopen.com\/index.php\/wp-json\/wp\/v2\/tags?post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}