2017-06-05 43 views
0

desynced我使用Scotchbox(box.scotch.io)爲流浪。自從上次更新,我得到一個文檔根目錄丟失錯誤(AH00112:警告:的DocumentRoot [/無功/網絡/我的空間]不存在)當我嘗試在Apache中設置了一些我的域名CONFIGS。我無法確定自Scotch 2.0以來的設置是否發生了變化,或者由於某種原因,Vagrant是否已經對這些文件夾進行了描述。我的設置如下,Scotchbox:文檔根丟失/與流浪

流浪文件路徑

config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"] 

阿帕奇域配置途徑

<VirtualHost *:80> 
     ServerAdmin [email protected] 
     ServerName mypage.dev 
     ServerAlias www.mypage.dev 
     DocumentRoot /var/www/mypage 
</VirtualHost> 

000-default和scotchbox配置文件都指向到/ var/WWW /公共。我的默認dev文件夾位於〜username/Development,該文件夾是我的Vagrant文​​件。

任何想法?
讓我知道我是否需要提供其他細節。

更新:切換到多克。厭倦了這一點。

回答

1

我剛剛克隆ScotchboxVagrant文件還包含:

config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"] 

我的Apache配置(/etc/apache2/sites-enabled/000-default.conf)外觀:

<VirtualHost *:80> 
    ServerAdmin [email protected] 
    DocumentRoot /var/www/public 
    ErrorLog ${APACHE_LOG_DIR}/error.log 
    CustomLog ${APACHE_LOG_DIR}/access.log combined 
</VirtualHost> 

而且我有public目錄在我的根目錄主機,ls -1打印:

README.md 
Vagrantfile 
public 

它爲我的作品!

在你的情況,你需要更新Apache的配置,並且有:

DocumentRoot /var/www/public 

而付出,你有近Vagrantfilepublic目錄的關注。
如果您有目錄mypage - 然後運行mv mypage public