问题
Using WampServer 2.4.41 on Win64 Apache I am using this setting in my httpd-vhosts.conf
bust 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