0
Nginx 및 Wordpress를 멋지게 재생하려고 시도하지만 서로를 꽤 이해하지 못하는 것 같습니다. 특히 예쁜 URL 및 다시 쓰기의 측면에서 특히 그렇습니다.Nginx, Wordpress 및 URL 다시 쓰기 문제
하단의 nginx (WP의 Nginx의 wiki 페이지에서 가져온 것)에 대한 설정 파일에 다음 스 니펫이 있습니다. 내 오류 로그에이 오류 메시지가 계속 표시되므로 시도하지도 않습니다. 위치를 다시 작성하십시오.
2011/04/11 09:02:29 [error] 1208#1256: *284 "c:/local/path/2011/04/10/hello-world/index.html" is not found (3: The system cannot find the path specified), client: 127.0.0.1, server: localhost, request: "GET /2011/04/10/hello-world/ HTTP/1.1", host: "dev.local:83"
누군가가 나에게 내가 심각하게 붙어 있기 때문에 놀라운 것 방향 또는 포인터 또는 링크 또는 제안을 줄 수 있도록 할 수 있습니다. 감사!
의 nginx에 당신이 번역됩니다 지정된 것과 같은
worker_processes 1;
pid logs/nginx.pid;
events {
worker_connections 64;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
#gzip
gzip on;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_proxied any;
gzip_min_length 1100;
gzip_buffers 16 8k;
gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
# Some version of IE 6 don't handle compression well on some mime-types, so just disable for them
gzip_disable "MSIE [1-6].(?!.*SV1)";
# Set a vary header so downstream proxies don't send cached gzipped content to IE6
gzip_vary on;
server {
listen 83;
server_name localhost dev.local;
root c:/local/path;
index index.php;
location/{
try_files $uri $uri/ /index.php;
}
#pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ {
fastcgi_pass 127.0.0.1:521;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_intercept_errors on;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}