incase you have multiple LAN devices now or in the future the code would be better as
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 192
and secondly this will now break the ability for anyone else to use the ONLINE/OFFLINE Function on the menu.
so to correctly set this up so that wamp works on LAN when offline and WAN when online..
1.turn Wamp Online ( left click wamp> put ONLINE )
*this is REALLY IMPORTANT*2. open c:\wamp\scripts\onlineoffline.php
3. Replace
$offlineText = "# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1";
with
$offlineText = "# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from localhost 127.0.0.1 192";
4. Save the file.
5.
Right click wamp tray menu > REFRESH
6. Left click wamp tray menu > Put Offline
@docus Since you already made a change, you cant follow these steps because when wamp does the search replace for the code, your code will get messed up. so you should match the $offline var in the onlineoffline.php with the code you have in the httpd.conf, of course thats only if you want to use online in the future
Steven Martin
stevenmartin99@gmail.comstevenmartin99@hotmail.comPampServer.com - [
pampserver.com]
Edited 3 time(s). Last edit at 01/27/2013 11:34AM by stevenmartin99.