LinuxQuestions.org
Help answer threads with 0 replies.
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 08-18-2009, 12:33 PM   #1
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Arch Linux
Posts: 489

Rep: Reputation: 39
linking to an ftp server referentially


hi, i have an ubuntu server set up, it's functioning as an FTP and an HTTP server.

now i use the HTTP server both within my LAN and over the WAN, i presently have 2 different links to my FTP functionality, both lead to the same place but each one only works depending on which side of my router you're accessing the page from.

could anyone help me set the <a href=""> tag to be able to refer to the server with a single link no matter where i am? remembering that this is a single machine
 
Old 08-19-2009, 04:58 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
How about leaving the <a href=""> tag as it is and having a name resolution system on the LAN that resolves the DNS name to a local IP address for LAN users? dnsmasq?
 
Old 08-19-2009, 07:29 AM   #3
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Arch Linux
Posts: 489

Original Poster
Rep: Reputation: 39
i already do, but the problem is that all other sites at the same domain would not display if i do that, what i need to know is how to make the link know where it's being accessed from (sort of)
 
Old 12-17-2009, 12:15 PM   #4
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Arch Linux
Posts: 489

Original Poster
Rep: Reputation: 39
bump, seriously is there any way to detect where the machine is being accessed from using HTML or even JavaScript?
 
Old 12-17-2009, 06:00 PM   #5
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,095
Blog Entries: 2

Rep: Reputation: 111Reputation: 111
well if you are using cgi you should get a client ip as one of the env vars and if its a local one feed up a page that has local links, and vice versa
 
Old 12-20-2009, 07:58 AM   #6
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Arch Linux
Posts: 489

Original Poster
Rep: Reputation: 39
ok, i'll take a peek at setting up some cgi
 
  


Reply

Tags
ftp, html, http, server, ubuntu


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
Linking a directory for ftp user riemann_noodles Slackware 3 11-15-2006 12:15 AM
Problem in using both load time linking and runtime linking durgaprasad_j Linux - General 0 08-01-2006 04:49 AM
Open VPN - Linking Client to Server elliotfuller Linux - Networking 0 03-01-2006 09:01 AM
How do I block referrers that are linking to my server? needforspeed Linux - Software 1 07-05-2005 09:01 PM
Linking files for ftp users to download AngryKeebler Linux - Newbie 6 09-01-2004 01:08 PM


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