Learn about Centmin Mod LEMP Stack today
Register Now

Forum in folder issue

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by pamamolf, Sep 27, 2016.

  1. pamamolf

    pamamolf Well-Known Member

    2,529
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    10:43 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hi

    I have a forum located at /home/nginx/domains/domain.com/public/forums/ folder and i have this config option:

    Code:
    $INFO['board_url']            =    'http://www.domain.com/forums';
    How can i do that to have on the browser link only the:

    Code:
    http://www.domain.com
    without the folder forums on the link?

    I was thinking to change on vhost the root path to /forums folder but don't know if that is the proper way to do it...and if it works...

    Thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,031
    6,588
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,780
    Local Time:
    5:43 AM
    Nginx 1.13.x
    MariaDB 5.5
    You'd need to ask forum developers as it's not that simple for most forum software to do it just at web server level. Or just physically move forums from /forums to /.