最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

directory - multisite subdomain behind reverse proxy

programmeradmin2浏览0评论

I'm trying to run a wordpress multisite subdomain setup behind a reverse proxy to look like its sub directories.

So the setup is like:

www.mydomain/articles --> cms.mydomain www.mydomain/news --> news.cms.mydomain

I've found there are many places in database and config to set domains/urls and am confused about which should be set to what you'd see in the url, and which should be set to the actual domain where WP is running.

Places found:

wp_options table
siteurl
home

wp_site table
domain

wp_blogs table
domain for each site

wp-config.php
COOKIE_DOMAIN
DOMMAIN_CURRENT_SITE

Any advice greatly appreciated. Whatever I've tried so far seems to work in some cases and not others (i.e. sometimes i get 404s on css, sometimes i get 404s on wp-admin)

发布评论

评论列表(0)

  1. 暂无评论