# Multiple wordpress installs on same ip

**URL:** <https://www.ruby-forum.com/t/multiple-wordpress-installs-on-same-ip/193467>\
**Category:** NGINX\
**Created:** [August 18, 2010, 8:00am UTC](https://www.ruby-forum.com/t/multiple-wordpress-installs-on-same-ip/193467 "2010-08-18T08:00:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f475e1/32.png) [@flash](https://www.ruby-forum.com/u/flash)\
**Post date:** [August 18, 2010, 8:00am UTC](https://www.ruby-forum.com/t/multiple-wordpress-installs-on-same-ip/193467/1 "2010-08-18T08:00:09Z")

</div>

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](http://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.+)$;  
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

Posted at Nginx Forum:

> **[multiple wordpress installs on same ip](https://forum.nginx.org/read.php?2,120888,120888#msg-120888)**
>
> 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...

---

<div class="post-metadata">

**Author:** ![flash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f475e1/32.png) [@flash](https://www.ruby-forum.com/u/flash)\
**Post date:** [August 18, 2010, 8:15am UTC](https://www.ruby-forum.com/t/multiple-wordpress-installs-on-same-ip/193467/2 "2010-08-18T08:15:57Z")

</div>

sorry, this looks like a mess.

[http://michaelshadle.com/2009/03/19/finally-using-nginxs-try-files-directive/](http://michaelshadle.com/2009/03/19/finally-using-nginxs-try-files-directive/)

use that.

then throw in the memcache stuff if you need it
