2014-12-24 43 views
0

我已經Ghost安裝在我的站點根鬼博客,並安裝在一個子域的另一個實例。 Ghost與Softaculous一起安裝,這兩個實例都正常工作。 (單獨的數據庫和鬼影的情況。)子域重新引導到安裝在網站根目錄

然而,其他子域現在回到鬼404頁,而不是顯示其內容。

我的文件結構如下:

public_html 
    ├── subdomain     - This displays the ghost 404 page from my root installation  
    │ ├── index.html   - I want it to display this index.html file 
    │ └── assets    
    ├── ghost subdomain   - This is working correctly 
    │ ├── content 
    │ ├── core    
    │ └── etc     
    ├── content 
    ├── core 
    ├── config.js 
    ├── Gruntfile.js 
    └── etc 

我的主要網站的config.js文件製作設置是這樣的:

production: { 
    url: 'http://courtneyspurgeon.com', 
    mail: { removed } 
    }, 
    database: { 
     client: 'mysql', 
     connection: { 
    host: 'localhost' 
    user: 'removed' 
    password: 'removed' 
    database: 'removed' 
    charset: 'utf8', 
    insecureAuth: true, 
    socketPath: '/tmp/mysql.sock', 
     }, 
     debug: false 
    }, 
    server: { 
     // Host to be passed to node's `net.Server#listen()` 
     host: '0.0.0.0', 
     // Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT` 
     port: '65506' 
    } 
}, 

我懷疑我需要以某種方式改變服務器的設置,或者該範圍的一部分,但我不知道如何。

如果有幫助,我的主要部位是:http://courtneyspurgeon.com/(運行鬼)

,這是不工作的子域的例子:(不運行鬼,而是返回父站點的404含量)http://blog.courtneyspurgeon.com/

我歡迎關於我應該是什麼文件或設置在,即使你沒有一個明確的答案的建議。

+0

嘗試一些驅魔,我聽說它有助於防止鬼:P – MightyPork

回答

1

你應該看看你的Apache配置文件。您需要有一個用於courtneyspurgeon.com的配置文件,該文件將流量引導至Ghost,另一位正在監聽blog.courtneyspurgeon.com,該流量將流量引導至public_html/subdomain/index.html。現在聽起來好像Apache沒有被告知它需要處理你的courtneyspurgeon.com和blog.courtneyspurgeon.com流量不同。

如果您在使用Ubuntu我會在/ etc/apache2的/網站可用/和/etc/apache2/apache2.conf中看看。如果您在CentOS上,請查看/ etc/httpd/sites-available和/etc/httpd/httpd.conf。

相關問題