Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
WordPress 3.1.1 с MultiSite проблема с реврайтами :(
Юзер зарегистрировался, запостил пост с картинкой.
Картинка на сервере появилась, но вот с путями к ней лажа. :(
http://blog.profit.tld/toll/files/2011/04/sam-14.jpg не грузится
http://blog.profit.tld/wp-content/blogs.dir/4/files/2011/04/sam-14.jpg
грузится
toll - user в мультиблоге
настраивал по
http://blog.sjinks.pro/wordpress/874-wpms-nginx-accel-redirect/
nginx version: nginx/0.7.67
server {
listen 1.1.1.1:80;
server_name blog.profit.tld;
access_log /www/profit/data/logs/blog.profit.tld.access.log;
error_log /www/profit/data/logs/blog.profit.tld.error.log debug;
root /www/profit/data/www/blog.profit.tld;
index index.php index.html;
location ^~ /files/ {
rewrite /files/(.+) /wp-includes/ms-files.php?file=$1 last;
}
location ^~ /blogs.dir/ {
internal;
root /www/profit/data/www/blog.profit.tld/wp-content/;
}
# Wordpress permalinks.
# include vhosts/profit/wp-params-lumpini;
location / {
try_files $uri $uri/ @wordpress;
}
location ~ /\. {
deny all;
}
location @wordpress {
fastcgi_pass unix:/var/run/php.socket;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
include fastcgi_params;
fastcgi_pass_header Cookie;
}
location ~ \.php$ {
try_files $uri @wordpress;
fastcgi_pass unix:/var/run/php.socket;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_pass_header Cookie;
}
}
Заранее благодарю на умные мысли.
--
Vladislav V. Prodan
VVP24-UANIC
+380[67]4584408
+380[99]4060508
vlad11@xxxxxxxxx
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|