Reputation: 3
I just installed openbsd 56 and want to configure the default Reyk Floeter's httpd server.
Here are the simple steps I followed:
And it worked well. Everything is fine, the php script is well executed and the browser displays the page successfully.
The problem is that I query 192.168.xx.xx/index.php, but if I query just the IP (192.168.xx.xx/), it won't execute the php script and propose to download it instead.
Is there any reason or solution for this ?
FYI, the php-fpm config is the default one. And the httpd config is very basic:
ext_addr="egress"
server "default" {
listen on $ext_addr port 80
location "*.php" {
fastcgi socket "/run/php-fpm.sock"
}
directory { no auto index, index "index.php" }
}
Thanks for your help !
Upvotes: 0
Views: 2070
Reputation: 11
Previously, serving a FastCGI page as the default index was unsupported. This is fixed in -current.
Upvotes: 1