На os 5.2.2 был такой и вполне справлялся с поставленной задачей:
# ----------------------------
# Default host config
# ----------------------------
server {
listen %ip%:%httpport%;
listen %ip%:%httpsport% ssl;
ssl_certificate '%sprogdir%/userdata/config/cert_files/server.crt';
ssl_certificate_key '%sprogdir%/userdata/config/cert_files/server.key';
#ssl_trusted_certificate '';
location ~ /\. {deny all;}
location / {
root "%hostdir%/httpdocs";
index index.php index.html index.htm;
try_files $uri /index.php?url=$request_uri&$args;
}
location ~ \.php$ {
root "%hostdir%/httpdocs";
try_files $uri =404;
}
# Service configuration (do not edit!)
...
на os 5.4.0 переименовал его в Nginx_1.21.vhost.conf - но index кидает на %sprogdir%/modules/system/html/default/index.html , а внутренние страницы 404управление доменами: Ручное + Автопоиск
nginx 1.21 без apache



