LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 11:33 AM   #1
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Rep: Reputation: 44
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, 03:58 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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, 06:29 AM   #3
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Original Poster
Rep: Reputation: 44
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, 11:15 AM   #4
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

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

Rep: Reputation: 124Reputation: 124
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, 06:58 AM   #6
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

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


Reply

Tags
ftp, html, http, server, ubuntu



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

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

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