Welcome! Log In Create A New Profile

Advanced

Problems with vBulletin and vBSEO on nginx

Posted by eXis 
Problems with vBulletin and vBSEO on nginx
May 19, 2010 06:27PM
Hello,

i want to set up my vBulletin with vBSEO on nginx.
I set up nginx many times before and never had problems.
But now i have a big one. Everytime i start nginx and want to access my Forum, I get on the whole Forum
https URLs instead of http urls. I never activated https (secure http) in nginx or the Forum.
Does anybody have the same problem? Can anyone help me?

Here r my configs:

nginx.conf

user root root;
worker_processes 2;
worker_cpu_affinity 00001111 11110000;

#error_log logs/error.log;
error_log logs/error.log notice;
#error_log logs/error.log info;

pid logs/nginx.pid;


events {
worker_connections 1024;
}


http {
include mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log logs/access.log main;

#sendfile on;
tcp_nopush on;

keepalive_timeout 2;

#gzip on;

server {
listen 80;
server_name _;


#charset koi8-r;

access_log logs/vbulleting.access.log main;


location / {
root /var/www/vbulletin;
index index.php;

rewrite ^/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;

if ($request_filename ~ "\.php$" ) {
rewrite ^/(.*)$ /vbseo.php last;
}

if (!-e $request_filename) {
rewrite ^/(.*)$ /vbseo.php last;
}
}

# error_page 400 401 402 403 404 405 500 502 503 504 /404.html;
# location = /404.html {
# root /var/www/leecher.to;
# }


# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root /var/www/vbulleting;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}


}


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_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;

fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;

fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;


# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;

fastcgi_param HTTPS on;

fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;
Re: Problems with vBulletin and vBSEO on nginx
May 28, 2010 03:28AM
nobody an idea?
Re: Problems with vBulletin and vBSEO on nginx
June 04, 2010 06:02AM
Hello Exis,
I advice you to open a ticket with vBSEO support , they can take care of this very well , and this have a expernice guy who is called Oleg , you can connect him and im sure his will fix your problem .
Thanks ,
M.A.G
Re: Problems with vBulletin and vBSEO on nginx
October 01, 2012 05:28PM
You need to patch `vbseo/includes/functions_vbseo_pre.php` the guys from vBSEO didn't respect PHP specs.

Take a look here: https://gist.github.com/3814521
Re: Problems with vBulletin and vBSEO on nginx
August 11, 2014 03:19AM
Hey eXis,
I found this thread through google. I have the exact same problem. Did you ever find a solution for this? Just drop me an email. Thanks

Dade
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 175
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready