Go Back   vb.org Archive > Community Discussions > Forum and Server Management

Reply
 
Thread Tools Display Modes
  #21  
Old 01-24-2013, 05:18 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by final kaoss View Post
1. With the correct settings vb4 supercharged works just fine for combining js & css, that is all that you really need it for since there are other ways to cache it & compress it without relying on the plugin to do it for you. Also what bugs are there with it? With the advice from my article you can run it pretty much with zero worries.

My advice is to enable every option except for these:
Html Optimiser
Javascript Optimiser
Attachment Optimiser
Thats a lot of options your disabling for a hack that works right.
Reply With Quote
  #22  
Old 01-24-2013, 05:22 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep but I've been able to throw just about any mod I want onto it with no worries with it setup like that, including chats & arcades to test with.
Reply With Quote
  #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
  #24  
Old 01-25-2013, 02:29 AM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the modified htaccess that I recommend for you (includes all of your old rewrite rules yet improves upon the caching/gzip.)

Although if you use cloudflare you would want to load only www urls and no urls that do not have www.
https://discussion.dreamhost.com/thr...html#pid158213
Quote:
Originally Posted by https://discussion.dreamhost.com/thread-136317-post-158213.html#pid158213

RE: Cloudflare without "www"
Hi,

Using CloudFlare through the panel option requires the www entry (DNS RFC compliance only allows us to provision via CNAME).

Note: This does not apply if you are signing up directly for CloudFlare.
PHP Code:
# Author: Final Kaoss (aka: Extreme-Gaming)
# Version 2.7
RewriteEngine on

# This file is only needed if you have set the Forum Component URL in your admincp and you are 
# using the mod_rewrite option for friendly urls.  If this is the case, copy this file
# to your forum component stub directory.

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

        ReWriteRule 
^media/m(\d+).*/tagsmedia.php?do=tags_edit&mid=$[QSA]
    
ReWriteRule ^media/m(\d+).*/editmedia.php?do=details_edit&mid=$[QSA]
    
ReWriteRule ^media/m(\d+).*/reportmedia.php?do=report&mid=$[QSA]
    
ReWriteRule ^media/m(\d+).*/c(\d+)$ media.php?do=comment_edit&cmt=$[QSA]
    
ReWriteRule ^media/m(\d+).*/p(\d+).*$ media.php?do=details&mid=$1&pid=$[QSA]
    
ReWriteRule ^media/m(\d+).* media.php?do=details&mid=$[QSA]
    
ReWriteRule ^media/p(\d+).*/editmedia.php?do=playlist_edit&pid=$[QSA]
    
ReWriteRule ^media/p(\d+).* media.php?do=playlist&pid=$[QSA]
    
ReWriteRule ^media/c(\d+).* media.php?do=category&cid=$[QSA]
    
ReWriteRule ^media/u(\d+).* media.php?do=user&uid=$[QSA]
    
ReWriteRule ^media/tag/(.*) media.php?do=tag&tid=$[QSA]
    
ReWriteRule ^media/results/(.*) media.php?do=results&query=$[QSA]
    
ReWriteRule ^media/advresults/(.*) media.php?do=advresults&query=$[QSA]
    
ReWriteRule ^media/letter/(.*) media.php?do=letter&query=$[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=$[QSA]
    
ReWriteRule ^media/admin/delete/s(\d+).* media.php?do=admin_host_delete&sid=$[QSA]
    
ReWriteRule ^media/admin/export/s(\d+).* media.php?do=admin_host_export&sid=$[QSA]
    
ReWriteRule ^media/admin/(\w+).* media.php?do=admin_$[QSA]

    
# Media Library from Video Directory
    
RewriteCond %{QUERY_STRING} do=viewdetails&videoid=(\d+)
    
RewriteRule ^video\.phpmedia.php?do=details&mid=%1
    RewriteCond 
%{QUERY_STRINGviewcategory&categoryid=(\d+)
    
RewriteRule ^video\.phpmedia.php?do=category&cid=%1
    RewriteCond 
%{QUERY_STRINGviewuser&userid=(\d+)
    
RewriteRule ^video\.phpmedia.php?do=user&uid=%1
    RewriteCond 
%{QUERY_STRINGviewtag&tag=(.*)
    
RewriteRule ^video\.phpmedia.php?do=tag&tid=%1
    ReWriteRule 
^video\.phpmedia.php
 
 
# Send hardcoded ipa scores to arcade instead
  
RewriteCond %{QUERY_STRINGact=Arcade [OR]
  
RewriteCond %{QUERY_STRINGautocom=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]


#Deny attempts to view the Htaccess file.
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
# BEGIN Browser Caching/Headers
<IfModule mod_mime.c>
    
AddType text/css .css
    AddType text
/richtext .rtf .rtx
    AddType image
/svg+xml .svg .svgz
    AddType text
/plain .txt
    AddType text
/xsd .xsd
    AddType text
/xsl .xsl
    AddType video
/asf .asf .asx .wax .wmv .wmx
    AddType video
/avi .avi
    AddType image
/bmp .bmp
    AddType application
/java .class
    
AddType video/divx .divx
    AddType application
/msword .doc .docx
    AddType application
/x-msdownload .exe
    AddType image
/gif .gif
    AddType application
/x-gzip .gz .gzip
    AddType image
/x-icon .ico
    AddType image
/jpeg .jpg .jpeg .jpe
    AddType application
/vnd.ms-access .mdb
    AddType audio
/midi .mid .midi
    AddType video
/quicktime .mov .qt
    AddType audio
/mpeg .mp3 .m4a
    AddType video
/mp4 .mp4 .m4v
    AddType video
/mpeg .mpeg .mpg .mpe
    AddType application
/vnd.ms-project .mpp
    AddType application
/vnd.oasis.opendocument.database .odb
    AddType application
/vnd.oasis.opendocument.chart .odc
    AddType application
/vnd.oasis.opendocument.formula .odf
    AddType application
/vnd.oasis.opendocument.graphics .odg
    AddType application
/vnd.oasis.opendocument.presentation .odp
    AddType application
/vnd.oasis.opendocument.spreadsheet .ods
    AddType application
/vnd.oasis.opendocument.text .odt
    AddType audio
/ogg .ogg
    AddType application
/pdf .pdf
    AddType image
/png .png
    AddType application
/vnd.ms-powerpoint .pot .pps .ppt .pptx
    AddType audio
/x-realaudio .ra .ram
    AddType application
/x-shockwave-flash .swf
    AddType application
/x-tar .tar
    AddType image
/tiff .tif .tiff
    AddType audio
/wav .wav
    AddType audio
/wma .wma
    AddType application
/vnd.ms-write .wri
    AddType application
/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
    AddType application
/zip .zip
</IfModule>
<
IfModule mod_expires.c>
    
ExpiresActive On
    ExpiresByType text
/css A2628000
    ExpiresByType text
/richtext A3600
    ExpiresByType image
/svg+xml A3600
    ExpiresByType text
/plain A3600
    ExpiresByType text
/xsd A3600
    ExpiresByType text
/xsl A3600
    ExpiresByType video
/asf A2628000
    ExpiresByType video
/avi A2628000
    ExpiresByType image
/bmp A2628000
    ExpiresByType application
/java A2628000
    ExpiresByType video
/divx A2628000
    ExpiresByType application
/msword A2628000
    ExpiresByType application
/x-msdownload A2628000
    ExpiresByType image
/gif A2628000
    ExpiresByType application
/x-gzip A2628000
    ExpiresByType image
/x-icon A2628000
    ExpiresByType image
/jpeg A2628000
    ExpiresByType application
/vnd.ms-access A2628000
    ExpiresByType audio
/midi A2628000
    ExpiresByType video
/quicktime A2628000
    ExpiresByType audio
/mpeg A2628000
    ExpiresByType video
/mp4 A2628000
    ExpiresByType video
/mpeg A2628000
    ExpiresByType application
/vnd.ms-project A2628000
    ExpiresByType application
/vnd.oasis.opendocument.database A2628000
    ExpiresByType application
/vnd.oasis.opendocument.chart A2628000
    ExpiresByType application
/vnd.oasis.opendocument.formula A2628000
    ExpiresByType application
/vnd.oasis.opendocument.graphics A2628000
    ExpiresByType application
/vnd.oasis.opendocument.presentation A2628000
    ExpiresByType application
/vnd.oasis.opendocument.spreadsheet A2628000
    ExpiresByType application
/vnd.oasis.opendocument.text A2628000
    ExpiresByType audio
/ogg A2628000
    ExpiresByType application
/pdf A2628000
    ExpiresByType image
/png A2628000
    ExpiresByType application
/vnd.ms-powerpoint A2628000
    ExpiresByType audio
/x-realaudio A2628000
    ExpiresByType application
/x-shockwave-flash A2628000
    ExpiresByType application
/x-tar A2628000
    ExpiresByType image
/tiff A2628000
    ExpiresByType audio
/wav A2628000
    ExpiresByType audio
/wma A2628000
    ExpiresByType application
/vnd.ms-write A2628000
    ExpiresByType application
/vnd.ms-excel A2628000
    ExpiresByType application
/zip A2628000
</IfModule>
<
IfModule mod_deflate.c>
    <
IfModule mod_setenvif.c>
        
BrowserMatch ^Mozilla/4 gzip-only-text/html
        BrowserMatch 
^Mozilla/4\.0[678no-gzip
        BrowserMatch 
\bMSIE !no-gzip !gzip-only-text/html
        BrowserMatch 
\bMSI[E] !no-gzip !gzip-only-text/html
    
</IfModule>
    <
IfModule mod_headers.c>
        
Header append Vary User-Agent env=!dont-vary
    
</IfModule>
    <
IfModule mod_filter.c>
        
AddOutputFilterByType DEFLATE text/css application/x-javascript text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
    
</IfModule>
</
IfModule>
<
FilesMatch "\.(css|CSS|)$">
    <
IfModule mod_headers.c>
        
Header set Pragma "public"
        
Header append Cache-Control "public, must-revalidate, proxy-revalidate"
    
</IfModule>
    
FileETag MTime Size
    
<IfModule mod_headers.c>
         
Header set X-Powered-By "Step by Step guide to speed up your VB4 (forum only)"
    
</IfModule>
</
FilesMatch>
<
FilesMatch "\.(rtf|rtx|svg|svgz|txt|xsd|xsl|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|)$">
    <
IfModule mod_headers.c>
        
Header set Pragma "public"
        
Header append Cache-Control "public, must-revalidate, proxy-revalidate"
    
</IfModule>
    
FileETag MTime Size
    
<IfModule mod_headers.c>
         
Header set X-Powered-By "Step by Step guide to speed up your VB4 (forum only)"
    
</IfModule>
</
FilesMatch>
<
FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SWF|TAR|TIF|TIFF|WAV|WMA|WRI|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
    <
IfModule mod_headers.c>
        
Header set Pragma "public"
        
Header append Cache-Control "public, must-revalidate, proxy-revalidate"
    
</IfModule>
    
FileETag MTime Size
    
<IfModule mod_headers.c>
         
Header set X-Powered-By "Step by Step guide to speed up your VB4 (forum only)"
    
</IfModule>
</
FilesMatch>
# End Browser Caching/Headers 
Unfortunately I don't have any benchmark comparisons for before & after cloudflare but here is my latest gtmetrix score on my site that does have cloudflare enabled.
http://gtmetrix.com/reports/www.vide...t.com/lcSDSldq

Also I know nothing about nginx rewrite rules atm so I can't help you with that, maybe I'll try to learn it within the coming month's.
Reply With Quote
  #25  
Old 01-25-2013, 03:09 AM
cloferba cloferba is offline
 
Join Date: Apr 2009
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what does ReWriteRule+^media/p(d+).*/edit$+media.php?do=playlist_edit&pid=$1+[QSA] exactly do?
Reply With Quote
  #26  
Old 01-25-2013, 03:13 AM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That I believe is for some kindof media addon that used to be popular but is now abandoned, brb.

This is the addon that requires all of the "media" rewrites..
https://vborg.vbsupport.ru/showthread.php?t=240677
Reply With Quote
  #27  
Old 01-25-2013, 03:35 AM
AndrewSimm AndrewSimm is offline
 
Join Date: Sep 2006
Location: Atlanta, GA
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by final kaoss View Post
Here is the modified htaccess that I recommend for you (includes all of your old rewrite rules yet improves upon the caching/gzip.)

Although if you use cloudflare you would want to load only www urls and no urls that do not have www.
https://discussion.dreamhost.com/thr...html#pid158213


PHP Code:
# Author: Final Kaoss (aka: Extreme-Gaming)
# Version 2.7
RewriteEngine on

# This file is only needed if you have set the Forum Component URL in your admincp and you are 
# using the mod_rewrite option for friendly urls.  If this is the case, copy this file
# to your forum component stub directory.

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

        ReWriteRule 
^media/m(\d+).*/tagsmedia.php?do=tags_edit&mid=$[QSA]
    
ReWriteRule ^media/m(\d+).*/editmedia.php?do=details_edit&mid=$[QSA]
    
ReWriteRule ^media/m(\d+).*/reportmedia.php?do=report&mid=$[QSA]
    
ReWriteRule ^media/m(\d+).*/c(\d+)$ media.php?do=comment_edit&cmt=$[QSA]
    
ReWriteRule ^media/m(\d+).*/p(\d+).*$ media.php?do=details&mid=$1&pid=$[QSA]
    
ReWriteRule ^media/m(\d+).* media.php?do=details&mid=$[QSA]
    
ReWriteRule ^media/p(\d+).*/editmedia.php?do=playlist_edit&pid=$[QSA]
    
ReWriteRule ^media/p(\d+).* media.php?do=playlist&pid=$[QSA]
    
ReWriteRule ^media/c(\d+).* media.php?do=category&cid=$[QSA]
    
ReWriteRule ^media/u(\d+).* media.php?do=user&uid=$[QSA]
    
ReWriteRule ^media/tag/(.*) media.php?do=tag&tid=$[QSA]
    
ReWriteRule ^media/results/(.*) media.php?do=results&query=$[QSA]
    
ReWriteRule ^media/advresults/(.*) media.php?do=advresults&query=$[QSA]
    
ReWriteRule ^media/letter/(.*) media.php?do=letter&query=$[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=$[QSA]
    
ReWriteRule ^media/admin/delete/s(\d+).* media.php?do=admin_host_delete&sid=$[QSA]
    
ReWriteRule ^media/admin/export/s(\d+).* media.php?do=admin_host_export&sid=$[QSA]
    
ReWriteRule ^media/admin/(\w+).* media.php?do=admin_$[QSA]

    
# Media Library from Video Directory
    
RewriteCond %{QUERY_STRING} do=viewdetails&videoid=(\d+)
    
RewriteRule ^video\.phpmedia.php?do=details&mid=%1
    RewriteCond 
%{QUERY_STRINGviewcategory&categoryid=(\d+)
    
RewriteRule ^video\.phpmedia.php?do=category&cid=%1
    RewriteCond 
%{QUERY_STRINGviewuser&userid=(\d+)
    
RewriteRule ^video\.phpmedia.php?do=user&uid=%1
    RewriteCond 
%{QUERY_STRINGviewtag&tag=(.*)
    
RewriteRule ^video\.phpmedia.php?do=tag&tid=%1
    ReWriteRule 
^video\.phpmedia.php
 
 
# Send hardcoded ipa scores to arcade instead
  
RewriteCond %{QUERY_STRINGact=Arcade [OR]
  
RewriteCond %{QUERY_STRINGautocom=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]


#Deny attempts to view the Htaccess file.
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
# BEGIN Browser Caching/Headers
<IfModule mod_mime.c>
    
AddType text/css .css
    AddType text
/richtext .rtf .rtx
    AddType image
/svg+xml .svg .svgz
    AddType text
/plain .txt
    AddType text
/xsd .xsd
    AddType text
/xsl .xsl
    AddType video
/asf .asf .asx .wax .wmv .wmx
    AddType video
/avi .avi
    AddType image
/bmp .bmp
    AddType application
/java .class
    
AddType video/divx .divx
    AddType application
/msword .doc .docx
    AddType application
/x-msdownload .exe
    AddType image
/gif .gif
    AddType application
/x-gzip .gz .gzip
    AddType image
/x-icon .ico
    AddType image
/jpeg .jpg .jpeg .jpe
    AddType application
/vnd.ms-access .mdb
    AddType audio
/midi .mid .midi
    AddType video
/quicktime .mov .qt
    AddType audio
/mpeg .mp3 .m4a
    AddType video
/mp4 .mp4 .m4v
    AddType video
/mpeg .mpeg .mpg .mpe
    AddType application
/vnd.ms-project .mpp
    AddType application
/vnd.oasis.opendocument.database .odb
    AddType application
/vnd.oasis.opendocument.chart .odc
    AddType application
/vnd.oasis.opendocument.formula .odf
    AddType application
/vnd.oasis.opendocument.graphics .odg
    AddType application
/vnd.oasis.opendocument.presentation .odp
    AddType application
/vnd.oasis.opendocument.spreadsheet .ods
    AddType application
/vnd.oasis.opendocument.text .odt
    AddType audio
/ogg .ogg
    AddType application
/pdf .pdf
    AddType image
/png .png
    AddType application
/vnd.ms-powerpoint .pot .pps .ppt .pptx
    AddType audio
/x-realaudio .ra .ram
    AddType application
/x-shockwave-flash .swf
    AddType application
/x-tar .tar
    AddType image
/tiff .tif .tiff
    AddType audio
/wav .wav
    AddType audio
/wma .wma
    AddType application
/vnd.ms-write .wri
    AddType application
/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
    AddType application
/zip .zip
</IfModule>
<
IfModule mod_expires.c>
    
ExpiresActive On
    ExpiresByType text
/css A2628000
    ExpiresByType text
/richtext A3600
    ExpiresByType image
/svg+xml A3600
    ExpiresByType text
/plain A3600
    ExpiresByType text
/xsd A3600
    ExpiresByType text
/xsl A3600
    ExpiresByType video
/asf A2628000
    ExpiresByType video
/avi A2628000
    ExpiresByType image
/bmp A2628000
    ExpiresByType application
/java A2628000
    ExpiresByType video
/divx A2628000
    ExpiresByType application
/msword A2628000
    ExpiresByType application
/x-msdownload A2628000
    ExpiresByType image
/gif A2628000
    ExpiresByType application
/x-gzip A2628000
    ExpiresByType image
/x-icon A2628000
    ExpiresByType image
/jpeg A2628000
    ExpiresByType application
/vnd.ms-access A2628000
    ExpiresByType audio
/midi A2628000
    ExpiresByType video
/quicktime A2628000
    ExpiresByType audio
/mpeg A2628000
    ExpiresByType video
/mp4 A2628000
    ExpiresByType video
/mpeg A2628000
    ExpiresByType application
/vnd.ms-project A2628000
    ExpiresByType application
/vnd.oasis.opendocument.database A2628000
    ExpiresByType application
/vnd.oasis.opendocument.chart A2628000
    ExpiresByType application
/vnd.oasis.opendocument.formula A2628000
    ExpiresByType application
/vnd.oasis.opendocument.graphics A2628000
    ExpiresByType application
/vnd.oasis.opendocument.presentation A2628000
    ExpiresByType application
/vnd.oasis.opendocument.spreadsheet A2628000
    ExpiresByType application
/vnd.oasis.opendocument.text A2628000
    ExpiresByType audio
/ogg A2628000
    ExpiresByType application
/pdf A2628000
    ExpiresByType image
/png A2628000
    ExpiresByType application
/vnd.ms-powerpoint A2628000
    ExpiresByType audio
/x-realaudio A2628000
    ExpiresByType application
/x-shockwave-flash A2628000
    ExpiresByType application
/x-tar A2628000
    ExpiresByType image
/tiff A2628000
    ExpiresByType audio
/wav A2628000
    ExpiresByType audio
/wma A2628000
    ExpiresByType application
/vnd.ms-write A2628000
    ExpiresByType application
/vnd.ms-excel A2628000
    ExpiresByType application
/zip A2628000
</IfModule>
<
IfModule mod_deflate.c>
    <
IfModule mod_setenvif.c>
        
BrowserMatch ^Mozilla/4 gzip-only-text/html
        BrowserMatch 
^Mozilla/4\.0[678no-gzip
        BrowserMatch 
\bMSIE !no-gzip !gzip-only-text/html
        BrowserMatch 
\bMSI[E] !no-gzip !gzip-only-text/html
    
</IfModule>
    <
IfModule mod_headers.c>
        
Header append Vary User-Agent env=!dont-vary
    
</IfModule>
    <
IfModule mod_filter.c>
        
AddOutputFilterByType DEFLATE text/css application/x-javascript text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
    
</IfModule>
</
IfModule>
<
FilesMatch "\.(css|CSS|)$">
    <
IfModule mod_headers.c>
        
Header set Pragma "public"
        
Header append Cache-Control "public, must-revalidate, proxy-revalidate"
    
</IfModule>
    
FileETag MTime Size
    
<IfModule mod_headers.c>
         
Header set X-Powered-By "Step by Step guide to speed up your VB4 (forum only)"
    
</IfModule>
</
FilesMatch>
<
FilesMatch "\.(rtf|rtx|svg|svgz|txt|xsd|xsl|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|)$">
    <
IfModule mod_headers.c>
        
Header set Pragma "public"
        
Header append Cache-Control "public, must-revalidate, proxy-revalidate"
    
</IfModule>
    
FileETag MTime Size
    
<IfModule mod_headers.c>
         
Header set X-Powered-By "Step by Step guide to speed up your VB4 (forum only)"
    
</IfModule>
</
FilesMatch>
<
FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SWF|TAR|TIF|TIFF|WAV|WMA|WRI|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
    <
IfModule mod_headers.c>
        
Header set Pragma "public"
        
Header append Cache-Control "public, must-revalidate, proxy-revalidate"
    
</IfModule>
    
FileETag MTime Size
    
<IfModule mod_headers.c>
         
Header set X-Powered-By "Step by Step guide to speed up your VB4 (forum only)"
    
</IfModule>
</
FilesMatch>
# End Browser Caching/Headers 
Unfortunately I don't have any benchmark comparisons for before & after cloudflare but here is my latest gtmetrix score on my site that does have cloudflare enabled.
http://gtmetrix.com/reports/www.vide...t.com/lcSDSldq

Also I know nothing about nginx rewrite rules atm so I can't help you with that, maybe I'll try to learn it within the coming month's.
I changed my htaccess to yours. What exactly does it do differently than mine?
Reply With Quote
  #28  
Old 01-25-2013, 03:43 AM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What it has done is improved your score in a few areas.
http://gtmetrix.com/compare/x3r3SsIp/6uFU7ZYI

Your webpagetest score is also much better than it was previously as well now.
http://www.webpagetest.org/result/130125_G1_3JM/

Although webpagetest archive results are a bit harder to find..

If you still have that custom htaccess, something is still not allowing you to properly cache images it looks like and it could be nginx is my guess. The only stuff that should be failing is external resources.

http://www.webpagetest.org/pagespeed...run=1&cached=0
Reply With Quote
  #29  
Old 01-25-2013, 03:50 AM
AndrewSimm AndrewSimm is offline
 
Join Date: Sep 2006
Location: Atlanta, GA
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

give me a min and I will turn nginx off

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

I ran

root@can [/etc/init.d]# httpd stop
Stopping nginx daemon: nginx.

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

Hm I am not sure I have a way to just stop nginx
Reply With Quote
  #30  
Old 01-25-2013, 04:09 AM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I do know that cloudflare does support caching but I haven't had a chance to try it out without the modified htaccess. That could help you in the meantime. Remember to disable rocketloader.
Reply With Quote
Reply

Thread Tools
Display Modes

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 08:41 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.05610 seconds
  • Memory Usage 2,537KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (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_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete