运行 NAT 背后的 Magento?

Running Magento behind NAT?

我正在尝试 运行 NAT 后面的 Magento,其中 nat 端口不是 80? F.e。 www.mysite.com:4444 =到内部=> 192.168.100.10:80

问题是首页似乎动态加载了站点的其余部分...这就是加载的首页开头的样子:

var require = { "baseUrl": "...://www.mysite.com/static/version1498705433/frontend/Magento/luma/en_US" };

所以除了首页之外什么都没有加载,其他一切都超时。

如果仔细观察,您不会在 baseURL 中看到 NAT 端口:4444,即 "loader" 应该看起来像:

var require = { "baseUrl": "....://www.mysite.com:4444/static/version1498705433/frontend/Magento/luma/en_US" };

有办法解决吗?即 运行 NAT 后面的 Magento,其中 NAT 端口不是 80 ?

在 Magento 中将 Stores/Configuration/Web/Base URL 设置为:....://www.mysite.com:4444