[wp-hackers] Running several WordPress sites on the same server

Jeff Waugh jdub at bethesignal.org
Sun Aug 26 05:55:24 UTC 2012


On Sun, Aug 26, 2012 at 1:45 PM, Michael Clark wrote:

> Is there a way to have two different sites (e.g. site1.example.com and
> site2.example.com) running WordPress multi-site but have a separate,
> non-WordPress app installed on the two sites? One of my sites has a
> Dokuwiki installation  integrated into it, so I couldn't figure out how
> to get WP to work nicely via multi-site.
>

So usually with multisite in subdomain mode, you'd have a configuration
doing something like this (warning, pseudo-config)...

server *.example.com {
  root /srv/example.com/wordpress
  fastcgi_pass phpfpm
}

... which handles requests for all the subdomains. All you have to do is
get a little more specific, and duplicate some of your config. Just add
something along the lines of:

server site1.example.com {
  root /srv/example.com/wordpress
  fastcgi_pass phpfpm

  alias /wiki /srv/site1.example.com/dokuwiki
}

If you want to ease maintenance, split out the common bits and use an
include. :-)


More information about the wp-hackers mailing list