LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-20-2004, 03:49 PM   #1
GoTrolling
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 09:19 PM.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:29 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