Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-28-2009, 05:49 AM   #1
Registered: May 2009
Location: chennai
Posts: 247

Rep: Reputation: 16
webserver doubt

Hai friends

I have one problem in my webserver. i have two web server one is real time webserver next testing webserver. both are same.
testing server connected locally. today i download all website files from my realtime server to my testing server locally connected. configure httpd. service httpd started successfully.
when i give my local ipaddess like then my website homepage work. after that i click anything on that site it directly goes to my real time server that means first homepage worked local ipaddress other links on the same site will open from my public webserver . please advice me. how to open all files , images and link everything open private or locally.

Old 11-28-2009, 06:05 AM   #2
Registered: Nov 2009
Location: Kolkata, India
Distribution: Fedora 11
Posts: 136

Rep: Reputation: 22
The hyperlinks in the pages is probably referencing the public server. You can try this:

As superuser open /etc/hosts

Add a line: [domain name or ip of your public site]

save and exit

See if that works.

Old 11-28-2009, 12:05 PM   #3
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
It sounds like you have the FQDN of the public server embedded into your test site. You've got a couple of options. The easiest is to probably modify the hosts file on your client when you need to test. You could also redesign your site to use relative paths in the links or to read the server name from a config file.


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
doubt ? ashintoms Linux - Networking 1 07-24-2006 01:05 PM
A doubt !!! gabsik Linux - Networking 1 07-20-2006 01:54 PM
Doubt in C++ zeropash Programming 1 07-05-2005 01:33 PM
Can't see WebServer from outside... Can see WebServer locally as http://localhost friddick Linux - Networking 13 08-19-2003 07:27 PM
DOUBT .- jordomi Linux - Distributions 2 08-23-2000 07:53 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:20 PM.

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