LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 04-26-2011, 04:17 AM   #1
sassy2010
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Rep: Reputation: 0
Apache networking


Hello, I have been studying LAMP for a while now and all my websites are on the localhost. But if i wanted to access my websites from a different computer, how do i access do that? LAMP (192.168.0.2) client (192.168.0.3). Do i need to setup the DNS servers as well in my home network for me to access my intranet (LAMP). Thanks
 
Old 04-26-2011, 05:02 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,973

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Hi,

If you want to access your web server only from one client, there is no need to setup a dns server.
You can either use its IP http://192.168.0.2, or edit the hosts file on the client box and use:
Code:
192.168.0.2 www.mysite.com
Regards
 
Old 04-29-2011, 11:32 AM   #3
sassy2010
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks you very much. It worked.
 
  


Reply

Tags
apache, linux, mysql, network, php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with networking, Apache and otherwise pervasive ignorance. scotthill Linux - Newbie 6 01-02-2009 04:41 AM


All times are GMT -5. The time now is 05:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration