Virtual Host won't use directory
Posted by: BurkeKnight (---.res.bhn.net)
Date: July 12, 2015 03:21AM

I set up WAMP and set up to do Virtual Hosts, following:
[forum.wampserver.com]

My info:
Windows 7 - 64 Bit
WampServer Version 2.5 - 64 Bit
Apache 2.4.9
PHP 5.5.12
MySQL 5.6.17

Now, I set up my VH, and when go to the URL, it uses the same files as localhost does, and not the files I put into the directory for the VH.

httpd-vhosts.conf
<VirtualHost *:80>
     DocumentRoot "f:/wamp/www"
     ServerName localhost
     ServerAlias localhost
     <Directory  "f:/wamp/www">
        AllowOverride All
 		Require local
     </Directory>
 </VirtualHost>
 
<VirtualHost *:80>
    ServerAdmin emailaddress@domain.com
    DocumentRoot "F:/wamp/www/burke"
    ServerName burke
      <Directory  "f:/wamp/www/burke">
        AllowOverride All
 		Require local
     </Directory>
</VirtualHost>

hosts file:
127.0.0.1       localhost
127.0.0.1 burke

 ::1 localhost
 ::1 burke

EDIT:

After rebooting my PC, the icon will not go green.
I had not changed anything, so no idea why it will not work at all now.

Did the command propt to check for errors, and got Syntax Ok

EDIT 2:

Found that issue... Skype is using port 80, also, have to shut it off, then start it, after start WAMP services.

Can WAMP be set to any other port than 80?

Windows 7 - 64 Bit | WampServer Version 2.5 - 64 Bit
Apache 2.4.9 | PHP 5.5.12 | MySQL 5.6.17



Edited 2 time(s). Last edit at 07/12/2015 06:17AM by BurkeKnight.

Options: ReplyQuote
Re: Virtual Host won't use directory
Posted by: RiggsFolly (---.as43234.net)
Date: July 12, 2015 09:15PM

Yes but for many reasons its better to chnage the port that SKYPE uses.

How to Configure SKYPE so it does not require port 80 or 443

Run SKYPE
then using the menus do this:

Tools -> Options -> Advanced -> Connection

Un-Check the checkbox next to 'Use port 80 and 443 as alternatives for incomming connections'

Now restart SKYPE for these changes to take effect.


If you are running Windows 8 SKYPE comes as an app and this cannot ( as yet ) be configured in this way.
However if you uninstall the SKYPE app and install SKYPE in the old way, you can reconfigure it, and it works just as well.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.