Computing.Net > Forums > Linux > send same file always

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

send same file always

Reply to Message Icon

Name: David
Date: December 3, 2003 at 15:00:57 Pacific
OS: Linux
CPU/Ram: 256/900mhz
Comment:

I have a webserver running on my linux box. I have a text file in the / directory of the server called readme.txt. I want it setup so that no matter what directory the user is in, if they reques the file readme.txt it will send the readme.txt from the server root.

So say they request mywebsite.com/somefolder/anotherfolder/readme.txt
it will send the file
mywebsite.com/readme.txt


Thanks
David



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: December 4, 2003 at 06:02:23 Pacific
Reply:

Dependingg on how many folders you have, you could just create a symbolic link in each one pointing to the file in root.


0

Response Number 2
Name: drake
Date: December 4, 2003 at 11:32:41 Pacific
Reply:

simple add the entry to the users .profile

(note the perios before profile) this is a hidden file in users folders that is checked at logon for commands simply load a script into memory when they logon tell it to check for any change of directory and when it occurs to check the new dir for file existance if not there load from root..... you do this by telling it to use the working dir etc...


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: send same file always

IrDA send files linux xp www.computing.net/answers/linux/irda-send-files-linux-xp/21957.html

ls -a > to file $ ls -al > to end of th www.computing.net/answers/linux/ls-a-to-file-ls-al-to-end-of-th/6612.html

send large file www.computing.net/answers/linux/send-large-file/27344.html