Create Server Alias for LAN
Posted by: DaemonHK (---.88.100.247.megaline.telecom.kz)
Date: April 19, 2019 05:42AM

Hello!

I have try add a Server Name for LAN in our company, but site from my ip can't show (ping is ok). So, what is my mistakes?

httpd-vhosts.conf

<VirtualHost *:80>
ServerName sitename
ServerAlias 192.168.1.30
DocumentRoot "c:/wamp64/www/projects/sitename"
<Directory "c:/wamp64/www/projects/sitename/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Allow from all
Require all granted
Require local
Require ip 192.168.1
</Directory>
</VirtualHost>

hosts

192.168.1.30 sitename
127.0.0.1 sitename
::1 sitename

httpd.conf

Listen *:80
ServerName 192.168.1.30:80


P.S. If I try open [192.168.1.30] from my computer I see my site, but not from LAN



Edited 1 time(s). Last edit at 04/19/2019 05:48AM by DaemonHK.

Options: ReplyQuote


Sorry, only registered users may post in this forum.