浏览器访问不了虚拟网址

来源:7-2 Apache的虚拟主机配置及伪静态操作

幕布斯5963365

2019-08-01

图片描述
图片描述
现在遇到的问题是:在浏览器上通过自己设的虚拟网址访问不了。我把虚拟网址设为www.centostest.test。通过ip 192.168.1.101能访问到页面,网址不行。ping www.centostest.test能ping通。
报的错误有:
[Thu Aug 01 09:17:08.367305 2019] [core:notice] [pid 2890] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Aug 01 09:17:08.368175 2019] [suexec:notice] [pid 2890] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Aug 01 09:17:08.376331 2019] [auth_digest:notice] [pid 2890] AH01757: generating secret for digest authentication …
[Thu Aug 01 09:17:08.377103 2019] [lbmethod_heartbeat:notice] [pid 2890] AH02282: No slotmem from mod_heartmonitor
[Thu Aug 01 09:17:08.378635 2019] [mpm_prefork:notice] [pid 2890] AH00163: Apache/2.4.6 (CentOS) configured – resuming normal operations
[Thu Aug 01 09:17:08.378657 2019] [core:notice] [pid 2890] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’

写回答

1回答

编程浪子

2019-08-02

你好

浏览器在哪个操作系统 就在哪个操作系统修改hosts。


根据你的截图你的浏览器在windows,但是你却在虚拟机里面修改hosts


1
0

快速上手Linux 玩转典型应用

以主流CentOS 7 操作系统为例,系统讲解Linux,真实线上环境助你快速上手,独立配置运维服务器

1663 学习 · 572 问题

查看课程