Buying Nginx Apache rewrite for WP

Discussion in 'Services' started by Axcell, Aug 18, 2010.

  1. #1
    I'm using nginx as proxy reserve for apache and install wordpress. The problem is firefox keep getting error "The page isn't redirecting properly" but there's no problem with opera.
    Here is the nginx virtual host conf.

    server {
    listen 123.123.123.123:80;
    server_name webgua.com;
    charset utf-8;
    access_log /var/log/nginx/webgua.log;
    
    gzip on;
    gzip_disable msie6;
    gzip_static on;
    gzip_comp_level 9;
    gzip_proxied any;
    gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
    
    location / {
    root /home/webgua/public_html;
    
    set $wordpress_logged_in "";
    set $comment_author_email "";
    set $comment_author "";
    
    if ($http_cookie ~* "wordpress_logged_in_[^=]*=([^%]+)%7C") {
    set $wordpress_logged_in wordpress_logged_in_$1;
    }
    
    if ($http_cookie ~* "comment_author_email_[^=]*=([^;]+)(;|$)") {
    set $comment_author_email comment_author_email_$1;
    }
    
    if ($http_cookie ~* "comment_author_[^=]*=([^;]+)(;|$)") {
    set $comment_author comment_author_$1;
    }
    
    set $my_cache_key "$scheme://$host$uri$is_args$args$wordpress_logged_in$comment_author_email$comment_author";
    
    proxy_pass http://127.0.0.1:8009/;
    
    if ($http_user_agent ~* QQDownload|libcurl|majestic|Sogou|Sosospider|MJ12bot|baidu|wget) {
    return 403;
    access_log off;
    }
    }
    
    location ~* \.(jpg|png|gif|jpeg|js|css|mp3|wav|swf|mov|doc|pdf|xls|ppt|docx|pptx|xlsx)$ {
    root /home/webgua/public_html;
    }
    
    } 
    Code (markup):
    I'll pay $7 via Paypal if you could fix the conf file.
    Thanx
     
    Axcell, Aug 18, 2010 IP
  2. Axcell

    Axcell Active Member

    Messages:
    128
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    73
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Done.
    Thread closed...
     
    Axcell, Aug 18, 2010 IP