Re: Wordpress Multi-Site Converting Apache to Nginx

2014-05-08 Thread Alan Chandler
On 01/05/14 08:02, nrahl wrote: This entire configuration was 100% functional using Apache2. I just saw this thread for the first time, and I am wondering if its the same problem I hit when I moved my apache2 configuration over to nginx. It turned out to be nothing to do with nginx, but a pr

Re: Wordpress Multi-Site Converting Apache to Nginx

2014-05-01 Thread nrahl
> With wordpress MU setups, you need to manually set up the blog id > ( well, at least I have so far )... here's some extracts from one of > my > site configs: > > location ^~ /blogs.dir { Thanks for sharing your config. What version of WordPress are you running? Mine doesn't have a blogs.dir di

Re: Wordpress Multi-Site Converting Apache to Nginx

2014-04-30 Thread Francis Daly
On Thu, May 01, 2014 at 02:07:49AM -0400, nrahl wrote: Hi there, > This is the entire config now: > > location ^~ /wordpress/ { >fastcgi_pass unix:/var/run/php5-fpm.sock; > } That says "talk fastcgi to that socket", but nothing useful is sent on that connection because you have no fastcgi_p

Re: Wordpress Multi-Site Converting Apache to Nginx

2014-04-30 Thread Steve Holdoway
Hi, On Thu, 2014-05-01 at 02:07 -0400, nrahl wrote: > Ok, at this point I have removed everything from the config just to try and > get the most basic thing working. > > This is the entire config now: > > location ^~ /wordpress/ { >fastcgi_pass unix:/var/run/php5-fpm.sock; > } > > location

Re: Wordpress Multi-Site Converting Apache to Nginx

2014-04-30 Thread nrahl
Ok, at this point I have removed everything from the config just to try and get the most basic thing working. This is the entire config now: location ^~ /wordpress/ { fastcgi_pass unix:/var/run/php5-fpm.sock; } location / { return 403; } That's all the location blocks. What happens: 1. G

Re: Wordpress Multi-Site Converting Apache to Nginx

2014-04-30 Thread Francis Daly
On Tue, Apr 29, 2014 at 11:33:57PM -0400, Nick Rahl wrote: Hi there, > >That's not what ^~ means. > > The manual says, "If the longest matching prefix location has the > "|^~|" modifier then regular expressions are not checked". Which > means that a ^~ location will have a higher priority than a

Re: Wordpress Multi-Site Converting Apache to Nginx

2014-04-29 Thread Nick Rahl
Side Note: It appears the forum is down.http://forum.nginx.org says, "The database connection failed. Please check your database configuration in include/db/config.php. If the configuration is okay, check if the database server is running." That's not what ^~ means. The manual says, "If t

Re: Wordpress Multi-Site Converting Apache to Nginx

2014-04-29 Thread Francis Daly
On Tue, Apr 29, 2014 at 04:27:36PM -0400, nrahl wrote: Hi there, > Some of the links want to go to a URL like /wp-admin/network/ and it should > silently redirect to /wordpress/wp-admin/network/. That's what the first > apache rule does. I've tried to create an Nginx rule: > > location ^~ ^/(wp-

Wordpress Multi-Site Converting Apache to Nginx

2014-04-29 Thread nrahl
I'm trying to move a working Apache2 config to Nginx and failing miserably. The site has a main application, a custom CMS and a wordpress multi-site with a few blogs. The CMS rules are setup and working, but I can't get the wordpress rules to 1. Work and 2. Get executed ebcause the CMS rules are be