开发者社区> 问答> 正文

http://ip地址显示异常

想要看到的效果:
地址栏用IP地址直接访问
显示:

Welcome to nginx!


[font='Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti, 'Microsoft YaHei']服务器ip地址:39.107.117.65
结果显示:
nginx
nginx.conf配置
worker_processes  1;
events {
    worker_connections  4096;
    multi_accept on;
    use epoll;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
        client_header_timeout 10;
        client_body_timeout 10;
        client_max_body_size 128m;
        reset_timedout_connection on;
    sendfile        on;
    keepalive_timeout  10;
        send_timeout 10;
        limit_conn_zone $binary_remote_addr zone=addr:5m;
        limit_conn addr 100;
        fastcgi_connect_timeout 300;
        fastcgi_send_timeout 300;
        fastcgi_read_timeout 300;
        fastcgi_buffer_size 128k;
        fastcgi_buffers 4 256k;
        fastcgi_busy_buffers_size 256k;
        gzip on;
        gzip_min_length 1k;
        gzip_buffers 16 64k;
        gzip_http_version 1.1;
        gzip_comp_level 9;
        gzip_types text/plain application/x-javascript text/css application/xml application/x-httpd-php;
        gzip_vary on;
        proxy_buffer_size 128k;
        proxy_buffers 32 32k;
        proxy_busy_buffers_size 128k;
        open_file_cache max=100000 inactive=20s;
        open_file_cache_valid 30s;
        open_file_cache_min_uses 2;
ser  www www;





展开
收起
doubifeifei 2018-02-02 22:14:56 2370 0
1 条回答
写回答
取消 提交回答
  • 阿里云ping https://ping.gaomeluo.com/aliyun/
    建议安装控制面板
    2018-03-26 11:07:14
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里巴巴HTTP 2.0实践及无线通信协议的演进之路 立即下载
CDN助力企业网站进入HTTPS时代 立即下载
低代码开发师(初级)实战教程 立即下载