Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

根据文档配置nginx,不使用域名,使用ip地址,配完nginx,访问时返回File not found. #35

Open
alinden1 opened this issue Jun 28, 2017 · 1 comment

Comments

@alinden1
Copy link

访问http::// 180.76.128.198:8084 返回File not found.
这个是什么问题引起的?
nginx 配置如下
server {
listen 8084;
server_name 180.76.128.198;
index index.html index.php;

access_log  /path/to/webim/webroot/access.log  main;
error_log /path/to/webim/webroot/error.log warn;


location / {
    root   /path/to/webim/webroot;
    proxy_set_header X-Real-IP $remote_addr;
    if (!-e $request_filename) {
        rewrite ^/(.*)$ /index.php;
    }
}

location ~ .*\.(php|php5)?$ {
fastcgi_pass  127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
    include        fastcgi_params;
    fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

}

@hanwenbo
Copy link

hanwenbo commented Sep 7, 2017

还是自己基于swoole写吧 用这个不够帮韩大神调bug的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants