WAMP2.5 in Windows 2012 Server
Posted by: mety (112.198.55.---)
Date: January 11, 2017 08:11AM

I install WAMP2.5 (Apache 2.4.9) in my Windows 2012 R2 Server (IIS Off), and creating a virtual host. When I access localhost/website it smoothly run, but when I access my website on the computer "Connection TIme Out." Below is my httpd-vhosts.conf and host file config


<VirtualHost *:80>
ServerAdmin admin@shc.com.ph
DocumentRoot "c:/wamp/www/"
ServerName shc.com.ph
ServerAlias www.shc.com.ph
ErrorLog "logs/error.log"
CustomLog "logs/access.log" common

<Directory "C:/wamp/www">
Allowoverride All
Require all granted
</Directory>

</VirtualHost>


<VirtualHost *:80>
ServerAdmin admin@shc.com.ph
DocumentRoot "c:/wamp/www/"
ServerName shc.com.ph
ErrorLog "logs/error.log"
CustomLog "logs/access.log" common
<Directory "C:/wamp/www">
Allowoverride All
Require all granted
</Directory>
</VirtualHost>


---------------------------
Host File

127.0.0.1 localhost
127.0.0.1 shc.com.ph
127.0.0.1 localhost
::1 shc.com.ph

When I open the site on my server it works but in other computer "Connection Time Out"

Need your Help

Mety



Edited 2 time(s). Last edit at 01/11/2017 09:03AM by mety.

Options: ReplyQuote
Re: WAMP2.5 in Windows 2012 Server
Posted by: RiggsFolly (Moderator)
Date: January 11, 2017 09:59AM

Hi

Why do you have the same Virtual Host defined twice? Once is enough!

Your HOSTS file should look like this

127.0.0.1 localhost
::1 localhost

127.0.0.1 shc.com.ph
::1 shc.com.ph

---------------------------------------------------------------------------------------------
(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
Re: WAMP2.5 in Windows 2012 Server
Posted by: Otomatic (Moderator)
Date: January 11, 2017 10:22AM

Hi,

> I install WAMP2.5 (Apache 2.4.9)
Why 2.5 and not the last one 3.0.6 ?

The VirtualHost you have defined is the one reserved for localhost. The "c:/wamp/www/" folder is only for localhost. No other files should be placed there. You can only put in other folders.

Your httpd-vhosts.conf file should be something like this:
# Virtual Hosts
#

<VirtualHost *:80>
  ServerName localhost
  ServerAlias localhost
  DocumentRoot c:/wamp/www
  <Directory "c:/wamp/www/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>
#
<VirtualHost *:80>
  ServerName shc.com.ph
	ServerAlias www.shc.com.ph
  ServerAdmin admin@shc.com.ph
  DocumentRoot "c:/wamp/www/mysite"
  <Directory "C:/wamp/www/mysite/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require all granted
  </Directory>
</VirtualHost>
And, to avoid this kind of inconvenience, you should have used the VirtualHost creation tools provided with Wampserver.

You should read or re-read: The need for Virtual Host

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



Edited 1 time(s). Last edit at 01/11/2017 01:48PM by Otomatic.

Options: ReplyQuote
Re: WAMP2.5 in Windows 2012 Server
Posted by: mety (112.198.55.---)
Date: January 12, 2017 02:21AM

Thank you so much sir rigsfolly and otomatic, its solves my problem! Thank you so much!!!!!! Thank you!



Edited 1 time(s). Last edit at 01/12/2017 04:23AM by mety.

Options: ReplyQuote


Sorry, only registered users may post in this forum.