4、X3 网络相册 nginx配置(本段可忽略): Nginx does NOT support .htaccess. Therefore, you need to configure X3 rewrite rules in your Nginx server config. I am not sure what rules you have there now, but I created an official X3 Nginx config example in the link below.
vi /usr/local/nginx/conf/nginx.conf
点击(此处)折叠或打开
location / {
root html;
# index index.html index.htm;
index index.php index.html index.htm;
# X3 rewrite rules
if (!-e $request_filename){
# Rewrite any calls to html|json|xml|atom|rss if a folder matching * exists
rewrite (.+)\.(html|json|xml|atom|rss)$ $1/ last;
# Rewrite any calls to /render to the X3 image resizer
rewrite ^/render/. /app/parsers/slir/ last;
# Rewrite routes to X3 application index.php if they are non-existent files/dirs