vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   nginx rewrite to fix broken links left by uninstalling vbseo? (https://vborg.vbsupport.ru/showthread.php?t=322133)

EvilArcana 03-16-2016 12:34 PM

nginx rewrite to fix broken links left by uninstalling vbseo?
 
I had vbseo installed, and uninstalled it because it quit working a while back and then I discovered they abandoned the project. I'm not up to date on all the issues with that, but I'm running 4.2.3 and have a LOT of php errors that seem to be related to links to attachments that were handled by vbseo rewrites.

for example...I have a link that looks like this: http://www.cartographersguild.com/at...-maps-gimp.pdf which generates a 404. obviously, because the attachments folder is not based on the sub-forum url rewrites.

Has anyone created an nginx .conf that fixes the attachments links broken by vbseo uninstall? Is there a comprehensive vbseo link fixer nginx conf? Help!!!

Thanks ;)

--------------- Added [DATE]1458135566[/DATE] at [TIME]1458135566[/TIME] ---------------

I wanted to mention, I'm seeing a lot of errors in my error.log and php eventually crashes from what I can tell...I keep getting 502 errors because of all the errors.

here's an example...also based on the attachments rewrite from vbseo.

2016/03/16 06:37:17 [error] 12933#0: *5931 open() "/home/cartographers/cartographersguild.com/attachments/general-miscellaneous-mapping/56561d1375393066-[wip-]-grass-forest-maps-forest-wip-1.png" failed (2: No such file or directory), client: 194.199.63.239, server: cartographersguild.com, request: "GET /attachments/general-miscellaneous-mapping/56561d1375393066-%5Bwip-%5D-grass-forest-maps-forest-wip-1.png HTTP/1.1", host: "www.cartographersguild.com"

EvilArcana 03-18-2016 12:04 AM

Anybody have any thoughts?

squidsk 03-18-2016 02:24 PM

There are a number of threads that give rewrites for removing vbseo for forums using apache. Find one of those and adapt the rewrite rules to the syntax that nginx requires.

EvilArcana 03-20-2016 12:44 AM

I didn't think to omit nginx from my search keywords...thanks...looking around I can only find rewrites for threads...not for attachments. My threads are working for the most part, I just need to fix the broken attachment links now.

--------------- Added [DATE]1458438305[/DATE] at [TIME]1458438305[/TIME] ---------------

As a matter of fact...was vbseo responsible for adding the forum name in the attachment path or could that have been from something else?


All times are GMT. The time now is 05:13 AM.

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.01089 seconds
  • Memory Usage 1,718KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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