Welcome! Log In Create A New Profile

Advanced

WordPress 3.1.1 с MultiSite проблема с реврайтами :(

Vladislav V. Prodan
April 11, 2011 03:14PM
Юзер зарегистрировался, запостил пост с картинкой.
Картинка на сервере появилась, но вот с путями к ней лажа. :(

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@jabber.ru
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

WordPress 3.1.1 с MultiSite проблема с реврайтами :(

Vladislav V. Prodan April 11, 2011 03:14PM

Re: WordPress 3.1.1 с MultiSite проблема с реврайтами :(

milordk April 16, 2011 07:28AM

Re: WordPress 3.1.1 с MultiSite проблема с реврайтами :(

Vladislav V. Prodan April 16, 2011 11:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 279
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready