Virtual Host subfolders will not open
Posted by: rlmcculley (---.client.mchsi.com)
Date: March 25, 2018 02:30PM

I have created my virtual hosts but when I click on them on the WAMPserver Homepage they will not open unless I use localhost/*****

I have watched numerous videos and followed the steps exactly, what am I missing?

I am using Apache 2.4.27

Options: ReplyQuote
Re: Virtual Host subfolders will not open
Posted by: Otomatic (Moderator)
Date: March 25, 2018 02:45PM

Hi,

- 1 - Please READ (and answer) BEFORE YOU ASK A QUESTION

Almost all the videos you can see about Wampserver are either full of nonsense or somewhat dated and not up to date. There is no official Wampserver video.

- 2 - What is the result of :
Right-Click Wampmanager tray icon -> Tools -> Show VirtaulHost examined by Apache

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Virtual Host subfolders will not open
Posted by: rlmcculley (---.client.mchsi.com)
Date: March 25, 2018 03:03PM

-1- Confused over your response, did I miss something? I could not find an answer on the forum, that is why I posted the question.

-2-

VirtualHost configuration:

Default server: localhost
Virtual Host: localhost
Virtual Host: test
Virtual Host: hiteforiowa

Options: ReplyQuote
Re: Virtual Host subfolders will not open
Posted by: Otomatic (Moderator)
Date: March 25, 2018 04:30PM

Hi,

> -1- Confused over your response, did I miss something?
This is a link -> READ (and answer) BEFORE YOU ASK A QUESTION <- This is a link click on it

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Virtual Host subfolders will not open
Posted by: rlmcculley (---.client.mchsi.com)
Date: March 25, 2018 07:48PM

I solved the issue. Not one of the training videos (as you so aptly noted) correctly directed the user to add the server name that had been created in the hosts file to the Document Root in httpd-vhosts.conf. Everyone of them said to create the following in the hosts file:

<VirtualHost *:80>
ServerName test
ServerAlias test
DocumentRoot "c:\wamp64\www"
<Directory "c:\wamp64\www\">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

Instead of:

<VirtualHost *:80>
ServerName test
ServerAlias test
DocumentRoot "c:\wamp64\www\test"
<Directory "c:\wamp64\www\test">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

Options: ReplyQuote
Re: Virtual Host subfolders will not open
Posted by: Otomatic (Moderator)
Date: March 25, 2018 08:16PM

Hi,

It is not difficult though, all relevant explanations are in "notes" on this forum:
The need for Virtual Host and Wampserver 3 - Create or add a VirtualHost

And, icing on the cake, the Right-Click Help button on the Wampmanager icon points to this forum.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Virtual Host subfolders will not open
Posted by: rlmcculley (---.client.mchsi.com)
Date: March 25, 2018 08:51PM

Thank you for your help! It is appreciated -

Options: ReplyQuote


Sorry, only registered users may post in this forum.