Status
Not open for further replies.

pcam

Customer
I followed a post here, http://www.dragonbyte-tech.com/f239/nginx-13232/ , and urls are being optimized, but my images are broken.

I am using nginx, vB 4.2.2, and have just purchased db seo.

When I revert to my non dbseo nginx vhost for the board, the images are correctly distributed.

I had a couple of hours thinking it was Template Modifications Manager, United CSS Sprites, but after thinking if it works when the rewrite rules are disabled, I'm lead to believe it is in fact the rewrite rules causing the problem.

Any help would be appreciated
 
Unfortunately, with no experience or knowledge in nginx rewrite rules, I have no real way of assisting with this.

All I can do is give general advice, and I'd advise you to ensure only php files are rewritten to the dbseo.php file.
 
Hi pcam,

Try disabling rewrites of the attachments url's. Is your config with nginx working with Tapatalk... Maybe we can help each other out :)
 
I've resolved the problem by adding this above the dbseo rewrite rules and thanks for them sendur/dbtech.

# This block will catch static file requests, such as images, css, js
# The ?: prefix is a 'non-capturing' mark, meaning we do not require
# the pattern to be captured into $1 which should help improve performance
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
# Some basic cache-control for static files to be sent to the browser
expires max;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}

According to , IfIsEvil - Nginx Community it's a good idea to convert "if" 's to "try" 's with nginx.
They say "if" 's are "evil", (the last thing I want is my web server to be evil)

Here are some of the urls I visited in researching nginx rewrite rules.

Module ngx_http_core_module
Nginx Configuration Examples » KBeezie (a good explanatory read)
Pitfalls - Nginx Community (shortcomings)
CodeIgniter NGINX Rewrite Rules (so-so)
Configuration Nginx rewrites rules pour WordPress 3 multi-blog php-fpm (a good breakdown of an example)

I went to many sites and these were the ones that helped me.
 
Tapatalk resolution for If statements

Hi pcam,

Try disabling rewrites of the attachments url's. Is your config with nginx working with Tapatalk... Maybe we can help each other out :)

sendur,

I'm still improperly using the if statements in the nginx rewrite rules, but I found a solution for tapatalk until I *rewrite* the rewrite's to not use if statements, and instead use try's.

If your tapatalk subfolder is mobiquo like mine is then this will do the trick, if not replace it with what you call your subfolder for the tapatalk plugin.

[HL=tapatalk] if ($request_uri ~* ^/forum/mobiquo) {
break;
}[/HL]

if (-f $request_filename) {
expires 30d;
break;
}

if ($request_filename ~ "\.php$" ) {
rewrite ^(/forum/.*)$ /forum/dbseo.php last;
}


if (!-e $request_filename) {
rewrite ^/forum/(.*)$ /forum/dbseo.php last;
}
 
Status
Not open for further replies.

Legacy DragonByte SEO

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
7,190
Customer rating
5.00 star(s) 1 ratings
Back
Top