Apache 2.4.23 can't reach server with URL from local computer
Posted by: Fritz (---.ias.bredband.telia.com)
Date: January 03, 2017 09:44PM

1 - Windws 10 Pro x64
2 - WAMP 3.06 x64
3 - Apache 2.4.23
4 - 7.0.10
5 - 5.7.14
6 - Green
7 - None active
8 - Yes
9 - Yes
10 - No errormessage
11 - Windows Defender
12 - C:\wamp64
13 -
<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
#

<VirtualHost *:80>
ServerName www.url.com
DocumentRoot c:/www/vhosts/iptv
<Directory "c:/www/vhosts/iptv/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>



I have setup my first Wampserver 3.0.6. Im starting to configuer it but Im having som problems.

This works from a remote device not on my LAN:
Reaching my website from www.url.com

This work from local computer on my LAN
Reaching website from local ip 10.0.0.20

This doesn't work from local computer on my LAN
Reaching website from www.url.com


How do I configure it so that I from any computer on my LAN can reach my website instead of using local ip.



Edited 2 time(s). Last edit at 01/03/2017 09:50PM by Fritz.

Options: ReplyQuote
Re: Apache 2.4.23 can't reach server with URL from local computer
Posted by: RiggsFolly (Moderator)
Date: January 04, 2017 10:00AM

This doesn't work from local computer on my LAN. Reaching website from www.url.com

This is because the other PC on your LAN does not know where to find that domain. It will do its normal process of a DNS lookup and of course it wont find that domain.

On other PC's in your LAN you will have to amend the HOSTS file like this (assuming PC running WAMPServer is on ip address 192.168.1.100)


HOST FILE on other PC's in your LAN

192.168.1.100 url.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-

Options: ReplyQuote


Sorry, only registered users may post in this forum.