0

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.

harbii
  • 115
  • 2
  • 8
  • possible duplicate of [How to enable local network users to access my WAMP sites?](http://stackoverflow.com/questions/24005828/how-to-enable-local-network-users-to-access-my-wamp-sites) – Madness Aug 23 '15 at 09:24
  • no it's not duplicate – harbii Aug 23 '15 at 09:44

0 Answers0