管理员登录时报404

centos下放弃了。。。

改到windows下

安装后其他暂时都正常(修改头像,发帖等),但管理员登录时报404错误。

求助~~~

https://wenda.wecenter.com/uploads/question/20210819/e8fea487b54997acbc4895ad82102fdd.png

已邀请:

还是伪静态的问题,少写了几行代码


user www;
worker_processes 1;
events {
worker_connections 1024;
}


http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;

server {
listen 80;
server_name www.yelook.com;
root /home/www/htdocs;

location / {
index index.html index.htm index.php;
autoindex on;
if (!-e $request_filename)
{
rewrite ^(.*)$ /index.php;
}
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root 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_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;

include fastcgi_params;
}
}
}

貌似就少了这2行。加上就ok了。

不容易



fanta - 有问题请加qq270294661 建站请保留WeCenter版权信息和链接

使用集成面板安装,如宝塔,小皮等,那里有集成的配置,包括伪静态

要回复问题请先登录注册