ตามนี้เลย
#vi /etc/nginx/conf.d/domain.ext.conf
server {
location / {
root /full_path/domain.ext;
index index.php index.html;
}
location ~ \.php$ {
root /full_path/domain.ext;
fastcgi_pass 127.0.0.1:9000;
fastcgi_read_timeout 600;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /full_path/domain.ext$fastcgi_script_name;
include fastcgi_params;
}
}
#service nginx reload
#vi /etc/nginx/conf.d/domain.ext.conf
server {
location / {
root /full_path/domain.ext;
index index.php index.html;
}
location ~ \.php$ {
root /full_path/domain.ext;
fastcgi_pass 127.0.0.1:9000;
fastcgi_read_timeout 600;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /full_path/domain.ext$fastcgi_script_name;
include fastcgi_params;
}
}
#service nginx reload



