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

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.3 32 bit - Apache 2.4.34 - PHP 7.2.8/7.1.20/7.0.31/5.6.37 - MySQL 5.7.23 - MariaDB 10.3.8
Wampserver 3.1.3 64 bit - Apache 2.4.34 - PHP 7.2.8/7.1.20/7.0.31/5.6.37 - MySQL 5.7.23 - MariaDB 10.3.8
PhPMyadmin 4.8.2 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

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

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.3 32 bit - Apache 2.4.34 - PHP 7.2.8/7.1.20/7.0.31/5.6.37 - MySQL 5.7.23 - MariaDB 10.3.8
Wampserver 3.1.3 64 bit - Apache 2.4.34 - PHP 7.2.8/7.1.20/7.0.31/5.6.37 - MySQL 5.7.23 - MariaDB 10.3.8
PhPMyadmin 4.8.2 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

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.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.3 32 bit - Apache 2.4.34 - PHP 7.2.8/7.1.20/7.0.31/5.6.37 - MySQL 5.7.23 - MariaDB 10.3.8
Wampserver 3.1.3 64 bit - Apache 2.4.34 - PHP 7.2.8/7.1.20/7.0.31/5.6.37 - MySQL 5.7.23 - MariaDB 10.3.8
PhPMyadmin 4.8.2 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

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.