Fedora Linux Support Community & Resources Center
  #1  
Old 31st August 2007, 09:21 AM
arifdayfolks Offline
Registered User
 
Join Date: Aug 2007
Posts: 4
Lightbulb website

Dear all,
i have server running as proxy server and firewall(Fedora 6, IP private : 192.168.0.3, computer name : home) , and i want built website (just access for LAN) , i have already configure apache,php, mysql and it woks, but how to translate address from http://192.168.0.3/ or http://home/ to http://mylocaldomain.local?

thanks
Reply With Quote
  #2  
Old 31st August 2007, 10:42 AM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
Your dns service should supply the name resolution.
Reply With Quote
  #3  
Old 31st August 2007, 03:17 PM
gthill's Avatar
gthill Offline
Registered User
 
Join Date: May 2005
Location: g-land, east java
Age: 49
Posts: 387
Quote:
Originally Posted by arifdayfolks
Dear all,
i have server running as proxy server and firewall(Fedora 6, IP private : 192.168.0.3, computer name : home) , and i want built website (just access for LAN) , i have already configure apache,php, mysql and it woks, but how to translate address from http://192.168.0.3/ or http://home/ to http://mylocaldomain.local?

thanks
On a LAN you need to edit the /etc/hosts file with an alias for the machine that is running apache.
If this is the ipaddress of your webserver and it is repeated on every hosts file on the LAN

192.168.0.3 pc3 anything anyotherthing apachemachine mylocaldomain.local

then by typing any of these into your web browser you should connect to the machine running apache.
http://pc3
http://anything
http://anyotherthing
http://apachemachine
http://mylocaldomain.local


on the local machine, you could type
http://localhost
or
http://localhost.localdomain
as well as the previous five. (All nodes should have identical /etc/hosts files)
which would work as well, that is because of this line

127.0.0.1 localhost.localdomain localhost



I don't think you need dns service running on a LAN , only for WWW
Reply With Quote
  #4  
Old 4th September 2007, 03:08 AM
arifdayfolks Offline
Registered User
 
Join Date: Aug 2007
Posts: 4
i try to edit file etc/hosts , but I still can not browse my website from any computer on LAN , how to resolve this problem with dns




----i'm newbie---
Reply With Quote
  #5  
Old 4th September 2007, 07:45 AM
GrapeShot Offline
Registered User
 
Join Date: Jul 2007
Location: Virginia
Posts: 252
I put together a quick tutorial on setting up a DNS server on F7. You may view it here.

gthill was right in his previous post though. If you LAN is small enough and doesn't change too often, then editing the /etc/hosts (c:\windows\system32\drivers\etc\hosts on Windows) will work well too. Just make sure that each computer has the same entries.

If you decide to run DNS, you will have to point all of the computers on your LAN to the DNS server.
Reply With Quote
  #6  
Old 10th September 2007, 05:49 AM
arifdayfolks Offline
Registered User
 
Join Date: Aug 2007
Posts: 4
Thanks stevea, gthill and grapeshot , i combine all your post, now i can browse myserver from windows client and linux client, my website running well with apache

great tutorial.....!!!
Reply With Quote
Reply

Tags
website

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I set DNS for my website sip Servers & Networking 1 31st August 2007 06:46 PM
Can any website Mr A.Countseuss Using Fedora 1 14th June 2005 11:32 PM
website up...now what derek_lee_alby Servers & Networking 9 6th May 2005 07:20 PM
Looking for website help... HolyLiaison Wibble 6 24th May 2004 09:41 PM


Current GMT-time: 14:04 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat