LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-15-2008, 05:44 AM   #1
Libertes
Member
 
Registered: Jan 2007
Posts: 86

Rep: Reputation: 16
How to access local web server?


Hi,
Fine things :

-my computer is 192.168.1.10

-I have a Centos Apache+MySql+Webmin+VirtualminGPL at a local computer 192.168.1.20
(connects to internet, virtualdomainnames work,every virtualname(domainname) is reachable from internet)

-router modem is 192.168.1.1
(connects to internet, connects to ssh,webmin at 192.168.1.20)


Bad things :

- I cannot open http://localhost at 192.168.1.20 !?

- I can open Webmin http://localhost:10000 at 192.168.1.20

- When i am at my computer (192.168.1.10) when i write (192.168.1.20) default page of root Virtual server page opens.

How can i reach one/any of the Virtual domain names via firefox at local network(at 192.168.1.10)?

I always log to webserver(192.168.1.20) from internet. To make things faster and safer i wanna log in to webserver from my computer (192.168.1.10)
 
Old 04-15-2008, 06:52 AM   #2
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 40
I think that you have configured your Apache vhost name-based. That means, that your Apache listens to the name you gave your vhost. To access this vhost you may add the name of your vhost in /etc/hosts together with the associated ip address:

Code:
127.0.0.1      your-webserver.com
Code:
# links http://your-webserver.com
 
Old 04-15-2008, 07:11 AM   #3
Libertes
Member
 
Registered: Jan 2007
Posts: 86

Original Poster
Rep: Reputation: 16
yes it is a name-based.

here is my new /etc/hosts file
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost localhost.mydomainname.com mydomainname.com
::1 localhost6.localdomain6 localhost6
192.168.1.20 localhost.localdomain localhost localhost.mydomainname.com

But this did not changed anything!?
 
  


Reply


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
Setting up Ubuntu LAMP Server for local web server sewmyheadon Linux - Newbie 5 02-11-2007 02:06 PM
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 10:30 PM
Local webserver -- How to deny all client install their local web server--Please help b:z Linux - Networking 13 04-16-2005 07:11 PM
Local Web Server amdawi Linux - Networking 15 09-30-2003 04:25 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:09 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration