Feedback on some additions to my website’s httpd.conf. HELP!

Hello,

I can be making some changes to the httpd. cong file for one of my websites to make it load more rapidly. Right now, I’m working on 1) enabling gzipping regarding text-type files by means of mod_deflate and 2) using browser caching regarding static files (e. f., images, css form sheets) via mod_expires.

After doing a fair amount of reading through to the subject, I have develop what I think works code. I also setup a test folder with my website featuring its own. htaccess archive and ran Google’s Web site Speed, Web Internet page Test, and other online testers, and in terms of I can notify, things look okay. At some point, I would want to update my virtual reality httpd. conf file to incorporate the code by my test folder’s. htaccess archive, but before WE do so, I would really like to get an extra opinion to see if it can be improved upon. This code is in the attachment (myhtaccessfilefortesting. txt).

In terms of the gzipping part is anxious, a Tech Help person who performs for westhost. com (where the website is hosted) posted a post with their blog along with some suggestions on what to raise your website’s httpd. conf archive to enable gzipping. Since this advice is coming by someone technical who will be on the team of westhost. com, Personally i think reasonably certain it should use my website as that may be where it will be hosted – nevertheless unfortunately, the code in the following paragraphs does not consist of any lines that deal with older browsers (e. f., IE 6. 0) that don’t recognize gzipping.

What I am looking for is someone who knows Apache and. htaccess to watch over what I’ve written to make sure me if or not my code looks okay.

What I would really like to know for example is

1) My code seems to figureout as a. htaccess archive, but can MY PARTNER AND I include it since is, line intended for line, in my personal website’s httpd. comf archive, or are generally there any modifications We need to make
2) Could the three lines starting with " BrowserMatch" handle older browsers just like IE Explorer A FEW. 0 than are unable to handle gzipping
3) Does the block of code starting using " Module mod_expires. c" look alright

Thanks a ton!

Below is usually a copy past regarding my file.

# BEGIN
< IfModule mod_expires. c>
< Filesmatch " \. (jpgjpegpnggifjspdfcssflvswfico)$" >
ExpiresActive on
ExpiresDefault " obtain plus 1 month"
< /Filesmatch>
< /IfModule>
#
# Each of the following statements concerning the opening and also closing IfModule tags (except to the BrowserMatch statements) usually are from
# Nick Venturella’s WestHost article dated 2009-06-09. Be aware: I left away his statements for xml because you can find other clients (e. f., RSS
# readers) besides browsers which could access xml plus I’m not 100% sure they will all handle gzipping.
# Your BrowserMatch statements (from http: //httpd. apache. org/docs/2. 0/mod/mod_deflate. html) are for certain antiquated browsers
# that end up having gzipping.
#
< IfModule mod_deflate. c>
SetInputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/rtf
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/postscript
AddOutputFilterByType DEFLATE application/msword
AddOutputFilterByType DEFLATE application/vnd. ms-excel
AddOutputFilterByType DEFLATE application/vnd. ms-powerpoint
BrowserMatch Mozilla/4 gzip-only-text/html
BrowserMatch Mozilla/4\. 0678 no-gzip
BrowserMatch \bMSIE! no-gzip! gzip-only-text/html
< /IfModule>
# END
.

This entry was posted in Web Design and tagged , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *