vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   Nginx Rewrites (https://vborg.vbsupport.ru/showthread.php?t=296335)

grindaland 03-20-2013 05:49 PM

Nginx Rewrites
 
Trying to make vBulletin 5.0.0 work with Nginx. Easier said than done!
After a bit of researching and improvising this is what I come up with:

Code:

    location /vb5/ {
        rewrite ^/vb5/(.*) /vb5/index.php?routestring=$1 last;
    }

    location /vb5/admincp/ {
        rewrite ^ /vb5/index.php?routestring=admincp/ last;
    }

    location ~ /vb5/(?!index)[^/]+\.php$ {
        rewrite ^/vb5/(.*) /vb5/index.php?routestring=$1 last;
    }

    location ~* ^.+.(jpg|jpeg|css|png|js|ico|xml)$ {
        root /srv/http;
    }


At first glance it SEEMS to work... that is, until you decide to click to one or two links.

This is what happens when I try to login (and then try again (and again (and again (funny, right?)))):

https://vborg.vbsupport.ru/external/2013/03/24.png

When I instead want to read the FAQs, it nicely notifies me that:
Quote:

That action could not be completed. Please try again, and if this occurs again please contact the system administrator and tell them how you got this message.

I can't really explore all the function that may or may not work, since I still haven't managed to log into the forums.

Would you please help me figure out how to make these rewrites work (well, assuming the problem isn't elsewhere)?

nhawk 03-20-2013 07:40 PM

Nginx isn't supported, but check JIRA, there's a long discussion about nginx..

http://tracker.vbulletin.com/browse/VBV-995

grindaland 03-20-2013 11:57 PM

Yeah I'm following it, but still none of the proposed solutions fully works. Thanks anyway.
And I know that it isn't officially supported, since if it were I'm sure I wouldn't be having all these problems trying to set it up. ^^


All times are GMT. The time now is 07:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01502 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete