Welcome! Log In Create A New Profile

Advanced

Nginx Locations

Posted by haydio 
Nginx Locations
December 22, 2011 03:41AM
Hi All,

Setting up a new server for Wordpress. I have Apache doing the PHP and other dynamic content, but I want Nginx to serve the static stuff.

I had it all setup fine until I introduced Wordpress Networks, which uses Mod Rewrite in Apache. The website gets images from the /var/www/site/wp-content/ which is actually /var/www/wp-content/ on the server.

Is there a way to fix up the following to get this working?

location ^~ /wp-content/ {
root /var/www/wp-content;
access_log /var/log/nginx/portal.direct.log ;
}

Cheers
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 220
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready