【发布时间】:2017-08-01 19:49:44
【问题描述】:
我的站点目录中有下一个文件夹和文件:
|-css/
|-js/
|-fonts/
|-index.php
我看到我的 index.php 没有样式
nginx 配置文件:
server {
listen 80;
root /usr/share/nginx/html;
index index.php index.html index.htm;
server_name xx.xx.xxx.xxx;
location / {
try_files $uri /index.php$is_args$args;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass phpfpm:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
我需要如何在 nginx 中编写我的静态位置?
【问题讨论】:
-
你将不得不更好地澄清你的问题。