August 18, 2010 01:59AM
I'm having some difficulty with a wordpress behavior that I have not been able to figure out.

When I try to split off the second install I get into a wordpress issue where it sends me to the signup page instead of allowing nginx to direct the url to the appropriate folder.

Here's the relevant lines from my conf file.

server {
listen 80;
server_name mydomain.com;
root /home/mydomain/public_html;
index index.php;
fastcgi_read_timeout 600;

location / {
try_files $uri $uri/ @Wordpress;
}

location @Wordpress {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /home/mydomain/public_html/index.php;
include fastcgi_params;
fastcgi_param SCRIPT_NAME /index.php;
}

location ~ \.php$ {
try_files $uri @Wordpress;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/mydomain/public_html$fastcgi_script_name;
include fastcgi_params;
}
}

server {
listen 80 default;
server_name ~^(www\.)?(?P<domain>.+)$;
root /home/domain2/public_html;
index index.php;
fastcgi_read_timeout 1200;
fastcgi_connect_timeout 1200;
fastcgi_send_timeout 1200;

location / {
set $memcached_key $host$uri;
memcached_pass 127.0.0.1:11211;
default_type text/html;
error_page 404 502 = @dynamicContent;
}

location @dynamicContent {
try_files $uri $uri/ @wordpress;
}

location @wordpress {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /home/domain2/public_html/index.php;
include fastcgi_params;
fastcgi_param SCRIPT_NAME /index.php;
}

location ~ \.php$ {
try_files $uri @wordpress;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/domain2/public_html$fastcgi_script_name;
include fastcgi_params;
}
}


the problem is that my catchall is not being allowed to catch because of the wordpress behavior. Anybody have a work around?

Thanks
Subject Author Posted

multiple wordpress installs on same ip

flash August 18, 2010 01:59AM

Re: multiple wordpress installs on same ip

mike August 18, 2010 02:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 300
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