Не работает мультиадминка с поддоменами
-
Добрый день, создал мультиадминку
в настройках wp-confing.php написал такоеdefine( 'MULTISITE', true ); define( 'SUBDOMAIN_INSTALL', true ); define( 'DOMAIN_CURRENT_SITE', 'test.com.ua' ); define( 'PATH_CURRENT_SITE', '/' ); define( 'SITE_ID_CURRENT_SITE', 1 ); define( 'BLOG_ID_CURRENT_SITE', 1 );
в настройках ngix прописал такое
map $http_host $blogid { default -999; #Ref: https://wordpress.org/extend/plugins/nginx-helper/ #include /var/www/wordpress/wp-content/plugins/nginx-helper/map.conf ; } server { server_name test.com.ua *.test.com.ua ; root /var/www/test.com.ua/htdocs; index index.php; location / { try_files $uri $uri/ /index.php?$args ; } location ~ \.php$ { try_files $uri =404; include fastcgi_params; fastcgi_pass php; } #WPMU Files location ~ ^/files/(.*)$ { try_files /wp-content/blogs.dir/$blogid/$uri /wp-includes/ms-files.php?file=$1 ; access_log off; log_not_found off; expires max; } #WPMU x-sendfile to avoid php readfile() location ^~ /blogs.dir { internal; alias /var/www/test.com.ua/htdocs/wp-content/blogs.dir; access_log off; log_not_found off; expires max; } #add some rules for static content expiry-headers here }
Я добавляю сайт с поддоменом все норма но когда перехожу
Не удается получить доступ к сайтуПроверьте, нет ли опечаток в имени хоста telegram.test.com.ua.
Если все правильно, воспользуйтесь инструментом «Диагностика сетей Windows».
DNS_PROBE_FINISHED_NXDOMAINПодскажите что может не работает, или что не так делаю
Просмотр 1 ответа (всего 1)
Просмотр 1 ответа (всего 1)
- Тема «Не работает мультиадминка с поддоменами» закрыта для новых ответов.