Hi Michael, On Tue, 16 Jan 2024 12:04:02 +0100 Michael Hekeler <[email protected]> wrote:
> > I'd like to setup Freshrss to work under httpd and FastCGI. > > Freshrss uses Php. > ^^^ > You need to deploy that script with php-fpm NOT via slowcgi(8) > See the file php-XX in /usr/local/share/doc/pkg-readmes/ for doing this > (where XX is your installed version). Yes, I know and have already configured php-fpm for that. I used slowcgi in order to debug the connection. At least, I read from someone on the web doing that. Is slowcgi really to avoid or is it useful for debugging? > > > As per the documentation, only the freshrss/p directory should be > > exposed. > > https://github.com/FreshRSS/FreshRSS#installation > > > > I'd like Freshrss to be access like: > > http://myserver.tld/freshrss > > > > Then you need something like: .. > > server "myserver.tld" { > > listen on * port 80 > > listen on * tls port 443 > > tls { > > certificate "/etc/ssl/myserver.tld.crt" > > key "/etc/ssl/private/myserver.tld.key" > > } > > root "/htdocs" > > location "/freshrss/*" { root "/freshrss/p" } That's what is configured. server "myserver.tld" { listen on * port 80 listen on * tls port 443 tls { certificate "/etc/ssl/myserver.tld.crt" key "/etc/ssl/private/myserver.tld.key" } root "/htdocs" directory {index "index.php" index "index.html"} location "/freshrss/*" { root "/freshrss/p" fastcgi { socket "/run/php-fpm_freshrss.sock" } } } But still get 'Not found' </head> <body> <h1>404 Not Found</h1> <hr> <address>OpenBSD httpd</address> </body> </html> At htdocs, the httpd server should serve static pages. Php files are only under /freshrss. So, should I place this? directory {index "index.php" index "index.html"} It would make more sense to have a 'directory' per location, not per server, unless I haven't understood this correctly. I've read the man page several times, but I'd also need some examples that are hard to find. In another server (FreeBSD) there was a similar setup running with Lighttpd. But, it's been very difficult to set this up with OpenBSD's httpd. Thank you, Luis > > > But at http://myserver.tld/freshrss/p/i/ it shows a 403 Forbidden > > status. > > Because there is no index.html in /freshrss/p/i/ > > Please read manpages httpd.conf(5) for setting directory index other > than index.html. > > Test your setup with something like curl(1) or nc(1) not in a browser > like chrome or firefox so that you can see the response clearly and no > cache comes in the way. > > And only open your install to the internet when all is set up well. > Also test if access to configfiles is denied. >

