ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Important tip for ExpressionEngine on MOSSO hosting

August 01, 2008 7:19pm

Subscribe [2]
  • #1 / Aug 01, 2008 7:19pm

    Adrienne L. Travis

    213 posts

    Update: Further testing shows that gzipping is on by default at Mosso. So you don’t actually need to add the below code at all.

    I’ve recently switched to Mosso and i love it, but their Compute Cycles metric (which is just being rolled out) is still a little ... opaque. I have, however, found something really important as far as keeping usage down: turn *off* GZIP output in Admin -> System Preferences -> Output and Debugging Preferences. This setting causes EE to eat Compute Cycles like there is no tomorrow.

    If you still want your output GZIPped (and you really do! It really is important for bandwidth savings), do it using Apache’s built-in modules by adding the following to your .haccess file (remove whichever of the two you don’t need—MOSSO is gradually rolling out Apache 2.x, some people are still on 1.3x):

    # THE FOLLOWING TWO BLOCKS ARE MUTUALLY EXCLUSIVE. IF YOU KNOW WHAT SERVER VERSION YOU ARE RUNNING ON,
    # YOU SHOULD DELETE THE ONE THAT ISN'T NEEDED.
    
    # GZIP FOR APACHE 1.3.x SERVERS
    <IfModule mod_gzip.c>
        mod_gzip_on yes
        mod_gzip_dechunk yes
        mod_gzip_item_include file \.htm$
        mod_gzip_item_include file \.html$
        mod_gzip_item_include file \.php$
        mod_gzip_item_include file \.txt$
        mod_gzip_item_include mime ^text/.*
        mod_gzip_item_include file \.js$
        mod_gzip_item_include file \.css$
        mod_gzip_item_include file \.rdf$
        mod_gzip_item_include file \.xml$
        mod_gzip_item_include file \.rss$
        mod_gzip_item_include mime ^application/x-httpd-php
        mod_gzip_item_include mime ^application/x-javascript
        mod_gzip_item_include mime ^application/javascript
        mod_gzip_item_include mime ^text/css$
        mod_gzip_item_include mime ^text/plain$
        mod_gzip_item_include mime ^text/xml$
    </IfModule>
    
    # DEFLATE FOR APACHE 2.x SERVERS
    <IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml application/x-javascript application/javascript application/xhtml+xml
        <FilesMatch "\\.(js|css|html|htm|xml)$">
        SetOutputFilter DEFLATE
        </FilesMatch>
    </IfModule>

    (Note: There’s some redundancy, and I’m aware of it; it’s because Apache sometimes gets confused about MIME types, so it’s better to overspecify. YMMV, but this is my personal .htaccess configuration that goes on *all* my sites; i prefer overkill.)

  • #2 / Aug 06, 2008 12:35pm

    Charles Boudinot

    87 posts

    Great information and thanks for taking the time to share it!

    Now if I could figure out a way to use MSM on Mosso I’d be set.

  • #3 / Aug 06, 2008 12:38pm

    Adrienne L. Travis

    213 posts

    I know how to do it. Or at least, i know how to use the older unsupported version of the same thing on Mosso—two of my sites are running off the same install. (I’ve not actually used the MSM.) If you want to PM me i can see if i can help you work out the details!

  • #4 / Aug 06, 2008 12:54pm

    Charles Boudinot

    87 posts

    Thanks for the offer, just PM’d you.

  • #5 / Aug 07, 2008 7:08pm

    Adrienne L. Travis

    213 posts

    I’ve also just started a Wiki topic on Mosso + ExpressionEngine, here.

  • #6 / Aug 08, 2008 2:16pm

    Charles Boudinot

    87 posts

    I think that is a fantastic idea!

    Coming from a dedicated server for the last several years, to the “cloud” concept with Mosso, has been a challenge and I am sure others here are experiencing the same thing. Adding the Mosso wiki topic will give us a way to “stumble” through some of the more common annoyances of Mosso.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases