Join the community today
Become a Member

vBulletin 404 Not Found nginx

Discussion in 'Forum software usage' started by the caretaker, Nov 13, 2015.

Tags:
  1. the caretaker

    the caretaker New Member

    14
    3
    3
    Nov 11, 2015
    Ratings:
    +4
    Local Time:
    4:02 PM
    1.9.6
    MariaDB 10
    Get 5 Vbulletin not right to run at the moment.
    Does anyone vBulletin 5 Connect the run and a template l for the vhost in ngnix.
    The message at the moment is see picture
    snapshot1.png
    Thank you very much in advance

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,927
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    4:02 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    been a while since i tested vB5 on Centmin Mod LEMP stack but on config listing page centminmod.com/nginx_configure.html there is an example at centminmod.com/nginx_configure_vbulletin5.html

    Centmin Mod is provide as is, so short of scripted related bugs or issues, any further optimisation to the web stack components - nginx, php-fpm, mariadb mysql, csf firewall etc or web app specific configurations are left to the Centmin Mod user to deal with. So I do not provide any free support for such.

    However, Centmin Mod users are free to help each other out and ask questions or give answers on this community forum. My hopes are that this community forum evolves so that more veteran long time Centmin Mod users help new Centmin Mod users out :)
     
  3. the caretaker

    the caretaker New Member

    14
    3
    3
    Nov 11, 2015
    Ratings:
    +4
    Local Time:
    4:02 PM
    1.9.6
    MariaDB 10
  4. eva2000

    eva2000 Administrator Staff Member

    54,927
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    4:02 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    haven't checked in months, probably still works. You tried it yet ?
     
  5. the caretaker

    the caretaker New Member

    14
    3
    3
    Nov 11, 2015
    Ratings:
    +4
    Local Time:
    4:02 PM
    1.9.6
    MariaDB 10
    Yes it goes unfortunately not site remains white
     
  6. the caretaker

    the caretaker New Member

    14
    3
    3
    Nov 11, 2015
    Ratings:
    +4
    Local Time:
    4:02 PM
    1.9.6
    MariaDB 10
    /usr/local/nginx/conf/phpvb5.conf

    fastcgi_param REDIRECT_STATUS 200;

    And in the manual is missing at the end }


    fastcgi_param REDIRECT_STATUS 200;
    }
    :)
    But it is not
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,927
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    4:02 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    If on Centmin Mod 123.09beta01, you may have ran into the new tools/autoprotect.sh cronjob feature outlined at Beta Branch - autoprotect.sh - apache .htaccess check & migration to nginx deny all | Centmin Mod Community You uploaded scripts may have .htaccess deny from all type files in their directories which may need bypassing autoprotect. It's a security feature that no other nginx based stack has as far as I know :)

    So instead, all .htaccess 'deny from all' detected directories now get auto generated Nginx equivalent location match and deny all setups except if you want to manually bypass the directory from auto protection via a .autoprotect-bypass file - details below here.

    You can read a few threads below on how autoprotect.sh may have caught some folks web apps falsely and the workarounds or improvements made to autoprotect.sh with the help of users feedback and troubleshooting.
     
  8. the caretaker

    the caretaker New Member

    14
    3
    3
    Nov 11, 2015
    Ratings:
    +4
    Local Time:
    4:02 PM
    1.9.6
    MariaDB 10
    For vbulletin lies a ngnix_php7.vhosts with the but not here functions
    Code:
    server {
            # address and port accepted by the server
            listen   80; ## listen for ipv4
            #listen   [::]:80 default ipv6only=on; ## listen for ipv6
    
            # server IP to compare against http requests, uncomment and set proper value.
            # Enter the hostname or IP address you use to reach this server. If you run on your dev environment it might be localhost.
            # Note: If your vb install is in a folder inside your domain <mysite>/forum/install/path please change location directives defined below to include the path first. e.G:
            # vbulletin.com/forum
            #
            # css directive would be:
            # location = /forum/css\.php {
            #        rewrite ^ /forum/core/css.php break;
            #}
            #server_name      127.0.0.1;
    
            # document root for request,  uncomment and set proper value
       # this should reflect the path that your vBulletin is installed in.
       # This is usually /var/www/public_html/forumpath
            #root   /var/www/public_html/forumpath;
            index   index.php index.html index.htm;
    
       # log files, uncomment and set proper values
            #access_log      /usr/share/nginx/www/vb/logs/access.log;
            #error_log       /usr/share/nginx/www/vb/logs/nginx_error.log;
    
       # configuration rules
            # legacy css being handled separate for performance
            location = /css\.php {
                    rewrite ^ /core/css.php break;
            }
    
            # make install available from presentation
            location ^~ /install {
                    rewrite ^/install/ /core/install/ break;
            }
    
            # any request to not existing item gets redirected through routestring
            location / {
                    if (!-f $request_filename) {
                            rewrite ^/(.*)$ /index.php?routestring=$1 last;
                    }
            }
    
            # make admincp available from presentation
            location ^~ /admincp {
                    if (!-f $request_filename) {
                            rewrite ^/admincp/(.*)$ /index.php?routestring=admincp/$1 last;
                    }
            }
    
            # process any php scripts, not found gets redirected through routestring
            location ~ \.php$ {
                    # handles legacy scripts
                    if (!-f $request_filename) {
                            rewrite ^/(.*)$ /index.php?routestring=$1 break;
                    }
    
                    fastcgi_split_path_info ^(.+\.php)(.*)$;
                    fastcgi_pass phpfastcgi;
                    fastcgi_index index.php;
                    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                    include fastcgi_params;
                    fastcgi_param QUERY_STRING $query_string;
                    fastcgi_param REQUEST_METHOD $request_method;
                    fastcgi_param CONTENT_TYPE $content_type;
                    fastcgi_param CONTENT_LENGTH $content_length;
                    fastcgi_intercept_errors on;
                    fastcgi_ignore_client_abort off;
                    fastcgi_connect_timeout 60;
                    fastcgi_send_timeout 180;
                    fastcgi_read_timeout 180;
                    fastcgi_buffers 256 16k;
                    fastcgi_buffer_size 32k;
                    fastcgi_temp_file_write_size 256k;
            }
    }
    
    upstream phpfastcgi {
       # address to accept FastCGI requests. Make sure you set the right value under your fast cgi conf.
       server    unix:/var/run/php/php7.0-fpm.sock;
    }
    
     
    Last edited: Mar 10, 2017
  9. eva2000

    eva2000 Administrator Staff Member

    54,927
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    4:02 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+