Koozali.org: home of the SME Server

Obsolete Releases => SME 8.x Contribs => Topic started by: guest22 on August 26, 2012, 04:15:17 PM

Title: [SharedFolders] domain name pointing to share
Post by: guest22 on August 26, 2012, 04:15:17 PM
Daniel and team,

how difficult/complicated would it be to have a domain (e.g. share.mydomain.com) point to the share?

In the server manager I can point to any ibay, but not SharedFolders

TIA
guest
Title: Re: [SharedFolders] domain name pointing to share
Post by: Daniel B. on August 26, 2012, 05:47:05 PM
Hi.

It would be quite easy, just a small patch for e-smith-domains, i'm just not sure it would be accepted because it would modify a core package just for a contrib, wihch isn't installed everywhere.
Anyway, it's possible to make a domain pointing on a shared folders, here's what what I do:

- install smeserver-webapps-common from the fws repo (see http://wiki.contribs.org/Fws)
- Create a domain from the server-manager (you can choose any ibay you want)
- Configure the newly created domain to point to the share you want like this
Code: [Select]
db domains setprop my.domain.com TemplatePath WebAppVirtualHost DocumentRoot /home/e-smith/files/shares/my_share/files
signal-event webapps-update

Regards, Daniel
Title: Re: [SharedFolders] domain name pointing to share
Post by: guest22 on August 26, 2012, 07:30:30 PM
Daniel,

works exactly as you have explained above. Webdav clients can now access 'share.mydomain.com'

Merci bien!
guest

[SME8 full yum update august 26th, 2012]
Title: Re: [SharedFolders] domain name pointing to share
Post by: guest22 on August 29, 2012, 06:01:15 AM
Daniel,

I've created a sub-domain (mail.mydomain.com) and through you contrib smeserver-webapps-common pointed a webapp to this sub-domain. However, where the webapp normally is https access only, now it is http accessible. How can I enforce httpS for this webapp please?

TIA
guest
Title: Re: [SharedFolders] domain name pointing to share
Post by: Daniel B. on August 29, 2012, 08:48:25 AM
Yep, you just have to add:

Code: [Select]
db domains setprop mail.mydomain.com RequireSSL yes
signal-event webapps-update

There's some other options for each domain (like proxypass, rewriterules, access restriction etc...), you can take a look at this template: /etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/50Content

Regards, Daniel
Title: Re: [SharedFolders] domain name pointing to share
Post by: guest22 on August 29, 2012, 10:52:15 AM
Daniel,

simply works. Thanks!

guest
Title: Re: [SharedFolders] domain name pointing to share
Post by: Stefano on August 29, 2012, 10:55:27 AM
Code: [Select]
db domains setprop my.domain.com TemplatePath WebAppVirtualHost DocumentRoot /home/e-smith/files/shares/my_share/files
signal-event webapps-update

just a question..
will it work for /opt/mypath too?

TIA
Title: Re: [SharedFolders] domain name pointing to share
Post by: Daniel B. on August 29, 2012, 10:57:25 AM
Yep, it'll work for any path, as long as www has read access
Title: Re: [SharedFolders] domain name pointing to share
Post by: Stefano on August 29, 2012, 11:03:15 AM
thank you
Title: Re: [SharedFolders] domain name pointing to share
Post by: focfree on August 29, 2012, 11:52:58 AM
hi Daniel,

1. BTW, is Ajaxplorer required to be installed for all these to work?
2. Is Encryption option available if using /opt/myshare

3. I read about this contrib http://wiki.contribs.org/Mount_Network_Shares
and intend to test it out soon. But before that I was wondering, if your new stuff will also work with NAS on the same LAN with a SME8.0 box, i.e. 1 NAS for 1 domain.
4. Is Encryption option available for NAS "shared-folders"

Would love to test it out. 

TYVVM
Title: Re: [SharedFolders] domain name pointing to share
Post by: Daniel B. on August 29, 2012, 11:58:29 AM
1. BTW, is Ajaxplorer required to be installed for all these to work?
Nop, Ajaxplorer is optional
Quote from: focfree
2. Is Encryption option available if using /opt/myshare
Nop, encryption will only work for shared folders (stored in /home/e-smith/files/shares/xxx/)

Quote from: focfree
3. I read about this contrib http://wiki.contribs.org/Mount_Network_Shares
and intend to test it out soon. But before that I was wondering, if your new stuff will also work with NAS on the same LAN with a SME8.0 box, i.e. 1 NAS for 1 domain.
I never tested that. For shared folders, the underlying file system must support posix ACL (setfacl/getfacl).

Quote from: focfree
4. Is Encryption option available for NAS "shared-folders"
Not tested, but might work, I really don't know