Правило Nginx для Zend Framework

Теперь я развертываю приложение, написанное Zend Framework 3 с Nginx.

В отличие от существующих проблем, веб-website развертывается во вложенной папке.

Предположим, что корневой directory/usr/local/nginx/html/example.com , а directory приложения – /usr/local/nginx/html/example.com/projects/ZendApp .

Соответствующая configuration Nginx приведена ниже:

 server { listen 80; listen 443 ssl http2; root /usr/local/nginx/html/example.com; index index.html index.htm index.php; location \.(php|phtml)?$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location /projects { deny all; # It seems not working for preventing accessing `projects/ZendApp/public` } location /ZendApp { # Mapping `/ZendApp` to `projects/ZendApp/public` # But I don't know what to do } } root /usr/local/nginx/html/example.com; server { listen 80; listen 443 ssl http2; root /usr/local/nginx/html/example.com; index index.html index.htm index.php; location \.(php|phtml)?$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location /projects { deny all; # It seems not working for preventing accessing `projects/ZendApp/public` } location /ZendApp { # Mapping `/ZendApp` to `projects/ZendApp/public` # But I don't know what to do } } location \. (php | phtml)? $ { server { listen 80; listen 443 ssl http2; root /usr/local/nginx/html/example.com; index index.html index.htm index.php; location \.(php|phtml)?$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location /projects { deny all; # It seems not working for preventing accessing `projects/ZendApp/public` } location /ZendApp { # Mapping `/ZendApp` to `projects/ZendApp/public` # But I don't know what to do } } location / проекты { server { listen 80; listen 443 ssl http2; root /usr/local/nginx/html/example.com; index index.html index.htm index.php; location \.(php|phtml)?$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location /projects { deny all; # It seems not working for preventing accessing `projects/ZendApp/public` } location /ZendApp { # Mapping `/ZendApp` to `projects/ZendApp/public` # But I don't know what to do } } # Кажется, что он не работает для предотвращения доступа к проектам / ZendApp / public` server { listen 80; listen 443 ssl http2; root /usr/local/nginx/html/example.com; index index.html index.htm index.php; location \.(php|phtml)?$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location /projects { deny all; # It seems not working for preventing accessing `projects/ZendApp/public` } location /ZendApp { # Mapping `/ZendApp` to `projects/ZendApp/public` # But I don't know what to do } } location / ZendApp { server { listen 80; listen 443 ssl http2; root /usr/local/nginx/html/example.com; index index.html index.htm index.php; location \.(php|phtml)?$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location /projects { deny all; # It seems not working for preventing accessing `projects/ZendApp/public` } location /ZendApp { # Mapping `/ZendApp` to `projects/ZendApp/public` # But I don't know what to do } } # Отображение `/ ZendApp` для` проектов / ZendApp / public` server { listen 80; listen 443 ssl http2; root /usr/local/nginx/html/example.com; index index.html index.htm index.php; location \.(php|phtml)?$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location /projects { deny all; # It seems not working for preventing accessing `projects/ZendApp/public` } location /ZendApp { # Mapping `/ZendApp` to `projects/ZendApp/public` # But I don't know what to do } } # Но я не знаю, что делать server { listen 80; listen 443 ssl http2; root /usr/local/nginx/html/example.com; index index.html index.htm index.php; location \.(php|phtml)?$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location /projects { deny all; # It seems not working for preventing accessing `projects/ZendApp/public` } location /ZendApp { # Mapping `/ZendApp` to `projects/ZendApp/public` # But I don't know what to do } } 

Можете ли вы помочь мне завершить настройку выше?

Спасибо огромное!

Давайте будем гением компьютера.