« Previous Next »

Answered Thread: Can't get compression to work on 1 site - application pool issue?

Last post 10-07-2009 3:35 PM by pjsmith. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 10-07-2009, 11:15 AM

    • pjsmith
    • Not Ranked
    • Joined on 03-29-2006, 4:31 PM
    • Posts 10

    Can't get compression to work on 1 site - application pool issue?

    Hi,

     

    I've got compression enabled on our IIS6 server.  It works fine for most sites.  The main intention was to get .js and css to compress.  I have 2 sites.  1 runs on the default applciation pool, one on a custom one which runs under another identity.  The same .js file will be supplied compressed from the site running under the default applciation pool, but not the one with the different identity.  The first runs as 'network service', the second a local user account.  I suspect this has somthing to do with it, though I'm confused as the web page itself is served compressed from the second site.  It's only the supporting files like .css and .js that are not.

     I've checked permissions on gzip.dll etc, but cannot see any reason why this does not work.

    Is there anything I need to do if running on a different app pool and indentity to get this to work for supporting files?

     

    Thanks.

  • 10-07-2009, 3:35 PM In reply to

    • pjsmith
    • Not Ranked
    • Joined on 03-29-2006, 4:31 PM
    • Posts 10

    Answered Re: Can't get compression to work on 1 site - application pool issue?

     Solved :)

    It turns out that if you run an application pool with a custom identity you need to set individual permissions on the metabase keys using metabase explorer.  I had already added the IIS_WPG group that the account belongs to, but this doesn;t seem to be enough.  Adding the actual local account solved the problem and now all content is compressed :)

    1. LM –> Read
    2. W3SVC –> Read
    3. AppPools -> Query Unsecure Property (Special Permission)
    4. Filters -> Read and Write
    5. Compression –> deflate (Read and Write - Inherited)
    6. Compression –> gzip (Read and Write - Inherited)
    7. Restart IIS

     

Page 1 of 1 (2 items)
Microsoft Communities