我想试用Subrion CMS,但我在实现这一功能时遇到了问题。
Apache mod需要重写吗?这需要使用Apache吗?Nginx只能用作Subrion的反向代理吗?
Debian 8-Nginx-MariaDB-PHP5-FPM-Subrion CMS
安装屏幕显示一切都很好。权限和所有权以及无问题。我认为这是一个Nginx重写问题,因为我注意到提交后url将变为"/install/install/",然而,页面保持不变,就像你要滚动到顶部一样。在此期间,我将没有CMS,所以没有紧迫的紧迫感。
如果您使用Nginx运行Subrion CMS,我将感谢您对这种情况的看法。感谢阅读。
是的,Subrion CMS可以在Nginx服务器上运行。以下是适用于nginx:的配置
server {
listen 80; # make sure there is no conflict with apache server listening on port 80
server_name subrion_domain.com; # your website domain name
root /var/www/subrion; # absolute path to your subrion core files
index index.php;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ '.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location /install/ {
rewrite ^/install/(.*)$ /install/index.php?_p=$1;
}
# deny access to apache .htaccess files
location ~ /'.ht
{
deny all;
}
location ~* '.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
}
无论如何,请注意,您可能对管理面板有问题。您需要更新admin URL,将默认的"admin"仪表板URL更改为任何值,并清除tmp/文件夹。这会很好用的。
如果你需要任何帮助,请告诉我。我很乐意帮忙。