Having Issue Adding Site to Local Host Virtual Host

a 夏天 提交于 2020-05-14 10:19:31

问题


Using WampServer 2.4.41 on Win64 Apache I am using this setting in my httpd-vhosts.confbust this is adding the maper as a new VirtualHost to the WampServer instead of adding it as Site into localhost:8080 VirtualHost

<VirtualHost *:8080>
  ServerName localhost
  ServerAlias localhost
  DocumentRoot "${INSTALL_DIR}/www"
  <Directory "${INSTALL_DIR}/www/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

#webematics
<VirtualHost *:8080>
  ServerName maper
  ServerAlias maper
  DocumentRoot "${INSTALL_DIR}/www/maper"
  <Directory "${INSTALL_DIR}/www/maper/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

I also have the hosts as

#
127.0.0.1 localhost
::1 localhost

127.0.0.1 maper

As you can see the maper is listing on my projects but it is not click able and also I am getting this message

To use them as an http link, you must declare them as VirtualHost

Can you please let me know what I am missing and how I can fix this to put everything under one Virtual Host localhost

来源:https://stackoverflow.com/questions/59902915/having-issue-adding-site-to-local-host-virtual-host

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!