日本三级片在线观看视频_西西大胆午夜人体视频无码_少妇无码一区二区_亚洲天堂超碰_极品少妇被猛的白浆直流_91精品云霸高清中文字幕_草草五月天伊人_久久少妇无码专区_欧美激欧美啪啪5老太_日韩在线在线成人

apache常見的錯(cuò)誤

2019-01-05 17:03:04 12954

1.重啟apche(service httpd restart)的時(shí)候提示:

正在啟動(dòng) httpd:httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName

解決方法:vi /etc/httpd/conf/httpd.conf,找到#ServerName lncdfzh.com.cn:80,修改為:ServerName localhost:80即可。

補(bǔ)充說明:平時(shí)在安裝二進(jìn)制文件的時(shí)候會(huì)提示說填寫一個(gè)域名和端口,就是配置的這里。

 

2.thinkphp采用URL_MODEL=2,即采用rewrite的時(shí)候,發(fā)現(xiàn)http://lncdfzh.com.cn/list?cid=3打不開網(wǎng)頁。提示404.

解決方法:打開手冊(cè)查看的了下URL重寫部分,發(fā)現(xiàn)是apache配置問題。打開vi /etc/httpd/conf/httpd.conf,修改:AllowOverride None 將None改為 All。

 

3.在apache配置文件httpd.conf中想配置多個(gè)域名指向一個(gè)目錄(即一個(gè)網(wǎng)站)的時(shí)候,重啟apache出現(xiàn)錯(cuò)誤:

ServerName takes one argument, The hostname and port of the server

解決方法:將修改為ServerAlias,或者是再添加一個(gè) ServerAlias。

方法1
NameVirtualHost *:80
<VirtualHost *:80>
  ServerAlias lncdfzh.com.cn landui.com
  DocumentRoot "/var/www/landui.com"
</VirtualHost>
方法2
NameVirtualHost *:80

<VirtualHost *:80>
  ServerName landui.com

  ServerAlias lncdfzh.com.cn 
  DocumentRoot "/var/www/landui.com"
</VirtualHost>


提交成功!非常感謝您的反饋,我們會(huì)繼續(xù)努力做到更好!

這條文檔是否有幫助解決問題?

非常抱歉未能幫助到您。為了給您提供更好的服務(wù),我們很需要您進(jìn)一步的反饋信息:

在文檔使用中是否遇到以下問題: