• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki Discussion
    • General Discussion
    • Nginx troubles

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Results 1 to 4 of 4

    Thread: Nginx troubles

    • Thread Tools
      • Show Printable Version
    1. April 3, 2012 #1
      JesterP
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      JesterP is offline
      Junior Member
      Join Date
      March 17, 2012
      Posts
      14
      Rep Power
      0

      Nginx troubles

      Hi all,

      My sincerest apologies if this is not the correct place to ask this question.

      My webserver is NginX, and I am running vb 4.1.11 pl1.

      Vaultwiki runs just fine if I don't enable "simplify wiki links". Once enabled I get the nginx 404 error page. It would appear that the server does not like /forums/showwiki/.

      I added the same rewrite rules found in another post here: https://www.vaultwiki.org/threads/4689/ These rewrites don't seem to be doing anything.

      Code:
      #
      # VaultWiki Rewrite
      #
      
      if (!-e $request_filename) {
               rewrite ^/wiki.php$ /showwiki.php last;
               rewrite ^/wiki$ /wiki/ permanent;
               rewrite ^/wiki/(?:(default)/(.*)?)?$ /showwiki_proxy.php last;
      }
      Ideally I would like my urls to be formatted like my other wiki (mediawiki): domain.com/wiki/Main_Page or domain.com/wiki/Category:Instances but initially I would be happy to just have simple links working.

      Can anyone offer insight as to why I cannot use simple links?

      Thank you!!
      Reply With Quote Reply With Quote

    2. April 4, 2012 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      I think I PMed this to you a while back, but we don't use the rules in that thread. They were based on instructions about vBSEO rewrites for nginx, which it turned out didn't work either when we switched to nginx ourselves.

      Instead, this is what you should use, adjusted for your value "showwiki" and your root /forums/:
      Code:
      	location /forums/ {
      		rewrite ^/forums/showwiki/?.* /forums/showwiki_proxy.php;
      	}
      If you also use vBSEO, you need to use different rules than they give you, since they don't work properly.

      If you want the wiki to be /wiki/ and not /forums/showwiki/:
      Code:
      	location ~ /forums/wiki\.php$ {
      		rewrite ^ /forums/showwiki.php;
      	}
      
      	location /wiki/ {
      		rewrite ^/wiki/?.* /forums/showwiki_proxy.php;
      	}
      And you need to change your Wiki Base URL:
      Code:
      http://www.domain.com
      and Wiki File Name = "wiki"
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. April 4, 2012 #3
      JesterP
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      JesterP is offline
      Junior Member
      Join Date
      March 17, 2012
      Posts
      14
      Rep Power
      0
      Quote Originally Posted by pegasus View Post
      I think I PMed this to you a while back, but we don't use the rules in that thread. They were based on instructions about vBSEO rewrites for nginx, which it turned out didn't work either when we switched to nginx ourselves.

      Instead, this is what you should use, adjusted for your value "showwiki" and your root /forums/:
      Code:
      	location /forums/ {
      		rewrite ^/forums/showwiki/?.* /forums/showwiki_proxy.php;
      	}
      If you also use vBSEO, you need to use different rules than they give you, since they don't work properly.

      If you want the wiki to be /wiki/ and not /forums/showwiki/:
      Code:
      	location ~ /forums/wiki\.php$ {
      		rewrite ^ /forums/showwiki.php;
      	}
      
      	location /wiki/ {
      		rewrite ^/wiki/?.* /forums/showwiki_proxy.php;
      	}
      And you need to change your Wiki Base URL:
      Code:
      http://www.domain.com
      and Wiki File Name = "wiki"
      Thank you, I got it working with this. You provided via PM the same example I referenced. I noticed that I get the Special:SpecialPages now but when I click default, I still get the ugly forum php url. Shouldn't it be Defaultefault or something similar.

      Thanks again for the help!!

      Now I need to wrap my head around the forum/wiki relationship. Is each namespace a forum?
      Reply With Quote Reply With Quote

    4. April 4, 2012 #4
      JesterP
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      JesterP is offline
      Junior Member
      Join Date
      March 17, 2012
      Posts
      14
      Rep Power
      0
      I'm all set on the rewrites, so this thread is probably done. Thank you for the help!
      Reply With Quote Reply With Quote

    Similar Threads

    1. Rewriting nginx proxy to apache
      By Moses in forum VaultWiki Questions
      Replies: 2
      Last Post: August 10, 2010, 8:20 PM
    2. nginx rewrite rules
      By SSSlippy in forum VaultWiki Questions
      Replies: 4
      Last Post: July 28, 2010, 9:30 PM
    3. Sub-Domains on nginx
      By Moses in forum VaultWiki Questions
      Replies: 2
      Last Post: February 9, 2010, 6:55 AM
    4. Import Troubles
      By Kaelon in forum VaultWiki Questions
      Replies: 38
      Last Post: October 12, 2008, 6:30 PM

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •  
    • BB code is On
    • Smilies are On
    • [IMG] code is Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 6:17 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.