当前位置:论坛首页 > Linux面板 > 求助

【已回应】求助访问目录问题

发表在 Linux面板2019-8-18 09:48 [复制链接] 4 1105

023336yid2i55rr0dm5idc.png

网站在、/web下面现在可以正常打开

www.0359fcw.com 没问题
我在/web下面建立 /zt /xx目录

现在:

http://www.0359fcw.com/zhuanti/fxzy2019/index.html可以打开

http://www.0359fcw.com/zhuanti/fxzy2019/确打不开呢?


这个只是一个目录啊 不是独立的网站 上次说的修改站点指向 没办法修改啊


QQ截图20190818094801.jpg


使用道具 举报 只看该作者 回复
发表于 2019-8-19 10:23:23 | 显示全部楼层
您好,
1、检查是不是添加了重定向
2、截图看下您的站点配置文件
使用道具 举报 回复 支持 反对
发表于 2019-8-20 00:19:09 | 显示全部楼层
大炮运维V587 发表于 2019-8-19 10:23
您好,
1、检查是不是添加了重定向
2、截图看下您的站点配置文件
  1. server
  2. {
  3.     listen 80;
  4.         listen 443 ssl http2;
  5.     server_name 0359fcw.com www.0359fcw.com;
  6.         index index.html app.php index.php index.htm default.php default.htm default.html;
  7.     root /www/wwwroot/old.0359fcw.com/newhouse/web/;
  8.    
  9.     #SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则
  10.     #error_page 404/404.html;
  11.     ssl_certificate    /www/server/panel/vhost/cert/www.0359fcw.com/fullchain.pem;
  12.     ssl_certificate_key    /www/server/panel/vhost/cert/www.0359fcw.com/privkey.pem;
  13.     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  14.     ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
  15.     ssl_prefer_server_ciphers on;
  16.     ssl_session_cache shared:SSL:10m;
  17.     ssl_session_timeout 10m;
  18.     error_page 497  https://$host$request_uri;

  19.         #301-START
  20.                 if ($host ~ '^0359fcw.com'){
  21.                         return 301 http://www.0359fcw.com$request_uri;
  22.                 }
  23.         #301-END
  24.     #SSL-END
  25.         #引用重定向规则,注释后配置的重定向代理将无效
  26.         include /www/server/panel/vhost/nginx/redirect/www.0359fcw.com/*.conf;
  27.    
  28.     #ERROR-PAGE-START  错误页配置,可以注释、删除或修改
  29.     error_page 404 /404.html;
  30.     error_page 502 /502.html;
  31.     #ERROR-PAGE-END
  32.    
  33.     #PHP-INFO-START  PHP引用配置,可以注释或修改
  34.     include enable-php-71.conf;
  35.     #PHP-INFO-END
  36.    
  37.     #REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效
  38.     include /www/server/panel/vhost/rewrite/www.0359fcw.com.conf;
  39.     #REWRITE-END
  40.    
  41.     #禁止访问的文件或目录
  42.     location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)
  43.     {
  44.         return 404;
  45.     }
  46.    
  47.     #一键申请SSL证书验证目录相关设置
  48.     location ~ \.well-known{
  49.         allow all;
  50.     }
  51.    
  52.     location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  53.     {
  54.         expires      30d;
  55.         error_log off;
  56.         access_log off;
  57.     }
  58.    
  59.     location ~ .*\.(js|css)?$
  60.     {
  61.         expires      12h;
  62.         error_log off;
  63.         access_log off;
  64.     }
  65.     access_log  /www/wwwlogs/www.0359fcw.com.log;
  66.     error_log  /www/wwwlogs/www.0359fcw.com.error.log;
  67.        
  68.         rewrite ^/app\.php/?(.*)$ /$1 permanent;

  69.         location / {
  70.         index index.html app.php index.php index.htm default.php default.htm default.html;
  71.                 try_files $uri @rewriteapp;
  72.         }

  73.         location @rewriteapp {
  74.                 rewrite ^(.*)$ /app.php/$1 last;
  75.         }

  76.         location ~ \.php(.*)$ {
  77.                 fastcgi_pass 127.0.0.1:9000;
  78.                 #fastcgi_pass unix:/dev/shm/php-cgi.sock;
  79.                 fastcgi_split_path_info ^(.+\.php)(/.*)$;
  80.                 fastcgi_param PATH_INFO $fastcgi_path_info;
  81.                 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  82.                 fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
  83.                 fastcgi_param  QUERY_STRING       $query_string;
  84.                 fastcgi_param  REQUEST_METHOD     $request_method;
  85.                 fastcgi_param  CONTENT_TYPE       $content_type;
  86.                 fastcgi_param  CONTENT_LENGTH     $content_length;
  87.                 fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
  88.                 fastcgi_param  REQUEST_URI        $request_uri;
  89.                 fastcgi_param  DOCUMENT_URI       $document_uri;
  90.                 fastcgi_param  DOCUMENT_ROOT      $document_root;
  91.                 fastcgi_param  SERVER_PROTOCOL    $server_protocol;
  92.                 fastcgi_param  REQUEST_SCHEME     $scheme;
  93.                 fastcgi_param  HTTPS              $https if_not_empty;
  94.                 fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
  95.                 fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;
  96.                 fastcgi_param  REMOTE_ADDR        $remote_addr;
  97.                 fastcgi_param  REMOTE_PORT        $remote_port;
  98.                 fastcgi_param  SERVER_ADDR        $server_addr;
  99.                 fastcgi_param  SERVER_PORT        $server_port;
  100.                 fastcgi_param  SERVER_NAME        $server_name;
  101.                 # PHP only, required if PHP was built with --enable-force-cgi-redirect
  102.                 fastcgi_param  REDIRECT_STATUS    200;
  103.         }
  104. }
复制代码

使用道具 举报 回复 支持 反对
发表于 2019-8-20 00:20:22 | 显示全部楼层
上次看过配置文件啊  配置文件没啥啊 我站点建立以后  我只需要传个静态的。html文件可以访问就可以的啊

怎么弄呢
QQ截图20190820002004.jpg
使用道具 举报 回复 支持 反对
发表于 2019-8-21 18:25:01 | 显示全部楼层
大炮运维V587 发表于 2019-8-19 10:23
您好,
1、检查是不是添加了重定向
2、截图看下您的站点配置文件

求解 比较着急 谢谢
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表