容器技术交流

 找回密码
 立即注册
查看: 2730|回复: 0

求助!!lumanager出现404!!

[复制链接]
发表于 2011-7-18 09:58:35 | 显示全部楼层 |阅读模式
我是nginx   使用lumanager,结果配置完网站之后 就变成404了。。。。
nginx.conf:

  1. user  daemon;
  2. worker_processes  4;

  3. #error_log  logs/error.log;
  4. #error_log  logs/error.log  notice;
  5. #error_log  logs/error.log  info;

  6. pid        logs/nginx.pid;

  7. events {
  8.     worker_connections  65535;
  9. }

  10. http {
  11.         include       mime.types;
  12.         default_type  application/octet-stream;

  13.         log_format  lu_access_log_1 '$remote_addr --- [$time_local] --- Bytes: $body_bytes_sent --- $request --- $status --- $http_referer';

  14.         log_format  lu_access_log_2 '$remote_addr --- [$time_local] --- Bytes: $body_bytes_sent --- $request --- $status --- $http_referer  --- $http_user_agent --- $http_x_forwarded_for --- $remote_user';

  15.         #access_log  /dev/null  combined;
  16.         #access_log  logs/access.log  main;

  17.         sendfile        on;
  18.         #tcp_nopush     on;
  19.         tcp_nodelay        on;

  20.         #keepalive_timeout  0;
  21.         keepalive_timeout  120;

  22.         fastcgi_connect_timeout 300;
  23.         fastcgi_send_timeout 300;
  24.         fastcgi_read_timeout 300;
  25.        
  26.         fastcgi_buffer_size 32k;
  27.         fastcgi_buffers 4 32k;
  28.         fastcgi_busy_buffers_size 32k;
  29.         fastcgi_temp_file_write_size 64k;

  30.         server_names_hash_bucket_size 128;

  31.         client_max_body_size 2000M;

  32.         limit_zone   one  $binary_remote_addr  16m;

  33.         gzip on;
  34.         gzip_min_length 1k;
  35.         gzip_buffers 6 16k;
  36.         gzip_comp_level 5;
  37.         gzip_types text/plain application/x-javascript text/css application/xml;

  38.         #include vhost_default.conf;
  39.         include vhost.conf;
  40. }
复制代码



