Koozali.org: home of the SME Server

the wordpress rpm and the DocumentRoot

Online stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
the wordpress rpm and the DocumentRoot
« 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
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: the wordpress rpm and the DocumentRoot
« Reply #1 on: November 17, 2015, 09:59:05 PM »
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?

Online stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: the wordpress rpm and the DocumentRoot
« Reply #2 on: November 17, 2015, 10:49:10 PM »
look /etc/e-smith/templates/etc/httpd/conf//httpd.conf/VirtualHosts/20IbayContent the document root is there
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Online stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: the wordpress rpm and the DocumentRoot
« Reply #3 on: November 17, 2015, 11:15:26 PM »
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 ?
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: the wordpress rpm and the DocumentRoot
« Reply #4 on: November 18, 2015, 08:27:00 AM »
That's what I've done with the "WebAppVirtualHost" templates in the webapps contrib (there are also a lot of other settings useful for webapps, not just arbitrary DocumentRoot)
C'est la fin du monde !!! :lol:

Online stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: the wordpress rpm and the DocumentRoot
« Reply #5 on: November 18, 2015, 09:29:56 AM »
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 ?
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: the wordpress rpm and the DocumentRoot
« Reply #6 on: November 18, 2015, 09:37:17 AM »
Open the NFR. As soon as 9.1 is released, we'll be able to merge NFR more easily
C'est la fin du monde !!! :lol: