Open luren5 opened 7 years ago
同问,运行安装时直接404了
我也是这个问题 安装时候The requested URL /simpleforum/install was not found on this server. 直接访问 http://192.168.56.131/simpleforum 进入首页
Hi all, Are you use the Nginx? please go ahead if you are using Nginx. Adjust your Nginx config, please refer to Nginx配置 https://simpleforum.org/t/23
程序放在网站根目录下时,配置文件如下
server {
listen 80;
server_name simpleforum.org www.simpleforum.org; #你的域名
root /path/to/simpleforum/path; #论坛程序目录
index index.php;
access_log /path/to/basic/log/access.log;
error_log /path/to/basic/log/error.log;
location / {
# Redirect everything that isn't a real file to index.php
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
try_files $uri =404;
}
location ^~ /core/ {
deny all;
}
#其他配置
}
################
程序放在网站子目录下时,在Nginx配置文件中加入以下配置
server {
`location /simpleforum/ {
try_files $uri $uri/ /simpleforum/index.php?$args;
}`
location ^~ /simpleforum/core/ { deny all; }
#其他配置
}
Or please switch to Apache, thanks.
安装的时候访问 /install.php, 跳转到 /install ,但是源码里根本没有这个目录啊?