vhost.test.conf:

  1. user  daemon;
  2. worker_processes  4;

  3. #error_log  logs/error.log;
  4. #error_log  logs/error.log  notice;
  5. #error_log  logs/error.log  info;

  6. pid        logs/nginx.pid;

  7. events {
  8.     worker_connections  65535;
  9. }

  10. http {
  11.         include       mime.types;
  12.         default_type  application/octet-stream;

  13.         log_format  lu_access_log_1 '$remote_addr --- [$time_local] --- Bytes: $body_bytes_sent --- $request --- $status --- $http_referer';

  14.         log_format  lu_access_log_2 '$remote_addr --- [$time_local] --- Bytes: $body_bytes_sent --- $request --- $status --- $http_referer  --- $http_user_agent --- $http_x_forwarded_for --- $remote_user';

  15.         #access_log  /dev/null  combined;
  16.         #access_log  logs/access.log  main;

  17.         sendfile        on;
  18.         #tcp_nopush     on;
  19.         tcp_nodelay        on;

  20.         #keepalive_timeout  0;
  21.         keepalive_timeout  120;

  22.         fastcgi_connect_timeout 300;
  23.         fastcgi_send_timeout 300;
  24.         fastcgi_read_timeout 300;
  25.        
  26.         fastcgi_buffer_size 32k;
  27.         fastcgi_buffers 4 32k;
  28.         fastcgi_busy_buffers_size 32k;
  29.         fastcgi_temp_file_write_size 64k;

  30.         server_names_hash_bucket_size 128;

  31.         client_max_body_size 2000M;

  32.         limit_zone   one  $binary_remote_addr  16m;

  33.         gzip on;
  34.         gzip_min_length 1k;
  35.         gzip_buffers 6 16k;
  36.         gzip_comp_level 5;
  37.         gzip_types text/plain application/x-javascript text/css application/xml;

  38.         #include vhost_default.conf;
  39.        



  40. server {
  41.         server_name   qiudui.tk [url]www.qiudui.tk[/url] ;
  42.         listen       80;

  43.         #鐢ㄦ埛璁よ瘉



  44.        
  45.        
  46.         # ------------ 301鍜?02杞?悜




  47.         # ------------
  48.         if (-d $request_filename) {
  49.                 rewrite ^/(.*)([^/])$ $scheme://$host/$1$2/ permanent;
  50.         }
  51.        
  52.         # ------------



  53.        
  54.         # ------------
  55.         # # set $index '';
  56.         # # if ($uri ~ /$ ){
  57.                 # # rewrite (.*) $uri$index redirect;
  58.         # # }
  59.        
  60.         # location ~ \.()$ {
  61.                 #1
  62.                 # root /home/qiudui/;
  63.                 # proxy_store on;
  64.                 # proxy_temp_path "/home/qiudui/";
  65.                 # proxy_store_access user:rw group:rw all:rw;

  66.                 #2
  67.                 # proxy_cache mem_cache_2;
  68.                
  69.                 # if (!-e $request_filename) {
  70.                         # proxy_pass ;
  71.                 # }
  72.                 # include proxy_pass.conf;
  73.         # }
  74.        
  75.         # location ~ (?!)$ {
  76.                 # proxy_pass ;
  77.                 # include proxy_pass.conf;
  78.         # }
  79.        
  80.         ## location ~ /purge(/.*) {
  81.                 ## allow all;
  82.                 ## allow 127.0.0.1;
  83.                 ## deny all;
  84.                 ## proxy_cache_purge mem_cache_2 $1$is_args$args;
  85.         ## }

  86.         # ------------
  87.         #                /var/log/nginx_vhost_log/2_error.log info;
  88.         #                /var/log/nginx_vhost_log/2_access.log lu_#_2;
  89.        

  90.          error_page 403 /__ErrorFiles__/403.html;
  91.          error_page 404 /__ErrorFiles__/404.html;
  92.        
  93.          error_page 500 /__ErrorFiles__/500.html;
  94.          error_page 501 /__ErrorFiles__/501.html;
  95.          error_page 502 /__ErrorFiles__/502.html;
  96.        


  97.         root   /home/qiudui/;
  98.        
  99.          ssi off;
  100.          ssi_silent_errors off;
  101.          ssi_types text/shtml;




  102.          #valid_referers none blocked server_names qiudui.tk *.qiudui.tk;
  103.          if ($invalid_referer) {
  104.                  return 403;
  105.          }
  106.        
  107.         location / {
  108.                
  109.                
  110.                  index  index.html index.htm index.shtml index.php;
  111.                  autoindex        off;

  112.                 #  proxy_pass ;
  113.                 #  proxy_set_header Host $host;
  114.                 #  include proxy_pass.conf;
  115.         }
  116.        
  117.         location /nginx_status {
  118.                 stub_status on;
  119.                 # off;
  120.         }

  121.         #------------
  122.          location ~* \.(php[3-9]?|phtm[l]?)(\/.*)*$ {

  123.                  #  proxy_set_header Host $host;
  124.                  # include proxy_pass.conf;
  125.                
  126.                   fastcgi_pass  127.0.0.1:9000;

  127.                   include enable_php.conf;
  128.          }
  129.        
  130.         location ~ /\.ht {
  131.                 return 403;
  132.         }

  133.         location ~ ssl.(key|crt)$ {
  134.                 return 403;
  135.         }
  136.        
  137.         location ~ (favicon.ico|robots.txt) {
  138.                 expires 1d;
  139.                 log_not_found off;
  140.                 #   off;
  141.                 break;
  142.         }

  143.          location ~* \.(gif|jpg|jpeg|png|bmp|swf)$ {
  144.                 #expires 6h;
  145.                  expires 6h;
  146.                  break;
  147.          }

  148.          location ~* \.(js|css)$ {
  149.                  expires 1h;
  150.                  break;
  151.          }
  152. }
  153. #the end

  154. }
复制代码


求解决办法
p.s.:我那个qiudui.tk是在hosts里解析的= =
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-7-7 19:59 , Processed in 0.025795 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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