【问题标题】:Setting up Ghost on Subdomain with Hidden Port - Windows Server 2008 with Apache使用隐藏端口在子域上设置 Ghost - 带有 Apache 的 Windows Server 2008
【发布时间】:2015-05-15 16:37:22
【问题描述】:

在开始之前,我应该说我正在 Windows Server 2008 R2 上运行 XAMPP。我的防火墙允许node.exe 以及port 2368。我也一直按照here 的说明进行操作,但没有成功。

我已经安装了我的 Ghost here.

如您所见,Ghost 仅将端口作为 Web 地址的一部分进行加载。

如果您尝试在没有like so 端口的情况下加载站点,则会收到Internal Server 错误。

我的 Ghost 虚拟主机文件是:

<VirtualHost *:80>
ServerName blog.theobearman.com
ProxyPreserveHost on
ProxyPass / http://127.0.0.1:2368/
</VirtualHost>

我的 config.js 文件是here. 请注意配置文件中的198.37.105.108 是我服务器的IP。

Internal Server 错误的错误日志如下:

[Fri May 15 17:56:25.495296 2015] [proxy:warn] [pid 56352:tid 1580] [client 86.147.117.154:58787] AH01144: No protocol handler was valid for the URL /error/HTTP_INTERNAL_SERVER_ERROR.html.var. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule., referer: http://blog.theobearman.com/

如果有人能告诉我需要做什么,我将不胜感激,这样当您导航到“http://blog.theobearman.com”时,Ghost 将在不需要端口作为 Web 地址的一部分的情况下加载。

提前致谢!

【问题讨论】:

    标签: html apache port vhosts ghost-blog


    【解决方案1】:

    您可能需要为 Apache 启用代理模块:

    # Enable the modules.
    a2enmod proxy_http
    a2enmod proxy
    
    # Restart Apache
    service apache2 restart
    

    【讨论】:

    • @aliacoa 我已经启用了这些模块。很抱歉没有把它放在开场白中。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-11-13
    • 2014-02-13
    • 2020-09-17
    • 1970-01-01
    • 1970-01-01
    • 2012-05-25
    • 2013-08-22
    相关资源
    最近更新 更多