Koozali.org: home of the SME Server
Contribs.org Forums => Development => Topic started by: stephdl on November 17, 2015, 09:39:43 PM
-
Hi
I would try to change the document root of the contrib wordpress to use a full domain (http://example.com) instead of a folder (http://example.com/wordpress). I went to read the code of the VirtualHosts but of course the DocumentRoot is set to the Ibay that you choose in the panel for the content of your domain....no possibility to change the DocumentRoot to /usr/share/wordpress
In ideal I want to use all fragment of templates in /etc/e-smith/templates/etc/httpd/conf//httpd.conf/VirtualHosts/ since a lot of contribs have code there....therefore I imagine it is a mandatory for the domain I want to use.
if you have ideas...it is nice
-
I have no possibility to check now but, which is the template fragment where documentroot is defined?
what about a db property in each ibay definition? default is empty -> use the default one
am I missing anything?
-
look /etc/e-smith/templates/etc/httpd/conf//httpd.conf/VirtualHosts/20IbayContent the document root is there
-
Indeed the easy way for me could be to create a property DocumentRoot under the domain key, if the property exists then the document root is no more pointed to the Ibay, but to the property value.
do I'm dreaming ?
-
That's what I've done with the "WebAppVirtualHost" templates in the webapps (http://wiki.contribs.org/Webapps-common) contrib (there are also a lot of other settings useful for webapps, not just arbitrary DocumentRoot)
-
I believed that the only limitation of sharedfolder was that you cannot host a website directly under a domain name, due to some core package that need to be modified......but yes I agree...I asked during the sme9 creation time to drop Ibays and use only the shared folder but .... nobody listened me :(
do I have any chance to have a NFR accepted on the e-smith-apache rpm ?
-
Open the NFR. As soon as 9.1 is released, we'll be able to merge NFR more easily