Local IP --> URL
Posted by: mozzzg (93.125.20.---)
Date: June 11, 2009 12:06AM

Hi !
I`ve installed this server on my PC, I have a network between houses and everyone has local IP. So when I set "Put Online" everyone from my local network can enter my site by IP. How can I add a redirect to my site but not by IP, by inputing ex. "game.site"

OS Windows 7 x64

Thanks



Edited 1 time(s). Last edit at 06/11/2009 12:07AM by mozzzg.

Options: ReplyQuote
Re: Local IP --> URL
Posted by: yfastud (Moderator)
Date: June 11, 2009 12:58AM


Options: ReplyQuote
Re: Local IP --> URL
Posted by: mozzzg (93.125.20.---)
Date: June 11, 2009 11:15AM

Okay, I`ve followed your url, read about installation about wamp.
But... Does everyone from my network has to write my IP in hosts ?
We have a site, ip 10.220.1.101 and we can enter it by IP or by URL "[legion.aplus.by];, without changing smth in hosts in windows. My IP is e.x. 10.220.4.1, what I have to do for the users to enter my site by inputing "[mozg];

My httpd-vhosts.confNameVirtualHost *:80

<VirtualHost *:80>
ServerName www.mozg.com
ServerAlias mozg.com domain
DocumentRoot C:/wamp/www/mozg
ErrorLog C:/wamp/www/mozg/logs/error.log
CustomLog C:/wamp/www/mozg/logs/access.log common
</VirtualHost>

<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/wamp/www
ErrorLog C:/wamp/www/logs/error.log
CustomLog C:/wamp/www/logs/access.log common
</VirtualHost>

My hosts
127.0.0.1 localhost
127.0.0.1 mozg
10.220.4.1 localhost
10.220.4.1 mozg


What is wrong ? Thanks..



Edited 1 time(s). Last edit at 06/11/2009 11:17AM by mozzzg.

Options: ReplyQuote
Re: Local IP --> URL
Posted by: yfastud (Moderator)
Date: June 11, 2009 01:32PM

you have a little error in vhosts file, check correction below
NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.mozg.com
ServerAlias mozg.com mozg
DocumentRoot C:/wamp/www/mozg
ErrorLog C:/wamp/www/mozg/logs/error.log
CustomLog C:/wamp/www/mozg/logs/access.log common
</VirtualHost>

<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/wamp/www
ErrorLog C:/wamp/www/logs/error.log
CustomLog C:/wamp/www/logs/access.log common
</VirtualHost>

then if you want every1 in your lan access your local site as http:/ /mozg, then you have to input this line in all host files in all pc w/i lan

127.0.0.1 mozg

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Local IP --> URL
Posted by: mozzzg (93.125.20.---)
Date: June 11, 2009 02:36PM

Thanks for the correction.

So there is no way not to change host file in windows dir on other lan PCs ?

Options: ReplyQuote
Re: Local IP --> URL
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: June 11, 2009 03:40PM

if u have it set up somewhere else then ur most likely using iis

microsoft server edition can do this.

Or some routers allow you to set up a url as an ip address..


also
all pcs can be connected using there pc name

so

[HOUSE]

will work on all lan pcs if the pc name is HOUSE..
Obviously you can change the name of the pc to ur website name

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Local IP --> URL
Posted by: mozzzg (93.125.20.---)
Date: June 11, 2009 04:20PM

thanks, shall try PC name

Options: ReplyQuote
Re: Local IP --> URL
Posted by: yfastud (Moderator)
Date: June 11, 2009 05:09PM

it's good to use pc name if and only if you have only 1 site, but if having more than 1 local site, then you have no choice but implement host files in all lan pc, for example

127.0.0.1 site1
127.0.0.1 site2
127.0.0.1 site3

and access them as follows

[site1]
[site2]
[site3]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Local IP --> URL
Posted by: Boulic (65.49.2.---)
Date: June 11, 2009 09:33PM

is it possible to add domain to it using A record

100% Free PHP / MYSQL Web Hosting

Options: ReplyQuote
Re: Local IP --> URL
Posted by: yfastud (Moderator)
Date: June 11, 2009 11:03PM


Options: ReplyQuote
Re: Local IP --> URL
Posted by: mozzzg (---.vpn.aichyna.com)
Date: June 13, 2009 10:55PM

Thanks guyz a lot.

Managed to install the site and access by the same name as the PC, but...
we have different parts of local network:
my PC is 10.220.4.**
so everyone from 10.220.4.** can enter the site by //mozg, but there are another ip`s,
10.220.1.**
10.220.2.**

What am I to write and where to give them access to the site by //mozg
P.S. entering by IP (10.220.4.48) works perfect for 1,2,4, etc.

Options: ReplyQuote
Re: Local IP --> URL
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: June 14, 2009 12:05AM

they will all need to be on the same work group in windows...

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Local IP --> URL
Posted by: mozzzg (---.vpn.aichyna.com)
Date: June 14, 2009 02:48PM

oh, thanks, shall try
ps.. had forgotten to change the workgroup after windows install.. smiling smiley


Still no effect ? maybe smth wrong in hosts ?
What am i to put there if my ip is 10.220.4.48 ?



Edited 2 time(s). Last edit at 06/14/2009 03:07PM by mozzzg.

Options: ReplyQuote
Re: Local IP --> URL
Posted by: mozzzg (---.vpn.aichyna.com)
Date: June 16, 2009 02:45PM

hey, no ideas ?

Options: ReplyQuote


Sorry, only registered users may post in this forum.