I have to open my web page in my local network using vhost.
SERVER PC httpd-vhosta.conf file:
<VirtualHost *:80>
ServerName test.tomka
ServerAlias test.tomka
DocumentRoot C:/wamp/www/a
<Directory "C:/wamp/www/a">
Options Indexes FollowSymLinks MultiViews
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
hosts file:
127.0.0.1 test.tomka
httpd.conf
Listen 0.0.0.0:80
Listen [::0]:80
Listen 80
ServerName localhost:80
HostnameLookups Off
<Directory />
AllowOverride none
Require all granted
Require ip 192.168.13
Require ip 192.168.0
</Directory>
<Directory "c:/wamp/www/">
Options Indexes FollowSymLinks
AllowOverride all
Require local
Require ip 192.168.13
Require ip 192.168.0
</Directory>
Client PC hosts file:
192.168.0.150 test.tomka
(this is server IP
)
I can open web page using IP Address but when I use test.tomka web page doesn't open.