Answer the question
In order to leave comments, you need to log in
Bitrix24 and Wordpress: how to set up nginx redirects correctly?
There is a main site on Bitrix24 (CRM + BUS, on the domain.com domain, ip.ad.dr.1 address) and separate pages on Wordpress (on subN.domain.com subdomains, ip.ad.dr.2 address). Now a separate copy of WP has been deployed for each subdomain and the necessary entries on nginx have been added, the whole structure works, but this is not very convenient in terms of administration. I allocated a separate clean machine for WP Multisite, set up multisite, but on a fictitious domain (multisite.com), and all created subdomains, as I understand it, will be of the form sub.multisite.com. When editing the line define('DOMAIN_CURRENT_SITE', 'domain.com'); in the wp-config.php file and reloading the page, the site opens at domain.com/wp-admin and shows a 404 error, which is to be expected. In the nginx config of the main site (/etc/nginx/bx/site_avaliable/ssl.s1.conf) added an entry:
Answer the question
In order to leave comments, you need to log in
├── web01.domain.com
│ └── proxy_pass ... <- Битрикс
├── web02.domain.com
│ └── proxy_pass ... <- WP
├── web03.domain.com
│ └── proxy_pass ... <- WP
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question