[Rejected] Wrong admin login url behind proxy
#1
I'm using an nginx server to map mydomain/forum to mybb, with the following configuration:

<code>
server {
    listen 80;
    hostname mydomain;

    location /forum/ {
        proxy_pass http://localhost:8008/
    }

    # other servers
}

server {
    listen 8008;
    hostname localhost;

    location / {
        root /path/to/mybb;
        # php-fpm stuff
    }
}

However, in admin/inc/class_page.php:477 the login form is constructed with $_SERVER['PHP_SELF'], which will result in /admin/index.php and thus result in a different location.
Reply


Messages In This Thread
Wrong admin login url behind proxy - by michaelkim0407 - 2017-09-05, 10:55 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)