Discover Centmin Mod 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:
    12:28 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;
    
    
     
  2. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    6:28 AM
    Just installed, I'm getting the same 404 error on the pages. @externalflaw what did you do to get it working?
     
  3. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    6:28 AM
    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 Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    6:28 AM
    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

    168
    22
    18
    Jun 2, 2016
    Iran
    Ratings:
    +37
    Local Time:
    3:28 AM
    2
    10
    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 Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    6:28 AM
    Last edited: Jul 27, 2018
  7. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    6:28 AM
    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

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:28 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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.
     
  9. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    6:28 AM
    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.
     
  10. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    6:28 AM
    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

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:28 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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.
     
  12. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    6:28 AM
    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

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:28 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    6:28 AM
    I just installed the server yesterday. Didn't download any certs, though it did create the folders.
     
  15. eva2000

    eva2000 Administrator Staff Member

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:28 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you can check the nginx vhost creation log(s) in /root/centminlogs for clues at origin cert download stage
     
  16. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    6:28 AM
    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

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:28 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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.
     
  18. Cryptso

    Cryptso New Member

    8
    1
    3
    Aug 27, 2017
    Ratings:
    +2
    Local Time:
    12:28 PM
    Hello,

    Today i installed IPB on my VPS and i have problem with "Friendly URLs". Currently i'm using your config from github.

    Github config file is stored in forum.mydomain.net.ssl.conf. When i try to visit some thread(ex. https://forum.mydomain.net/topic/1-welcome/) i got error
    Code:
     Sorry, there is a problem
    The page you requested does not exist 
    Should i change something in "Advanced Configuration" --> "Friendly URLs " tab rules?

    Current "Search Engine Optimization" settings:
    • Enable Friendly URLs? - ON
    • Rewrite URLs? - ON
    • Force Friendly URLs? - ON
     
  19. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    6:28 AM
    No you shouldn't have to adjust the Friendly URLs.
     
  20. Cryptso

    Cryptso New Member

    8
    1
    3
    Aug 27, 2017
    Ratings:
    +2
    Local Time:
    12:28 PM
    Ok, thanks

    Now i got URL's like "Domain.com
    Is there any other way to make it more User/SEO friendly?