WAMP server vhosts
Posted by: xRazor (81.198.25.---)
Date: November 29, 2015 11:44PM

Hey.

I as trying to enable vHosts, but there appears to be a problem with some configs.
After enabling vhosts WAMP failed to launch.

So i red abit about the problem and found out that by running httpd.exe i would find whats wrong with them. And i did, but i've no idea how to fix it.


So this is my vHosts config:

<VirtualHost*:80>
ServerName project.dev
DocumentRoot 'c:\wamp\www\project\public'
<Directory 'c:\wamp\www\project\public'>
AllowOverride all
</Directory>
</VirtualHost>


The error message is :

Expected </VirtualHost*:80> but found </VirtualHost>.
There must be syntax error that i can't find.

Thank you.

Options: ReplyQuote
Re: WAMP server vhosts
Posted by: RiggsFolly (---.as43234.net)
Date: November 30, 2015 12:38AM

Hi

You need a space beteween the tag name "VirtualHost" and the parameter "*:80" like this

<VirtualHost *:80>

Also a definition of which IP addresses are allowed to access this Virtual Host shoudl be added

<VirtualHost *:80>
   ServerName project.dev
   DocumentRoot 'c:\wamp\www\project\public'
   <Directory 'c:\wamp\www\project\public'>
      AllowOverride all
      Require local
   </Directory>
</VirtualHost>


See this document for help setting up Virtual Hosts [forum.wampserver.com]

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



Edited 1 time(s). Last edit at 11/30/2015 11:22AM by RiggsFolly.

Options: ReplyQuote
Re: WAMP server vhosts
Posted by: xRazor (81.198.25.---)
Date: November 30, 2015 11:20AM

Oh, i didn't think its space sensitive. Thank you alot!

Options: ReplyQuote
Re: WAMP server vhosts
Posted by: RiggsFolly (---.as43234.net)
Date: November 30, 2015 11:24AM

If you are in any doubt about Apache syntax, you can find the Apache Documentation here

WAMPServer is not a NEW WEB SERVER, it just installs Apache, which is well documented on their own web site.

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