when i upgrade vbulletin 4 to vbulletin 5, my forum is broken and can't be loaded completelly, in inspect element of google chrome i can see many 404 error.
i copy vbulletin in forum directory of my nginx server root directory.
my nginx configurations are as bellow :
my server url is :
how can you help me to solve the problem ?
i copy vbulletin in forum directory of my nginx server root directory.
my nginx configurations are as bellow :
PHP Code:
server {
listen 80;
server_name 185.81.97.106;
# 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 /usr/share/nginx/html/forums/;
index index.php index.html index.htm;
client_max_body_size 20M;
access_log /var/log/nginx/forum.access.log main;
error_log /var/log/nginx/forum.error.log;
# configuration rules
# legacy css being handled separate for performance
location = /forums/css\.php {
rewrite ^ /forums/core/css.php break;
}
location ~* ^.+\.(javascripts|js|json|ico|gif|jpg|jpeg|pdf|png|css|woff|ttf|otf|eot)$ {
root /usr/share/nginx/html/forums/;
access_log off;
log_not_found off;
expires max;
gzip_static on;
}
# make install available from presentation
location ^~ /forums/install {
rewrite ^/forums/install/ /forums/core/install/ break;
}
# any request to not existing item gets redirected through routestring
location /forums/ {
if (!-f $request_filename) {
rewrite ^/forums/(.*)$ /forums/index.php?routestring=$1 last;
}
}
# make admincp available from presentation
location ^~ /forums/admincp {
if (!-f $request_filename) {
rewrite ^/forums/admincp/(.*)$ /forums/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 php5;
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 300;
fastcgi_buffers 256 16k;
fastcgi_buffer_size 32k;
fastcgi_temp_file_write_size 256k;
}
}
upstream php5 {
# address to accept FastCGI requests. Make sure you set the right value under your fast cgi conf.
# e.g.- Ubuntu 12.10 using php5-fpm Ubuntu /etc/php5/fpm/pool.d/www.conf
server 127.0.0.1:9000;
}
how can you help me to solve the problem ?
Comment