• Hi,

    I successfully configured multisite with the following structure

    http://multisite.tld/wordpress/<sitename>-<sitetld>/

    My idea is to set a nginx proxy in front of that that dynamically proxies

    http://<sitename&gt;.<sitetld>

    to the former location. I have done an extensive search on the web but haven’t found any solution yet. What I have so far is:

    location / {
                proxy_pass          http://IP:80/wordpress/$domain-$tld/;
                proxy_set_header    Host        $host;
                proxy_set_header    X-Real-IP   $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                rewrite "^(.+/)?(wp-(content|admin|includes).*)" $2;
                rewrite "^(.+/)?(.*\.php)$" $2;
            }

    But it just works partly. I get a “Page not found” but the stylesheet etc. load perfectly.

    Has anyone ever thought of this or implemented it?

    Any help is very much appreciated.

The topic ‘Apache Multisite, subdirectories, nginx as frontend’ is closed to new replies.