Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyBB Google SEO Nginx server.
#1
How do I setup Google SEO plugin on Nginx webserver Sad Whenever it's activated it says "Not found" and when I try to do the edits it says "It works"

Here's my nginx.conf file:
Code:
user www-data;
worker_processes  1;
worker_rlimit_nofile 20480;
error_log  /var/log/nginx/error.log;
pid        /var/run/nginx.pid;

events {
    worker_connections  50000;

}

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

    access_log    /var/log/nginx/access.log;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;
    tcp_nodelay        on;
    server_names_hash_bucket_size 33;
    gzip  on;

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}
Reply
#2
Because you're trying to set a vhost that leads nowhere.

It'll assume that it should just take your main directory..
In the HTTP part add the following:

server_name exact.address.to.site;
root /path/to/files;
Reply
#3
I added that then added this at the bottom of the entire file:
Code:
location / {
    # ...your location settings are here...

    rewrite ^/forum-([0-9]+)\.html$ /forumdisplay.php?fid=$1;
    rewrite ^/forum-([0-9]+)-page-([0-9]+)\.html$ /forumdisplay.php?fid=$1&page=$2;
    rewrite ^/thread-([0-9]+)\.html$ /showthread.php?tid=$1;
    rewrite ^/thread-([0-9]+)-page-([0-9]+)\.html$ /showthread.php?tid=$1&page=$2;
    rewrite ^/thread-([0-9]+)-lastpost\.html$ /showthread.php?tid=$1&action=lastpost;
    rewrite ^/thread-([0-9]+)-nextnewest\.html$ /showthread.php?tid=$1&action=nextnewest;
    rewrite ^/thread-([0-9]+)-nextoldest\.html$ /showthread.php?tid=$1&action=nextoldest;
    rewrite ^/thread-([0-9]+)-newpost\.html$ /showthread.php?tid=$1&action=newpost;
    rewrite ^/thread-([0-9]+)-post-([0-9]+)\.html$ /showthread.php?tid=$1&pid=$2;

    rewrite ^/post-([0-9]+)\.html$ /showthread.php?pid=$1;

    rewrite ^/announcement-([0-9]+)\.html$ /announcements.php?aid=$1;

    rewrite ^/user-([0-9]+)\.html$ /member.php?action=profile&uid=$1;

    rewrite ^/calendar-([0-9]+)\.html$ /calendar.php?calendar=$1;
    rewrite ^/calendar-([0-9]+)-year-([0-9]+)\.html$ /calendar.php?action=yearview&calendar=$1&year=$2;
    rewrite ^/calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ /calendar.php?calendar=$1&year=$2&month=$3;
    rewrite ^/calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ /calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4;
    rewrite ^/calendar-([0-9]+)-week-(n?[0-9]+)\.html$ /calendar.php?action=weekview&calendar=$1&week=$2;

    rewrite ^/event-([0-9]+)\.html$ /calendar.php?action=event&eid=$1;
}

And it still didn't load... It says "It Works!" on the main page of my forum.
Reply
#4
N0t a single person can help...........? :[
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)