1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unable to get HTTPS working

Discussion in 'Troubleshooting and Problems' started by meos, Feb 19, 2012.

  1. meos

    meos New Member

    I have a VPS with Apache with mod_php and nginx as a reverse proxy. A self signed certificate is installed and SSL (https) is forced on my server. Anyway, i'm having problems to generate the right base href.

    My site generate always

    <base href="http://" />
    but i need
    <base href="https://" />

    I have read this thread http://xenforo.com/community/threads/cannot-change-boardurl.23525/ and this http://sleepycode.com/2010/12/phpmyadmin-using-login-with-nginx-behind-a-https-auth-login/. I have also talked to my hoster. He says fast_cgi does not work on my server.

    Is there another way to let the server generate the right base href (https) on my VPS?

    Because when i change the board url in XenForo it doesn't help at all. I've tried to set it to:

    https://mysite.com/board

    and

    //mysite.com/board

    edit: I've sent the url to my hoster and he checked it and said:
    I also think now it is for sure a XenForo problem. Because my IPB on the same server/domain works without any problems with SSL and generates automatically the right <base href="https://"> links. ( I have added https:// as board_url in the conf_global.php though )
     
  2. Anthony Parsons

    Anthony Parsons Well-Known Member

    In your Xenforo ACP, basic site settings, change the URL of the site to https://.... fill in the blank with your actual domain. That will change your base href to https for Xenforo.
     
    CabCon and Marcus like this.
  3. meos

    meos New Member

    I have tried this already many times. It doesn't help at all.

    Thanks anyway.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Where are you trying this exactly? On a demo installation?

    If you need support with this you will need to associate your forum account with your licence and post in the customer support forum: http://xenforo.com/community/forums/troubleshooting-and-problems.24/
     
  5. Anthony Parsons

    Anthony Parsons Well-Known Member

    You asked how to create the correct base href. The above will achieve exactly that. That does not mean it will force https, which is a different matter altogether.

    You may have to drop your browser cache as well. I have mine set exactly as described above, and in the source I get:

    Code:
    <base href="https://www.ptsdforum.org/c/" />
    If you want to force https in a specific folder, page or entire site, you have to add the rewrite rule/s to the .htaccess to do it.

    I have mine forced https, however; using https in the basic site settings for the site URL sets the base href to https for all relative links without having to call upon the htaccess file to force redirection.
     
  6. meos

    meos New Member

    No, i'm trying it on my private Server (VPS). I will do this, thanks.

    That is the problem. It doesn't work for me. I don't need to force SSL, because it is already forced. But ny XenForo generates only the "http" base ref. This is not a unknown problem, i think it is a XenForo bug, because it works flawless with my IPB. My IPB genrates a "https" base ref without problems. So it it can not be a server problem.

    When you look here, he had the same problem. http://xenforo.com/community/threads/cannot-run-forum-through-ssl.23524/

    This is exactly my problem. If i change the board url in the ACP, it doesn't change anything. The base ref is still "http".
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    In that case I've split the posts off and moved them to the customer support forum as a separate thread.

    You won't be able to post in this thread until you associate your licence.
     
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page