db domains setprop MyDomain.com TemplatePath WebAppVirtualHost RequireSSL enabled
ll /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/
I want to force domains to go to https, as per suggestion in this posthttps://forums.contribs.org/index.php/topic,53045.15.htmlsmeserver-webapps-common is a better option over creating a template.After installing the contrib, I have issued following command:Code: [Select]db domains setprop MyDomain.com TemplatePath WebAppVirtualHost RequireSSL enabledSo now when I go to MyDomain, it is forcing HTTPS, but at the same time, it has changed the location of iBay from MyDomain-iBay to Primary iBay. I have several domains and they all point to different iBays. So basically this contrib rendered Server-Manager Domains option useless as right now any iBay I point to has no effect as it constantly points to Primary iBay.
the behaviour you ask is the default since 2014. if it is not working this way, it is mostly because you have a template-custom hidding the fragment /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent
You are correct, I had a template from How-To I have created back in 2013;https://wiki.contribs.org/Wordpress_MultisiteI have just updated the How-To with updated code.I just need help with question from my earlier post.
db domains delprop MyDomain.com TemplatePath db domains delprop MyDomain2.com TemplatePath db domains delprop MyDomain3.com TemplatePath expand-template /etc/httpd/e-smithservice httpd-e-smith restart
by the way,what is needed exactly in your modified fragment ?
@@ -34,7 +34,7 @@ . "enabled\n" . " # /sbin/e-smith/signal-event console-save\n"; }- $OUT .= " Alias /files $basedir/files\n";+ $OUT .= " # Alias /files $basedir/files\n"; if (($domains->get_prop($virtualHost, 'SystemPrimaryDomain') || 'no') eq 'yes')
cd /home/e-smith/files/ibays/$ibay/htmlshopt -s dotglob nullglobmv files/* ../files/rmdir filesln -s ../files
Code: [Select]db domains delprop MyDomain.com TemplatePath db domains delprop MyDomain2.com TemplatePath db domains delprop MyDomain3.com TemplatePath expand-template /etc/httpd/e-smithservice httpd-e-smith restart
# expand-template /etc/httpd/e-smithERROR: No templates were found for /etc/httpd/e-smith. at /sbin/e-smith/expand-template line 45
"expand-template /etc/httpd/e-smith"Not sure there is such a template "/etc/httpd/e-smith" to expand, hence the error message.I'd expect something like /etc/httpd/conf/httpd.conf or or /etc/httpd/admin-conf/httpd.conf from looking at the templates directory and searching the wiki.
expand-template /etc/httpd/conf/httpd.conf