Join the community today
Become a Member

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:
    12:56 AM
    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 Premium Member Premium Member

    1,350
    285
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +695
    Local Time:
    6:56 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 Premium Member Premium Member

    1,350
    285
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +695
    Local Time:
    6:56 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 Premium Member Premium Member

    1,350
    285
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +695
    Local Time:
    6:56 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
  5. R0rke

    R0rke Member

    121
    17
    18
    Jun 2, 2016
    Iran
    Ratings:
    +27
    Local Time:
    3:56 PM
    1.11.1
    10.1
    as u said you are running IPS ON a subdomain right ?
    u should check the subdomain root or directory for example :

    Code:
        location /forums {
            try_files $uri $uri/ /forums/index.php;
        }
    did you enabled Rewrite URLS?
    ffac.PNG
    THEN
    ffacc.PNG
    if u don't find that option just simply search Rewrite Urls in Search section !
     
    Last edited: Aug 20, 2017
  6. Jimmy

    Jimmy Premium Member Premium Member

    1,350
    285
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +695
    Local Time:
    6:56 PM
    1.13.x
    MariaDB 10.1.x
    Last edited: Jul 27, 2018
    • Like Like x 1
    • Informative Informative x 1
  7. Jimmy

    Jimmy Premium Member Premium Member

    1,350
    285
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +695
    Local Time:
    6:56 PM
    1.13.x
    MariaDB 10.1.x
    How frustrating. I keep getting:
    Code:
    duplicate listen options for 0.0.0.0:443 
    When you only have 1 server IP address you have to have separate ssl and non-ssl conf files???
     
  8. eva2000

    eva2000 Administrator Staff Member

    35,522
    7,833
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,074
    Local Time:
    8:56 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    are you trying to set reuseport directive on all HTTPS vhosts ? it is only meant to be set once per ip:port pairing and it applies reuseport to all nginx vhosts after setting. So only one nginx vhost can set reuseport ip:80 and and only one nginx vhost can set reuseport on ip:443.

    FYI, 123.09beta01 nginx https vhost generator now automatically checks if reuseport is used or not on ip:443 pairing and if not, will auto add reuseport directive to the currently generated nginx HTTPS vhost if no other current nginx HTTPS vhost has reuseport directive. Of course centmin.sh also checks if your linux kernel supports reuseport first before auto adding the directive.
     
    • Informative Informative x 1
  9. Jimmy

    Jimmy Premium Member Premium Member

    1,350
    285
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +695
    Local Time:
    6:56 PM
    1.13.x
    MariaDB 10.1.x
    No, it was the default_server in the virtual.conf that had to be removed. That is fine w/ separate ips, but on a single ip machine with multiple sites... well you know.

    Thanks for the reuseport info, didn't know that. Was wondering why it wasn't in every vhost CMM created.
     
    • Informative Informative x 1
  10. Jimmy

    Jimmy Premium Member Premium Member

    1,350
    285
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +695
    Local Time:
    6:56 PM
    1.13.x
    MariaDB 10.1.x
    Couldn't you create a virtual.ssl.conf and have the reuseport in those two files (virtual / virtual ssl) and not have to add them to the other vhost files. If it's in those 2 files won't it be recognized by the system?
     
  11. eva2000

    eva2000 Administrator Staff Member

    35,522
    7,833
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,074
    Local Time:
    8:56 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Also reuseport can only be used properly if linux kernel supports it (OpenVZ VPS definitely won't support reuseport).

    Yeah would be an optional if main hostname had ssl but that isn't supported out of the box yet.
     
    • Informative Informative x 1
  12. Jimmy

    Jimmy Premium Member Premium Member

    1,350
    285
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +695
    Local Time:
    6:56 PM
    1.13.x
    MariaDB 10.1.x
    Is CMM supposed to create the origin.crt file? Every folder was empty. Wasn't sure, I realize the actual content of the file need to be generated on CF. But I though the file would exist for me to open and just populate with data.

    I ended up spelling the origin.crt file orgin.crt and that took me a bit to figure out. LOL!
     
  13. eva2000

    eva2000 Administrator Staff Member

    35,522
    7,833
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,074
    Local Time:
    8:56 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    it's suppose to download it for new 123.09beta01 installs when you run centmin.sh menu option 2, 22 or nv command line to create new nginx vhosts. - make sure you've updated via command = cmupdate. It won't download for nginx vhosts created prior to 123.09beta01 update which added that functionality (~Jan 27, 2018 when it was added)

    otherwise if it wasn't downloaded ie. nginx vhost was created before the feature was added, then you manually download it as per instructions at Cloudflare - Setting Up Cloudflare Authenticated Origin Pulls Protecting Your Origins
     
  14. Jimmy

    Jimmy Premium Member Premium Member

    1,350
    285
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +695
    Local Time:
    6:56 PM
    1.13.x
    MariaDB 10.1.x
    I just installed the server yesterday. Didn't download any certs, though it did create the folders.
     
  15. eva2000

    eva2000 Administrator Staff Member

    35,522
    7,833
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,074
    Local Time:
    8:56 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    you can check the nginx vhost creation log(s) in /root/centminlogs for clues at origin cert download stage
     
  16. Jimmy

    Jimmy Premium Member Premium Member

    1,350
    285
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +695
    Local Time:
    6:56 PM
    1.13.x
    MariaDB 10.1.x
    Is the origin.crt folder location included on the list of items you need to remove when uninstalling a vhost (that list when the vhost is created - option #2)? Just thought about that, didn't remember seeing it when I created the vhost.
     
    Last edited: Jul 27, 2018
  17. eva2000

    eva2000 Administrator Staff Member

    35,522
    7,833
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,074
    Local Time:
    8:56 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    don't believe it is as that location is at /usr/local/nginx/conf/ssl/cloudflare/yourdomain.com but doesn't matter if you remove vhost, that location isn't used and if you re-add that vhost domain name, the automated routine just redownloads latest version of origin crt to that location.
     
    • Informative Informative x 1
..