Join the community today
Become a Member

Can you help me for custom permalink vanilla forum in centminmod?

Discussion in 'Forum software usage' started by Tri Wahyu Budi Utomo, Feb 4, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    4:10 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    not sure i understand the question ?

     
  2. Tri Wahyu Budi Utomo

    Tri Wahyu Budi Utomo New Member

    19
    2
    3
    Feb 4, 2016
    Ratings:
    +2
    Local Time:
    1:10 PM
    Nginx 1.9.10
    MariaDB 10.0.x
    could you provide the solution in addition to vanilla forums which I can use to make a forum? a free and nice as well as support centminmod?
     
  3. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    4:10 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Unfortunately, I can not provide solution to every web app out there, I only do for web apps I use myself as I don't have the time to do it. Best is to get other members and other vanilla users to help. But you first need an official working example of Vanilla rewrite rules to work with that we can transpose over to Centmin Mod Nginx vhost.

    Example of other users working out their own Nginx rewrite rules on IP.Board IP.Board - IPB v4.1.x Files | Centmin Mod Community But you need a working set of Nginx rules/settings as I do not know anything about Vanilla myself. So best to ask on their forums first for examples nginx - Vanilla Forums
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    4:10 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Did a quick browse of their forums' nginx tag at nginx - Vanilla Forums

    maybe try this for /forum based install
    Code:
    # vanilla
    # redirect from non-www to www
    # uncomment, save file and restart Nginx to enable
    #server {
    #            listen   80;
    #            server_name domain.com;
    #            return 301 $scheme://www.domain.com$request_uri;
    #       }
    
    server {
      server_name domain.com www.domain.com;
    
    # ngx_pagespeed & ngx_pagespeed handler
    #include /usr/local/nginx/conf/pagespeed.conf;
    #include /usr/local/nginx/conf/pagespeedhandler.conf;
    #include /usr/local/nginx/conf/pagespeedstatslog.conf;
    
      #add_header X-Frame-Options SAMEORIGIN;
      #add_header X-Xss-Protection "1; mode=block" always;
      #add_header X-Content-Type-Options "nosniff" always; 
    
      # limit_conn limit_per_ip 16;
      # ssi  on;
    
      # access_log /home/nginx/domains/domain.com/log/access.log combined buffer=32k;
      error_log /home/nginx/domains/domain.com/log/error.log;
    
      root /home/nginx/domains/domain.com/public;
    
      location / {
         #try_files $uri $uri/ /index.php?q=$request_uri;
      }
    
    # Forum locations
      location /forum {
          try_files $uri $uri/ @forum;
      }
    
    # rewrite
      location @forum {  
        #pretty urls
          rewrite ^/forum/(.+)$ /forum/index.php?p=$1 last;
      }
    
       # Stop things from executing in the uploads directory
      location ~* ^/forum/uploads/.*.(html|htm|shtml|php)$ {
          types { }
          default_type text/plain;
      }
    
      # Keep nosey people from discivering categories by number
      location ~* /forum/categories/([0-9]|[1-9][0-9]|[1-9][0-9][0-9])$ {
          return 404;
      }
    
      include /usr/local/nginx/conf/staticfiles.conf;
      include /usr/local/nginx/conf/php.conf;
      include /usr/local/nginx/conf/drop.conf;
      #include /usr/local/nginx/conf/errorpage.conf;
    
    }
     
  5. Tri Wahyu Budi Utomo

    Tri Wahyu Budi Utomo New Member

    19
    2
    3
    Feb 4, 2016
    Ratings:
    +2
    Local Time:
    1:10 PM
    Nginx 1.9.10
    MariaDB 10.0.x
    but, i have install on subdomain. forum.digitalponsel.com . now i using permalink from vanilla, because can't solved my problem .
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    4:10 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    just edit your subdomain site's nginx vhost http /usr/local/nginx/conf/conf.d/yourdomain.com.conf with the changed one above

    so edit /usr/local/nginx/conf/conf.d/forum.digitalponsel.com.conf with the suggested changes and do a search and replace for domain.com to forum.digitalponsel.com

    then restart nginx and php-fpm services for any vhost changes to take effect
    Code:
    service nginx restart
    service php-fpm restart
    or via cmd shortcut
    Code:
    nprestart
     
  7. Tri Wahyu Budi Utomo

    Tri Wahyu Budi Utomo New Member

    19
    2
    3
    Feb 4, 2016
    Ratings:
    +2
    Local Time:
    1:10 PM
    Nginx 1.9.10
    MariaDB 10.0.x
    ok thank you very much. and now clear and solved ! :D
     
  8. Tri Wahyu Budi Utomo

    Tri Wahyu Budi Utomo New Member

    19
    2
    3
    Feb 4, 2016
    Ratings:
    +2
    Local Time:
    1:10 PM
    Nginx 1.9.10
    MariaDB 10.0.x
    one again, robots.txt 404 not found sir. can you give me rule nginx ?
     
  9. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    4:10 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    just add robots.txt to your web root /home/nginx/domains/domain.com/public
     
  10. Tri Wahyu Budi Utomo

    Tri Wahyu Budi Utomo New Member

    19
    2
    3
    Feb 4, 2016
    Ratings:
    +2
    Local Time:
    1:10 PM
    Nginx 1.9.10
    MariaDB 10.0.x
    OK thank you :D
     
  11. fullclick

    fullclick New Member

    11
    2
    3
    Jun 24, 2021
    CASINO ONLINE UY TÍN 247
    Ratings:
    +3
    Local Time:
    1:10 PM
    1.21
    10.3