Modify root directory on nginx server

Discussion in 'Tips/Tricks/Mods' started by Abdelkarim Mateos, May 9, 2017.

  1. Abdelkarim Mateos

    Abdelkarim Mateos New Member

    Hi.

    I read old post such,[NGINX] root directive about modify document root
    On my site option I've
    server {##merge##
    root {DOCROOT}/test;
    }

    location @php { ##merge##
    fastcgi_param MAGE_RUN_TYPE 'website';
    fastcgi_param MAGE_RUN_CODE 'lenceriaonline';
    }
    But this tip not work. Only work tip for location. If put two merge fails, and ISPConfig generate vhosts.err

    I'm desesperate because, on other server with Apache & ISPConfig I not problem with modify DocumentRoot.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    you can merge locations only, server { } is not a location.
     
  3. Abdelkarim Mateos

    Abdelkarim Mateos New Member

    I'm confusing...

    you reply this on this post

    Plesae try:
    server {##merge##
    root {DOCROOT} / public;
    }​
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You refer to a very old and outdated post from 2014 and I said at that that it's worth a try to use ##merge## for this as I had not tested that in 2014, today we have 2017 and I told you above that it don't work as merge can be used for locations only.
     

Share This Page