Install Wordpress into subdirectory on LEMP installation

November 29, 2018 434 views
LEMP WordPress

Hi there,

I've followed the below tutorial but changing the directory to /var/www/directory-name but having a '502 Bad Gateway' error when trying to view it in my browser.

Any solutions would be appreciated, thank you.

1 comment
1 Answer

Hi albertramsbottom.

I've tried it with and without the block but had the same error message.


  • No I mean what did you put in here? As it would be

    <Directory /var/www/html/directory-name/>
    AllowOverride All


    • Ah, sorry, this is what I added at the end of the config file;

      <Directory /var/www/directory-name/>
      AllowOverride All


Have another answer? Share your knowledge.