跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 有没有大佬使用过verynginx的吗?
未分類
30 10 月 2020

有没有大佬使用过verynginx的吗?

peng123 大佬有话说 :

有没有大佬使用过verynginx的吗?

为毛我配置写不进去?

添加用户刷新就没了,而且原始账户也删除不了。nginx配置也无法生效。

这是什么原因?????
https://i.w3tt.com/images/o7vdv.png
https://i.w3tt.com/images/o7ZvY.png
https://i.w3tt.com/images/o7KUU.png

iks 大佬有话说 :

不要加到 listen 888
建议先学《nginx各层配置指南》、《宝塔 phpMyAdmin 实现方式》https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif

peng123 大佬有话说 :

iks 大佬有话说 : 2020-10-30 19:55
不要加到 listen 888
建议先学《nginx各层配置指南》、《宝塔 phpMyAdmin 实现方式》 …

之前是添加到下面的,但是也没用,所以我按着它实例添加了一次,还是没用!https://i.w3tt.com/images/o7gaq.png

iks 大佬有话说 :

本帖最后由 iks 于 2020-10-30 20:04 编辑

peng123 大佬有话说 : 2020-10-30 20:01
之前是添加到下面的,但是也没用,所以我按着它实例添加了一次,还是没用! …

server段conf添加到你需要添加的网站的server里去(/www/server/panel/vhost/nginx或网站-配置文件),不是随意添加到哪个server里就行的https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif

翠花 大佬有话说 :

仔细看项目文档,你遇到的这个问题里边提到的有

peng123 大佬有话说 :

iks 大佬有话说 : 2020-10-30 20:03
server段conf添加到你需要添加的网站的server里去(/www/server/panel/vhost/nginx或网站-配置文件),不 …

还是没作用啊,添加配置后刷新还是没了!

https://i.w3tt.com/images/o7pEr.png
https://i.w3tt.com/images/o7mNc.png

hxuf 大佬有话说 :

用过 难用。放弃了。还是宝塔nginx防火墙好用。

iks 大佬有话说 :

peng123 大佬有话说 : 2020-10-30 20:20
还是没作用啊,添加配置后刷新还是没了!

include /opt/verynginx/verynginx/nginx_conf/in_external.conf;放在 http 配置块外部https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif

iks 大佬有话说 :

本帖最后由 iks 于 2020-10-30 20:27 编辑

peng123 大佬有话说 : 2020-10-30 20:20
还是没作用啊,添加配置后刷新还是没了!
server段放对了
userwww www;
worker_processes auto;
error_log/www/wwwlogs/nginx_error.logcrit;
pid      /www/server/nginx/logs/nginx.pid;
worker_rlimit_nofile 51200;

events
    {
      use epoll;
      worker_connections 51200;
      multi_accept on;
    }

include /opt/verynginx/verynginx/nginx_conf/in_external.conf;

http
    {
        include /opt/verynginx/verynginx/nginx_conf/in_http_block.conf;

      include       mime.types;
                #include luawaf.conf;
                include proxy.conf;

      default_typeapplication/octet-stream;

      server_names_hash_bucket_size 512;
      client_header_buffer_size 32k;
      large_client_header_buffers 4 32k;
      client_max_body_size 50m;

      sendfile   on;
      tcp_nopush on;

      keepalive_timeout 60;

      tcp_nodelay on;

      fastcgi_connect_timeout 300;
      fastcgi_send_timeout 300;
      fastcgi_read_timeout 300;
      fastcgi_buffer_size 64k;
      fastcgi_buffers 4 64k;
      fastcgi_busy_buffers_size 128k;
      fastcgi_temp_file_write_size 256k;
                fastcgi_intercept_errors on;

      gzip on;
      gzip_min_length1k;
      gzip_buffers   4 16k;
      gzip_http_version 1.1;
      gzip_comp_level 2;
      gzip_types   text/plain application/javascript application/x-javascript text/javascript text/css application/xml;
      gzip_vary on;
      gzip_proxied   expired no-cache no-store private auth;
      gzip_disable   "MSIE .";

      limit_conn_zone $binary_remote_addr zone=perip:10m;
                limit_conn_zone $server_name zone=perserver:10m;

      server_tokens off;
      access_log off;

server
    {
      listen 888;
      server_name phpmyadmin;
      index index.html index.htm index.php;
      root/www/server/phpmyadmin;
            location ~ /tmp/ {
                return 403;
            }

      #error_page   404   /404.html;
      include enable-php.conf;

      location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$
      {
            expires      30d;
      }

      location ~ .*.(js|css)?$
      {
            expires      12h;
      }

      location ~ /.
      {
            deny all;
      }

      access_log/www/wwwlogs/access.log;
    }

include /www/server/panel/vhost/nginx/*.conf;
}

注意第14行和第18行https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif

peng123 大佬有话说 :

iks 大佬有话说 : 2020-10-30 20:26
注意第14行和第18行

可以了。谢谢大佬。用户名以及网站配置都能行了!~:hug:

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具