Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

[resolved] Project link to local site does not resolve to Localhost (no replies)

$
0
0
found that I set up the path to virtual host incorrectly

Running: Windows 10
WampServer Version 3.0.4 32bit
Apache 2.4.18 - PHP 5.6.19 - MySQL 5.7.11
WAMP PHP 5.6.19 for CLI (Command-Line Interface)
Icon Showing GREEN

New install - I have created a couple of "Test"virtual hosts using the new way of creating them in "tools". However the links in "My Projects" which are directed to the test sites I have created do not resolve.

It is only when I append the address bar with localhost/project site name am I able to view the local site.

How can I change this so the links automatically resolve to localhost?

I see that in the WAMP settings there is an option for appending url with "localhost" but when applied ther is a wrning in the wamp homepage stating it is a bad idea, and referes to httpd-vhosts file which I cannot see how it should be adapted given that it is set up using the add new virtual host?

[prntscr.com]

my httpd-vhosts.conf looks like this...

#
# Virtual Hosts
#

<VirtualHost *:80>
ServerName localhost
DocumentRoot D:/wamp/www
<Directory "D:/wamp/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerName site1
DocumentRoot d:/wamp/www
<Directory "d:/wamp/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>


<VirtualHost *:80>
ServerName site2
DocumentRoot d:/wamp/www
<Directory "d:/wamp/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>