not working on LAN
Posted by: jjiruse (---.kvetakov.net)
Date: June 20, 2013 08:19PM

Hello, I have 2 PC.

PC ONE: instaled WAMP
Status online

hosts:
127.0.0.1 testt.com
127.0.0.1 testt2.com

httpd.conf
Listen 80
Listen 8081
Listen 192.168.0.100:8081


in browser testt.com and I see my test page.

PC TWO:
hosts:
192.168.0.100:8081 testt.com

in browser testt.com and I do not see my page but!
I use in browser 192.168.0.100:8081 a I see Wampserver homepage from PC ONE.
Server Configuration

Apache Version :
2.4.2
PHP Version :
5.4.3

Please why not working testt.com ?

Options: ReplyQuote
Re: not working on LAN
Posted by: RiggsFolly (---.as13285.net)
Date: June 21, 2013 10:11AM

Are your 2 sites testt.com and testt2.com setup as virtual hosts?

Options: ReplyQuote
Re: not working on LAN
Posted by: jjiruse (---.kvetakov.net)
Date: June 21, 2013 10:59AM

Yes. On the PC ONE it works. not on PC TWO.

Options: ReplyQuote
Re: not working on LAN
Posted by: RiggsFolly (---.as13285.net)
Date: June 21, 2013 11:20AM

Show me the Virtual hosts definitions, you can send them as Private Message if you dont want the world to see.

Options: ReplyQuote
Re: not working on LAN
Posted by: jjiruse (---.kvetakov.net)
Date: June 21, 2013 12:11PM

You want?

httpd.conf

#
NameVirtualHost *:80
#
<VirtualHost *:80>
DocumentRoot "c:/apache/www/"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/apache/www/t1/"
ServerName testt.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/apache/www/t2/"
ServerName testt2.com
</VirtualHost>


thx JJ

Options: ReplyQuote
Re: not working on LAN
Posted by: RiggsFolly (---.as13285.net)
Date: June 21, 2013 12:29PM

<VirtualHost *:80>
DocumentRoot "c:/apache/www"
ServerName localhost
<Directory "c:/apache/www/">
Order Deny,Allow
Allow from 127.0.0.1
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "c:/apache/www/t1"
ServerName testt.com
<Directory "c:/apache/www/t1">
Order Deny,Allow
Allow from 127.0.0.1
Allow from 192.168.0
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "c:/apache/www/t2"
ServerName testt2.com
Order Deny,Allow
Allow from 127.0.0.1
Allow from 192.168.0
</VirtualHost>

You have to setup the security on each VHOST manually now as the folders they live in are no longer in the default wamp folder structure.

Using Allow from 192.168.0 will alow any PC on that subnet access to the wamp server, or you can be specific if you want and use Allow from 192.168.0.101



You can set WAMP offline now as .

The reason you got to the wamp homepage is that the first vhost mentions is considered the default if apache cannot find the site requested.

You can remove all the Listen statements other than Listen 80

the hosts file on PC2 should look like this

192.168.0.100 testt.com
192.168.0.100 testt2.com

Port number used in here have no effect at all and may actually cause the line to be ignored as an error.

Options: ReplyQuote
Re: not working on LAN
Posted by: jjiruse (---.kvetakov.net)
Date: June 21, 2013 12:40PM

Thanks, I will write on Monday.

Options: ReplyQuote
Re: not working on LAN
Posted by: jjiruse (---.kvetakov.net)
Date: June 25, 2013 06:59PM

hi, sorry for delay.

this is error:
<VirtualHost *:80>
DocumentRoot "c:/apache/www/t2"
ServerName testt2.com
Order Deny,Allow
Allow from 127.0.0.1
Allow from 192.168.0
</VirtualHost>

never mind.

I use

<VirtualHost *:80>
DocumentRoot "c:/apache/www/t1"
ServerName testt.com
<Directory "c:/apache/www/t1">
Order Deny,Allow
Allow from 127.0.0.1
Allow from 192.168.0
</Directory>
</VirtualHost>

on PC 2: hosts: 192.168.0.100 testt.com

and same problem sad smiley


I see only on PC 2 my site on [192.168.0.100]
I need to use domain.

thanks

Options: ReplyQuote
Re: not working on LAN
Posted by: RiggsFolly (---.as13285.net)
Date: June 26, 2013 01:54AM

Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 192.168.0

Options: ReplyQuote
Re: not working on LAN
Posted by: jjiruse (---.kvetakov.net)
Date: June 30, 2013 09:48AM

it, and turn off the firewall helped
thx

Options: ReplyQuote


Sorry, only registered users may post in this forum.