> 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).


> 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" }


> 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.

Reply via email to