【发布时间】:2019-10-30 19:22:02
【问题描述】:
当我启用 MultiSite Wordpress 时,它会重定向到 Virualmin 网站之一
我尝试将其作为子域,我将其注册为 DNS。 作为一个子目录,我尝试将它包含在 NGINX 设置中。
######### subdirectory #######
location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?q=$uri&$args;
}
location /layout-1/ {
index index.php;
try_files $uri $uri/ /layout-1/index.php?q=$uri&$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
########## use this or this depends on the configuration ######
1 - ### fastcgi_pass unix:/run/php/php7.3-fpm.sock;
2 - ### fastcgi_pass localhost:8009;
########################################################
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_read_timeout 3000;
;
BIND 应该在域中具有外部 IP 还是内部 IP?我对所有服务器只使用一个 IP,在 BIND 中所有域都使用外部 IP。 (问题是应该是外部IP还是内部IP)。
NGINX 有什么配置吗?如何删除IP并只放(听IP:80)而不是(听288.218.198.981:80)
但一般情况下哪种配置可行?所以你总是可以避免复杂的编辑......例如......创建内部子域后......
【问题讨论】:
标签: wordpress nginx redirect bind virtualmin