Koozali.org: home of the SME Server

Virtual Link

Offline Bud

  • *
  • 487
  • +0/-0
Virtual Link
« 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:


Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Virtual Link
« Reply #1 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? :-)

Offline Bud

  • *
  • 487
  • +0/-0
Re: Virtual Link
« Reply #2 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??

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Virtual Link
« Reply #3 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

Offline Bud

  • *
  • 487
  • +0/-0
Re: Virtual Link
« Reply #4 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

guest22

Re: Virtual Link
« Reply #5 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?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Virtual Link
« Reply #6 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.

Offline Bud

  • *
  • 487
  • +0/-0
Re: Virtual Link
« Reply #7 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  :-)

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Virtual Link
« Reply #8 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.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Bud

  • *
  • 487
  • +0/-0
Re: Virtual Link
« Reply #9 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


Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Virtual Link
« Reply #10 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)

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Virtual Link
« Reply #11 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
« Last Edit: November 22, 2012, 02:53:04 PM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.