Apache virtual host problem?

http.conf

Listen 8090
Include conf/extra/httpd-vhosts.conf has been enabled
LoadModule vhost_alias_module modules/mod_vhost_alias.so has been enabled
LoadModule authz_host_module modules/mod_authz_host.so has been enabled
DocumentRoot "E:/web"

< H2 > < Directory "E:/web" > < / H2 >

httpd-vhosts.conf

< VirtualHost *: 80 >

ServerName www.lyt7y.cn  
DocumentRoot "E:/web/myweb"  
ServerAlias www.lyt7y.cn  

< / VirtualHost >

hosts

127.0.0.1 www.lyt7y.cn

localhost:8090 access is normal. Www.lyt7y.cn cannot be accessed (www.lyt7y.cn rejected our connection request),

Mar.01,2021

1. You can check whether there is a response under www.lyt7y.cn under ping
2: if there is no response, hosts may not bind the ip, so you need to bind the domain name to hosts

127.0.0.1 www.lyt7y.cn

3: if you have bound, you can check the system agent


www.lyt7y.cn have you done the mapping in your host file?


Brother dei, can't even ping your domain name

clipboard.png

  1. try http.conf search for require local and replace it with Require all granted
  2. apache listens on port 8090. Shouldn't the port number be added when the domain name is accessed? www.lyt7y.cn:8090
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea425f-5cace.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea425f-5cace.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?