亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

為什么我的設置之后,內容不能出來?

<VirtualHost *:80>
??????? # The ServerName directive sets the request scheme, hostname and port that
??????? # the server uses to identify itself. This is used when creating
??????? # redirection URLs. In the context of virtual hosts, the ServerName
??????? # specifies what hostname must appear in the request's Host: header to
??????? # match this virtual host. For the default virtual host (this file) this
??????? # value is not decisive as it is used as a last resort host regardless.
??????? # However, you must set it for any further virtual host explicitly.
??????? ServerName video.imooc.com

??????? ServerAdmin webmaster@localhost
??????? DocumentRoot /var/wwwroot/video/




??????? # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
??????? # error, crit, alert, emerg.
??????? # It is also possible to configure the loglevel for particular
??????? # modules, e.g.
??????? #LogLevel info ssl:warn

??????? ErrorLog ${APACHE_LOG_DIR}/error.log
??????? CustomLog ${APACHE_LOG_DIR}/access.log combined
"video" 34L, 1363C??????????

正在回答

2 回答

好吧,這折騰了一下ubuntu 14.04 LTS + apache2?

如果還是不行的,你要弄兩個東西:

1. 復制的是000-default.conf 文件,文件名要有.conf后綴,比如:bbs.conf , oa .conf , video.conf ,不然沒用! 切記?。?!之后在sites-enabled中創建軟鏈接時,也要注意文件名+.conf后綴:

如:?

ls -s ../sites-available/bbs.conf bbs.conf?

2. 我就問你,原配置文件你停用了沒??

修改虛擬主機文件后,禁用默認的虛擬主機配置(000.default.conf),然后啟用新的虛擬主機配置,如下sudo a2dissite 000-default.conf && sudo a2ensite unixmen1.local.confsudo a2ensite unixmen2.local.conf


1 回復 有任何疑惑可以回復我~

你設置的路徑是/var/wwwroot/video/,你的文件夾是不是這個,你實際的文件夾名稱會不會是/wwwroot/video/?要不你再確定一下吧

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

為什么我的設置之后,內容不能出來?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號