标签: data-science-studio

无法从外部访问nginx服务器

我最近不得不在centOS 7服务器上设置一个nginx服务器.为了运行dataiku软件.

每件事似乎都运行良好,但一旦我尝试访问页面,我绝对没有.

在本地的elinks我设法得到nginx默认网页,但不是从我的浏览器,所以我认为它来自我的nginx配置.

这是我的nginx.conf:

user  nginx;
worker_processes  1;

error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;


events {
worker_connections  1024;
}



 http {
include       /etc/nginx/mime.types;
default_type  application/octet-stream;

log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                  '$status $body_bytes_sent "$http_referer" '
                  '"$http_user_agent" "$http_x_forwarded_for"';

access_log  /var/log/nginx/access.log  main;

sendfile        on;
#tcp_nopush     on;

keepalive_timeout  65;

#gzip  on;

include /etc/nginx/conf.d/*.conf;
}
Run Code Online (Sandbox Code Playgroud)

这是default.conf包含的文件:

server {
    listen       80 default;
    server_name _;
    #charset koi8-r;
    #access_log  /var/log/nginx/log/host.access.log  main;

location / {
    root   /usr/share/nginx/html;
    index  index.html index.htm;
}

#error_page  404              /404.html;

# redirect …
Run Code Online (Sandbox Code Playgroud)

centos nginx data-science-studio

0
推荐指数
1
解决办法
7725
查看次数

标签 统计

centos ×1

data-science-studio ×1

nginx ×1