- berliz2010-03-21中级会员1042
google找了几个 解决不了问题
上传nginx.conf后使用过 kill -HUPcat /usr/local/nginx/logs/nginx.pid
换浏览器 清除缓存 还是不行这个问题只出现在第二个域名的后台 编辑文件 或者增加文章 等等后台导航内的链接都是失败的
后台的部分图片也显示不来 查看图片路径发现 原本是 .com/wp-admin/image/ 的路径 现在成了.com/image/
这样一来就可以理解为啥wordpress后台出错了,因为这些页面是在 .com/wp-admin/edit.php 现在却成为了 .com/edit.php
知道问题所在了,但是却不知道怎么解决 因为没有动过任何地方
昨晚还好好的 昨晚仅仅添加了这么一行 在首个server之上- server_name_in_redirect off; 复制代码- user www www;- - worker_processes 1;
- - error_log /home/wwwroot/logs/nginx_error.log crit;
- - pid /usr/local/nginx/logs/nginx.pid;
- - #Specifies the value for maximum file descriptors that can be opened by this process.
- worker_rlimit_nofile 51200;
- - events
- {
- use epoll;
- worker_connections 51200;
- }
- - http
- {
- include mime.types;
- default_type application/octet-stream;
- - #charse gb2312;
- - server_names_hash_bucket_size 128;
- client_header_buffer_size 32k;
- large_client_header_buffers 4 32k;
- client_max_body_size 8m;
- - 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;
- - gzip on;
- gzip_min_length 1k;
- gzip_buffers 4 16k;
- gzip_http_version 1.0;
- gzip_comp_level 2;
- gzip_types text/plain application/x-javascript text/css application/xml;
- gzip_vary on;
- - #limit_zone crawler $binary_remote_addr 10m;
- server_name_in_redirect off;
- server
- {
- listen 80;
- server_name messfeel.net;
- index index.html index.htm index.php;
- root /home/wwwroot;
- include /usr/local/nginx/conf/discuz.conf;
- - #error
- error_page 404 = /404.html;
- - location ~ .*\.(php|php5)?$
- {
- fastcgi_pass unix:/tmp/php-cgi.sock;
- #fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- include fcgi.conf;
- }
- - location /status {
- stub_status on;
- access_log off;
- }
- - location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
- {
- expires 30d;
- }
- - location ~ .*\.(js|css)?$
- {
- expires 12h;
- }
- - log_format access '$remote_addr - $remote_user [$time_local] "$request" '
- '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" $http_x_forwarded_for';
- access_log /home/wwwroot/logs/access.log access;
- }
- - server
- {
- listen 80;
- server_name betaer.com;
- index index.html index.htm index.php;
- root /home/betaer/;
- include /usr/local/nginx/conf/wordpress.conf;
- - location ~ .*\.(php|php5)?$
- {
- fastcgi_pass unix:/tmp/php-cgi.sock;
- #fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- include fcgi.conf;
- }
- location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
- {
- expires 30d;
- }
- location ~ .*\.(js|css)?$
- {
- expires 7d;
- }
- access_log off;
- }
- - include vhost/*.conf;
- }复制代码
[ 本帖最后由 berliz 于 2010-3-21 18:37 编辑 ]