server
{
listen 8080;
server_name domain.com
www.domain.com;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/domain.com;
include wordpress.conf;
location ~ .*\.(php|php5)?$
{
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log off;
}
örnek olarak şöyle bir nginx vhost dosyanız var diyelim. bold yazdığım kısımdaki gibi bir tane conf dosyası oluşturup üst mesajdaki rewrite kodlarını yazarsanız wordpress te permalinkler sorunsuz çalışıyor