D-Link Forums
The Graveyard - Products No Longer Supported => D-Link Storage => DNS-323 => Topic started by: tnsage on December 16, 2010, 05:38:28 AM
-
Once more I plague this site and ask for help
I do realise that I have managed to fix my previous 2 posts myself, but this time I have tried and do not want to screw up my box
I have Lighttpd running fine and dandy on Port 8080, I may change it to 80 later on.
I want to add some paths to the web server
for instance ***.***.*.** is my IP address
***.***.*.**:8080/Installs to reach my installs packages, with read only perms, or read write.
I guess it is simple, but I am unsure
Regards
Tim
Loving this little black box
-
The keyword is "alias". Use this in the lighttpd.conf and you can route any folder of the NAS into your webserver.
But - for the sake of access and r/w protection, you might need username and PW protection. For that, check google for ".htaccess".
//HSishi
-
I can not find an "alias" section in my config file.
Also I have looked on several sites, and the usages of alias are simply gobledygook
do I need to create a section called "alias
Another site says I have to have a mod_alias added to the mods section.
I am reluctant to mess around with advice that seems vague as I do not want to crash my little box
My web root structure is this
server.document-root = "/mnt/HD_a2/WWW/pages/"
I want to add
what should go here = "/mnt/HD_a2/WWW/pages/Installs"
Using ftp the actual location is installs is /Volume_1/Share/Installs
I map this as S: at the mo but want to loose the map in preference of the web server
Love Unix, but IIs is a doddle
Tim
-
Not too sure what you are trying to do, but any subdiretories that you create in the www root location will be accessible on the URL.
So, if you create a path "/mnt/HD_a2/WWW/pages/Installs" and put files in there, it should be [ip address]:8080/installs/[filename]
However, it sounds like you actually want to to point to a different location. You could create a shortcut in /mnt/HD_a2/WWW/pages called "installs" that points to /mnt/HD_a2/Share/Installs (?)
Alternatively, you can create an alias to do the same thing
alias.url = ( "/installs/" => "/mnt/HD_a2/Share/Installs /" )
-
OK I copied
alias.url = ( "/installs/" => "/mnt/HD_a2/Share/Installs /" )
exactly as you typed it
I put it 1 line below server.document-root in the lighttpd.conf file
when I type in the address to the box http://storage:8080/installs/
Google Chrome gives me an oops page not found
where am I going wrong, are there some lines I need to un-comment to activate this
Regards
Tim
-
Do you have any files in that directory? index.html for example? Try specifying a file name.
-
Directory browsing is on by default, and there are 20 gigs of files
Regards
Tim
Confused.com
-
You must also activate the "alias" module in the lighttpd.conf file. Check the "server modules" list for a line
# "mod_alias",
and remove the "#".
After this, you can add several lines like the form
alias.url = ( "/sharename/" => "/path/" )
for example
alias.url = ( "/music/" => "/mnt/HD_b2/home/media/" )
would make the folder "/home/media/ on the HD in the left (!) bay accessible via
http://[adress]/music
After you have done all modifications to the lighttpd.conf, you need to restart the lighttpd:
cd /ffp/start
sh lighttpd.sh restart
//HSishi
-
Thanks a million
Looks like what I am looking for.
Will try this in the morning and let you know.
Regards
Tim
-
Woooooooo HOOOOOOOOOooooooooooooo
Guess I am a sado, but these things make me a happy bunny
All working now
Regards
Tim
;D ;D ;D ;D ;D ;D ;D ;D