Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-20-2004, 02:49 PM   #1
LQ Newbie
Registered: Oct 2003
Distribution: Redhat 9.0
Posts: 9

Rep: Reputation: 0
Accessing web pages from Internet and intranet

Another question from a new linux user!

Not sure exactly how to phrase this but here goes. I have set up an Apache server along with a MySQL data base. I am using perl to generate some dynamic web pages. I want to access the pages from both the Web as well as a LAN that the server is on. The server is the only Linux box on the LAN. I have both static HTML pages as well as the dynamic pages. The router I have does not support loopback NATing.

If I use the same webpages for both local and Web access they do not work properly because of the links. (ie if I provide a local link they do not work for the web and vice versa). I guess I could create two different pages to basically do the same function but this does not seem to be the correct solution, just a work around.

My question: What is the proper way to resolve this? Is this a job for DNS? Is there a way in Perl to check for an outside IP address and return the link correctly? If this is the way to go I will dynamically create all of the web pages. Any suggestions would be helpful. Thanks.

Last edited by GoTrolling; 01-20-2004 at 08:19 PM.


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
Apache doesn't like internet connections, allows intranet Eyaw_Nayr Linux - Networking 3 08-24-2004 07:32 AM
Apache doesn't like internet connections, allows intranet Eyaw_Nayr Linux - Software 1 08-20-2004 05:17 PM
can not remote to server (neither intranet or internet) aardvark667 Linux - Newbie 2 04-12-2004 01:13 PM
Postfix intranet/internet outlook starswalker Linux - Networking 0 07-18-2003 06:49 AM
Intranet computers cannot see internet (need immediate help) arobinson74 Linux - Networking 3 04-01-2003 09:24 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration