Hi,
I already took many hours to try to configure the setup for freshrss
in OpenBSD using its httpd
web server with a FastCGI configured to use Php fpm.
The /etc/httpd.conf
has this:
server "myserver.tld" {
listen on * port 80
location * {
block return 302 "https://$HTTP_HOST$REQUEST_URI"
}
}
server "myserver.tld" {
listen on * tls port 443
tls {
certificate "/etc/ssl/myserver.tld.crt"
key "/etc/ssl/private/myserver.tld.key"
}
location "/freshrss/*" {
root "/freshrss/p"
request strip 1
fastcgi socket "/run/php-fpm_freshrss.sock"
directory index "index.php"
pass
}
Configuration of /etc/php-fpm.d/freshrss.conf
:
[freshrss]
user = www
group = www
listen = /var/www/run/php-fpm_freshrss.sock
listen.owner = www
listen.group = www
listen.mode = 0660
pm=dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
chroot = /var/www
security.limit_extensions = .php .html
Sometimes there's error 302
, sometimes Access Denied
, sometimes Access to the script '/freshrss/p' has been denied
.
I'm really lost in this.
The location
directive in /etc/httpd.conf
maybe for /freshrss
, or for /freshrss/
, or for /freshrss/*
. Don't know how httpd
interprets that.
Other difficulty is regarding the request strip 1
. Should it be placed under the location
directive? I guess this is only for html
files or is it also for php
?
Or should a strip 1
directive should be included inside the fastcgi instructions?
How does the servers behave between having one or another?
Should .html
be included in the security.limit_extensions
parameter? I would think that httpd
alone would serve the .html
files wherever they were.
So, I would very much appreciate help on this.