Learn about Centmin Mod LEMP Stack today
Register Now

IP.Board IPB v4.1.x Files

Discussion in 'Forum software usage' started by Jimmy, Nov 9, 2015.

  1. externalflaw

    externalflaw New Member

    11
    1
    3
    May 5, 2017
    Ratings:
    +3
    Local Time:
    9:19 PM
    Well... I did an 's letter too much, working now.. just need to figure out some mixed content from a few .png files.
    But the main part is working.

    Your script/config is working fine, except I changed

    Code:
    server {
       listen IPv4:80;
       listen [IPv6]:80 ipv6only=off
       server_name domain.com www.domain.com;
       return 301 https://domain.com$request_uri;
    
       # Error Logs via 80
       access_log /home/nginx/domains/domain.com/log/access_via80.log combined buffer=256k flush=60m;
       error_log /home/nginx/domains/domain.com/log/error_via80.log;
    }
    
    server {
       listen IPv4:443 ssl http2;
       listen [IPv6]:443 ssl http2 ipv6only=off;
       server_name  domain.com;
    
    
    to

    Code:
    server {
       server_name forum.domain.com www.forum.domain.com;
       return 302 https://forum.domain.com$request_uri;
    
    }
    
    server {
      listen 443 ssl http2;
      server_name forum.domain.com www.forum.domain.com;
    
    
     
    • Informative Informative x 2
  2. Jimmy

    Jimmy Active Member

    972
    212
    43
    Oct 24, 2015
    East Coast USA
    Ratings:
    +529
    Local Time:
    3:19 PM
    1.13.x
    MariaDB 10.1.x
    Just installed, I'm getting the same 404 error on the pages. @externalflaw what did you do to get it working?
     
  3. Jimmy

    Jimmy Active Member

    972
    212
    43
    Oct 24, 2015
    East Coast USA
    Ratings:
    +529
    Local Time:
    3:19 PM
    1.13.x
    MariaDB 10.1.x
    For some reason it's putting index.php on the end instead in the front. The unwritten link is this:
    Code:
    domain.com/index.php?/topic/1-welcome/
    From the error file:
    Code:
    2017/05/09 23:49:30 [error] 31762#31762: *1 "/home/nginx/domains/domain.com/public/topic/1-welcome/index.php" is not found (2: No such file or directory), client: xx.xx.xx.xx, server: domain.com, request: "GET /topic/1-welcome/ HTTP/2.0", host: "domain.com", referrer: "https://domain.com/"
     
  4. Jimmy

    Jimmy Active Member

    972
    212
    43
    Oct 24, 2015
    East Coast USA
    Ratings:
    +529
    Local Time:
    3:19 PM
    1.13.x
    MariaDB 10.1.x
    If you're using a htpasswd on the main site, you need to include what is below for re-writes to work while the auth is active.
    Code:
    location ~ ^/ {
        auth_basic "Private";
        auth_basic_user_file /usr/local/nginx/conf/htpasswd;
        include /usr/local/nginx/conf/php.conf;
        try_files    $uri $uri/ /index.php;
    }
    Updated gist to show this.
     
    Last edited: May 10, 2017