Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: Bud on November 20, 2012, 10:23:40 AM

Title: Virtual Link
Post by: Bud on November 20, 2012, 10:23:40 AM
guys please help

i need to create a virtual link and be able to browse to it eg:

will this work
" ln -s /tftpboot/files/shares/http /var/www/html/files "

any help greatly appreciated  :smile:

Title: Re: Virtual Link
Post by: Stefano on November 20, 2012, 10:53:31 AM
will this work
" ln -s /tftpboot/files/shares/http /var/www/html/files "

I guess this is a question..

I answer with another question: did you try? :-)
Title: Re: Virtual Link
Post by: Bud on November 20, 2012, 11:07:33 AM
stefano thanks for the quick reply

yes i have made the symbolic link: " ln -s /tftpboot/files/shares/http /var/www/html/files "

my problem is i am not able to browse to it using either ie or firefox: http://serverip/files

any ideas why??
Title: Re: Virtual Link
Post by: Stefano on November 20, 2012, 11:19:11 AM
stefano thanks for the quick reply

yes i have made the symbolic link: " ln -s /tftpboot/files/shares/http /var/www/html/files "

my problem is i am not able to browse to it using either ie or firefox: http://serverip/files

any ideas why??

well.. maybe I know, but you'd better explain your problem, not your solution
Title: Re: Virtual Link
Post by: Bud on November 20, 2012, 11:38:40 AM
stafano

i am trying to get slax to work on my tftp server ( sme 8 )

i get an error which means that i can't access the 'tftpboot/files/shares/slax/slax' folder.

Slax uses HTTP access to access '/shares/slax/slax/'

it is probably an issue with the apache web server config
Title: Re: Virtual Link
Post by: guest22 on November 20, 2012, 08:33:35 PM
Does the source path have the correct permissions so that apache can read the files within the path?
Title: Re: Virtual Link
Post by: CharlieBrady on November 21, 2012, 04:20:45 AM
i am trying to get slax to work on my tftp server ( sme 8 )

Well, you have confused us already here. SME8 does not include a tftp server. And slax (if google and wikipedia are to be believed) is a linux distribution - it cannot run on SME8.
Title: Re: Virtual Link
Post by: Bud on November 21, 2012, 07:12:18 AM
thanks everyone for your input

i seem to be getting there

i need to know if there is a contrib that i can install so that i can create a group or user that i can give rights to my " /tftpboot/files/shares " folder (sme 8)

all i need is the user to have read rights and be able to use ie / firefox to browse to the folder

if not how do i go about it

any help greatly appreciated  :-)
Title: Re: Virtual Link
Post by: janet on November 21, 2012, 10:59:03 AM
Bud

Quote
....my /tftpboot/files/shares folder (sme 8)
all i need is the user to have read rights and be able to use ie / firefox to browse to the folder

Unless I misunderstand you, it should be as simple as putting this share in an ibay and enable web access in server manager.
Title: Re: Virtual Link
Post by: Bud on November 21, 2012, 01:53:22 PM
mary thanks for your reply

ok so i created a ibay called " shares "
group = everyone
User access via file sharing or user ftp = Write=Admin, Read=Everyone
Public access via web or anonymous ftp = Local Network (No Password Required)
Execution of dynamic content (CGI, PHP, SSI) = Disabled

what symbolic link must i now use in order for me to be able to browse to the " /tftpboot/files/shares " folder using ie or firefox

Title: Re: Virtual Link
Post by: Stefano on November 21, 2012, 03:33:34 PM
Code: [Select]
cd /home/e-smith/files/ibays/shares/html/
rm index.html
ln -s /tftpboot/files/shares/* ./

should work, not tested (I mean, I'm sur it will work, but I don't know/remember if you can browse the folder content)
Title: Re: Virtual Link
Post by: janet on November 22, 2012, 02:35:24 PM
Bud

Quote
i need to know if there is a contrib that i can install so that i can create a group or user that i can give rights to my " /tftpboot/files/shares " folder (sme 8)

Are you referring to the folders installed by this contrib ?
http://wiki.contribs.org/Tftp_server

What is the full path of /tftpboot/files/shares on your server ?

I am thinking/suggesting that you can create an alias by using the 92foo template fragment from here
http://wiki.contribs.org/Web_Application_RPM

and the 80OptDomainfoo template fragment from here
http://wiki.contribs.org/Talk:Web_Application_Redirect_Tutorial
modified accordingly of course, and with appropriate db entries and mysql databases
to create an alias that points at your share folder location.

I tried both those with /opt/foo and /opt/foofoo and they work OK, without disrupting server manager (at least for virtual domains).

Alternatively to the 80OptDomainfoo fragment, you can look at the 20IbayContent template fragment from here
http://wiki.contribs.org/Talk:Web_Application_Redirect_Tutorial