-   Linux - Server (
-   -   linking to an ftp server referentially (

Person_1873 08-18-2009 11:33 AM

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

catkin 08-19-2009 03:58 AM

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?

Person_1873 08-19-2009 06:29 AM

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)

Person_1873 12-17-2009 11:15 AM

bump, seriously is there any way to detect where the machine is being accessed from using HTML or even JavaScript?

estabroo 12-17-2009 05:00 PM

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

Person_1873 12-20-2009 06:58 AM

ok, i'll take a peek at setting up some cgi

All times are GMT -5. The time now is 09:53 PM.