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
-
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
-
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
db domains setprop my.domain.com TemplatePath WebAppVirtualHost DocumentRoot /home/e-smith/files/shares/my_share/files
signal-event webapps-update
Regards, Daniel
-
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]
-
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
-
Yep, you just have to add:
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
-
Daniel,
simply works. Thanks!
guest
-
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
-
Yep, it'll work for any path, as long as www has read access
-
thank you
-
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
-
1. BTW, is Ajaxplorer required to be installed for all these to work?
Nop, Ajaxplorer is optional
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/)
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).
4. Is Encryption option available for NAS "shared-folders"
Not tested, but might work, I really don't know