Настройка Codeigniter с помощью nginx для структуры hmvc

Может ли кто-нибудь сделать с Настройка Codeigniter с помощью nginx для структуры hmvc?
Пожалуйста, помогите мне в этом, я пытаюсь настроить структуру codeigniter HMVC на nginx. Но не удается много раз. Пожалуйста, предложите какой-нибудь способ настроить его.

Я использую php7.0-fpm.

Мой конфигурационный файл nginx

server {
listen 80;
root /var/www/html/salsetrack;
index index.html index.htm index.php;
server_name local.sales-track.com;

location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
#try_files $uri $uri/ =404;
index index.html index.php;
try_files $uri $uri/ @handler;
expires 30d;
}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000

location ~ \.php$ {
try_files $uri =404;
#Include Nginx’s fastcgi configuration
include /etc/nginx/fastcgi.conf;
#Look for the FastCGI Process Manager at this location
fastcgi_pass unix:/run/php/php7.0-fpm.sock;

include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

}

location @handler {
rewrite / /index.php;
}}

4

Решение

Вы можете сослаться https://www.nginx.com/resources/wiki/start/topics/recipes/codeigniter/ для конфигурации nginx для codeigniter.

0

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector