Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #23  
Old 01-25-2013, 01:10 AM
AndrewSimm AndrewSimm is offline
 
Join Date: Sep 2006
Location: Atlanta, GA
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried the super charged mod about a year ago and had some issues with it. I am already using gzip

my htaccess is below if you would like to look at it.

I noticed an improvement when I set up ngnix. Maybe it could be done better but it seems to be working in some capacity.

Does anyone have a link to some independent benchmarks done with cloudflare?


Code:
RewriteOptions inherit
####Charset
AddDefaultCharset Off 

## Expires
<ifModule mod_expires.c>
	ExpiresActive On
	ExpiresDefault "access plus 1 seconds"
	ExpiresByType text/html "access plus 1 seconds"
	ExpiresByType image/gif "access plus 3456000 seconds"
	ExpiresByType image/jpeg "access plus 3456000 seconds"
	ExpiresByType image/png "access plus 3456000 seconds"
	ExpiresByType text/css "access plus 3456000 seconds"
	ExpiresByType text/javascript "access plus 3456000 seconds"
	ExpiresByType application/javascript "access plus 3456000 seconds"
	ExpiresByType application/x-javascript "access plus 3456000 seconds"
</ifModule>

## Compression
<ifmodule mod_headers.c>
	<ifmodule mod_deflate.c>
		AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
		BrowserMatch ^Mozilla/4 gzip-only-text/html
		BrowserMatch ^Mozilla/4\.0[678] no-gzip
		BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
	</ifmodule>
</ifmodule>

## Rewrites
<ifmodule mod_rewrite.c>
	RewriteEngine on
        DirectoryIndex index.php

        ReWriteRule ^media/m(\d+).*/tags$ media.php?do=tags_edit&mid=$1 [QSA]
	ReWriteRule ^media/m(\d+).*/edit$ media.php?do=details_edit&mid=$1 [QSA]
	ReWriteRule ^media/m(\d+).*/report$ media.php?do=report&mid=$1 [QSA]
	ReWriteRule ^media/m(\d+).*/c(\d+)$ media.php?do=comment_edit&cmt=$2 [QSA]
	ReWriteRule ^media/m(\d+).*/p(\d+).*$ media.php?do=details&mid=$1&pid=$2 [QSA]
	ReWriteRule ^media/m(\d+).* media.php?do=details&mid=$1 [QSA]
	ReWriteRule ^media/p(\d+).*/edit$ media.php?do=playlist_edit&pid=$1 [QSA]
	ReWriteRule ^media/p(\d+).* media.php?do=playlist&pid=$1 [QSA]
	ReWriteRule ^media/c(\d+).* media.php?do=category&cid=$1 [QSA]
	ReWriteRule ^media/u(\d+).* media.php?do=user&uid=$1 [QSA]
	ReWriteRule ^media/tag/(.*) media.php?do=tag&tid=$1 [QSA]
	ReWriteRule ^media/results/(.*) media.php?do=results&query=$1 [QSA]
	ReWriteRule ^media/advresults/(.*) media.php?do=advresults&query=$1 [QSA]
	ReWriteRule ^media/letter/(.*) media.php?do=letter&query=$1 [QSA]
	ReWriteRule ^media/browse.* media.php?do=browse [QSA]
	ReWriteRule ^media/search.* media.php?do=search [QSA]
	ReWriteRule ^media/random.* media.php?do=random [QSA]
	ReWriteRule ^media/submit.* media.php?do=submit [QSA]
	ReWriteRule ^media/tagcloud.* media.php?do=tagcloud [QSA]
	ReWriteRule ^media/playlists.* media.php?do=playlists [QSA]
	ReWriteRule ^media/pcreate.* media.php?do=playlists_create [QSA]
	ReWriteRule ^media/pmine.* media.php?do=playlists_mine [QSA]
	ReWriteRule ^media/favorites.* media.php?do=favorites [QSA]
	ReWriteRule ^media/subscriptions.* media.php?do=subscriptions [QSA]
	ReWriteRule ^media/admin/edit/s(\d+).* media.php?do=admin_host_edit&sid=$1 [QSA]
	ReWriteRule ^media/admin/delete/s(\d+).* media.php?do=admin_host_delete&sid=$1 [QSA]
	ReWriteRule ^media/admin/export/s(\d+).* media.php?do=admin_host_export&sid=$1 [QSA]
	ReWriteRule ^media/admin/(\w+).* media.php?do=admin_$1 [QSA]

	# Media Library from Video Directory
	RewriteCond %{QUERY_STRING} do=viewdetails&videoid=(\d+)
	RewriteRule ^video\.php$ media.php?do=details&mid=%1
	RewriteCond %{QUERY_STRING} viewcategory&categoryid=(\d+)
	RewriteRule ^video\.php$ media.php?do=category&cid=%1
	RewriteCond %{QUERY_STRING} viewuser&userid=(\d+)
	RewriteRule ^video\.php$ media.php?do=user&uid=%1
	RewriteCond %{QUERY_STRING} viewtag&tag=(.*)
	RewriteRule ^video\.php$ media.php?do=tag&tid=%1
	ReWriteRule ^video\.php$ media.php
 
 # Send hardcoded ipa scores to arcade instead
  RewriteCond %{QUERY_STRING} act=Arcade [OR]
  RewriteCond %{QUERY_STRING} autocom=arcade
  RewriteRule ^index.php arcade.php [L,QSA]

</ifmodule>

<Files 403.shtml>
order allow,deny
allow from all
</Files>

Options -Indexes
deny from 71.76.197.71
deny from 193.200.150.125
deny from 173.63.38.218
deny from 67.159.60.83
deny from 89.145.95.2

RewriteCond %{HTTP_HOST} ^www.canesinsight.com$ [NC]
RewriteRule ^(.*)$ http://canesinsight.com/$1 [R=301,L]

deny from 72.228.132.15
RewriteCond %{HTTP_HOST} ^canesinsight\.co$ [OR]
RewriteCond %{HTTP_HOST} ^www\.canesinsight\.co$
RewriteRule ^/?$ "http\:\/\/canesinsight\.com" [R=301,L]
--------------- Added [DATE]1359080196[/DATE] at [TIME]1359080196[/TIME] ---------------

Quote:
Originally Posted by nhawk View Post
I don't know why you're running Apache and Nginx, but it should be one or the other. Not both.

Normally when Nginx is installed apache is disabled.
I installed it as a cpanel plugin. I believe it comes set for nginx to serve the static content and apache the dynamic. I didn't see a easy way to just turn apache off and use nginx and didn't want to screw things up in my two busiest weeks of the year.
Reply With Quote
 


Posting Rules
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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:34 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.06550 seconds
  • Memory Usage 3,849KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_php
  • (17)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (37)post_thanks_box
  • (3)post_thanks_box_bit
  • (37)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (37)post_thanks_postbit_info
  • (37)postbit
  • (37)postbit_onlinestatus
  • (37)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete