How to host a text file in httpd

Post new topic   Reply to topic    DD-WRT Forum Index -> Generic Questions
Author Message
tosiara
DD-WRT User


Joined: 20 Dec 2011
Posts: 100

PostPosted: Thu Nov 13, 2014 12:56    Post subject: How to host a text file in httpd Reply with quote
Hi,

is there an easy way to host a TXT file on the built-in web server httpd? So everyone on LAN can access that file without authentication, like this:

http://dd-wrt/file.txt

Thanks
Sponsor
tosiara
DD-WRT User


Joined: 20 Dec 2011
Posts: 100

PostPosted: Sun Nov 30, 2014 7:19    Post subject: Reply with quote
Here how I do that:

1. create startup script:

Code:
echo 123 > /tmp/myfile.txt


2. symlink file into /www/user
Code:

ln -s /tmp/myfile.txt /www/user/myfile.htm


3. now you can access file as http://ddwrt/user/myfile.htm

Source:

http://www.dd-wrt.com/wiki/index.php/WEB_server

Quote:
Under v24-preSP2 it is possible to serve static HTML pages using the existing web server by symlinking them into the www/user directory.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Generic Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum