webim
webim copied to clipboard
根据文档配置nginx,不使用域名,使用ip地址,配完nginx,访问时返回File not found.
访问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;
}
}
还是自己基于swoole写吧 用这个不够帮韩大神调bug的