iT邦幫忙

0

host not found

正在練習selinux
兩台虛擬機

一台安裝了 httpd了

想說先 vim /etc/httpd.conf.d/userdir.conf


#UserDir disabled <--這個加註解

然後 userdir public_html 刪除註解

接下來 systemctl stop httpd
systemctl start httpd

切回 student 使用者

mkdir public_html

vim /home/student/public_html/index.html(準備測試用的網頁)

  http://server19.example.com/~student/index.html

chmod 701 /home/student
exit(登出 student,回到 root)
sealert -a /var/log/audit/audit.log
setsebool -P httpd_enable_homedirs 1

在 另外一台 虛擬機yum install links
links -dump http://server19.example.com/~student/index.html

但是出現 host not found
求解QQ

weiclin iT邦高手 4 級 ‧ 2017-08-27 13:33:17 檢舉
host not found 的話你要看看你的 dns 或是 hosts 有沒有設好
現在已經可以連到了,只是網頁是呈現404 not found
新二君 iT邦新手 2 級 ‧ 2017-08-30 16:03:41 檢舉
404似乎是找不到網頁的訊息,路徑檢查一下吧!
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答