New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wordpress Multisite and NGINX Configuration #39
Comments
To anyone who may have a similar problem, the only solution I've found thus far is to put WordPress in the root directory, taking it out of the wp subfolder (which causes problems using WordPress Skeleton for updates, etc). I've narrowed it down to an NGINX config issue, just haven't solved it. Will post it here if I find something. |
Here is what seems to work on my subdirectory multisite test install:: My directory structure is:
If you use for example the NginX rules proposed in the Codex, then you can try to replace this snippet:
with:
Then after
I can access urls like before:
without the /wp/ part in the url. The /wp/ part will not work on the sub sites:
but it will work on the main site:
I've only applied this on my test setup so I will have to play with it some more before trying this out in the real world ;-) |
Awesome I really wish we connect varnish and keep SPDY |
Had an issue accessing network admin menus. The above helped, as did this… open bug on WP core: Relevant section: "- edit wp-includes/link-template.php func network_admin_url(), edit the line"
Navigation between network admin pages and subsites and subsite admin pages all works as expected after making that change to core… if you dare. (I forked the WP submodule for now, which works just fine as a minor tweak to the default skeleton setup.) |
Had the same problems as above with rewrites, subdomain install and domain mapping. I did the following:
Looks good so far. So this may help anyone thats interested: https://core.trac.wordpress.org/ticket/19796 Also related |
Hi, I've been using WP Skelton with Apache, for several years now. Recently decided to give nginx a try, and of course wanted to use WP Skelton. Thus far I'm stumped with the same issue as the original poster;
Note, the following URLs do work: I should be able to access the primary site as http://example.com/wp-admin/, and not http://example.com/wp/wp-admin/ (with no CSS/JS). Can anyone point me in the right direction with the below nginx config? Note I am entirely new to ngnix, so any explanation would be greatly appreciated.
|
There seems to be config example here |
Hi, I'd like to recommend you following the problem solving method through nginx config. So, you will have the access to all admin panels and network admin panel, as well. Change your rewrites with following
|
I'm attempting to set up WordPress skeleton in a multisite configuration. WordPress skeleton already places WordPress in a subdirectory (wp by default). I've taken the following steps:
Once all of this is configured, I can see that the main site (example.com and example.com/wp/wp-admin) both work.
I then add a new site to the network. Upon navigating to the site url (example.com/test-network-site) the front-end is broken (style.css, for example, cannot be found at the URL http://example.com/wp/test-network-site/wp-content/themes/twentythirteen/style.css?ver=2013-07-18). When navigating to the wp-admin, I'm in a redirect loop.
My end goal is to be able to use WordPress Skeleton as a base for the sites I deploy and have the multisite configuration work as it does normally (where example.com is the network main site, example.com/test-network-site is a site within the network, and example.com/test-network-site/wp-admin works as it should). At this point my main question may be is this even possible?
Unsure of how to move forward. Any insight would be greatly appreciated!
The text was updated successfully, but these errors were encountered: