VirtualHost errors
Posted by: flutschit (---.ftth.telfortglasvezel.nl)
Date: April 04, 2016 06:21PM

1 - Windows version used (Specify version number AND whether 32 or 64 bit) - Window 7 64 bit
2 - Version WampServer (Specify version number AND whether 32 or 64 bit) – Wamp 3 64 bit
3 - Apache Version – 2,4.17
4 - PHP Version – 5.6.16 ( I see in Wampserver also that I can use 7.0.0??)
5 - MySQL Version – 5.7.9
6 - What color is the WampServer icon (in the notification area of the taskbar) - Green


My I just aks 1 question, becaus i had excatly the same error

1) what, if we want a pc from outside my local network??

I found this sample on [httpd.apache.org]

-> Listen 80
Listen 8080

<VirtualHost 172.20.30.40:80>
ServerName www.example.com
DocumentRoot "/www/domain-80"
</VirtualHost>

<VirtualHost 172.20.30.40:8080>
ServerName www.example.com
DocumentRoot "/www/domain-8080"
</VirtualHost>

<VirtualHost 172.20.30.40:80>
ServerName www.example.org
DocumentRoot "/www/otherdomain-80"
</VirtualHost>

<VirtualHost 172.20.30.40:8080>
ServerName www.example.org
DocumentRoot "/www/otherdomain-8080"
</VirtualHost>

My httpd-vhost file was:
# wamp64
<VirtualHost *:8080>
DocumentRoot "C:/wamp64/www"
ServerName localhost
ServerAlias localhost.com www.localhost.com
<Directory "C:/wamp64/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
# Require all granted
</Directory>
</VirtualHost>

# cm2rc.local
<VirtualHost *:8080>
# *:8080>
DocumentRoot "g:/sitefolder/cm2rc"
ServerName www.cm2rc.local
<Directory "/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
# Require local
# Order allow,deny
# Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:8081>
DocumentRoot "g:/sitefolder/cm2rc"
ServerName www.cm2rc.local2
<Directory "/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
# Require local
# Order allow,deny
# Allow from all
</Directory>
</VirtualHost>

Please, I'm greener than green winking smiley



Edited 1 time(s). Last edit at 04/04/2016 06:38PM by Otomatic.

Options: ReplyQuote
Re: VirtualHost errors
Posted by: RiggsFolly (Moderator)
Date: April 04, 2016 09:54PM

Hi,

please specify exactly what you are trying to do

---------------------------------------------------------------------------------------------
(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.