Need Help With Data Compression For Lite Speed

#1
Greetings everyone.

I have been reading through the forum and need assistance with enabling data compression using htaccess. I have not found anything concrete as to what mod works for Lite Speed. Here are the three mods listed below:

Code:
<IfModule mod_deflate.c>
    <filesMatch "\.(js|css|html|php)$">
        SetOutputFilter DEFLATE
    </filesMatch>
</IfModule>
Here is another one:

Code:
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html|txt|css|js|php)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
And lastly:

Code:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
Would you know which one of these work with Lite Speed server? Or is any other mod available that is not mentioned above?

Lastly, would this mod work for image files such as PNG and jpeg and what would be the mod for that?

Thank you very much for any help you can provide. My hosting provider Beyond Hosting referred me as they stated that this forum can provide me with the best answers in relation to Lite Speed.

Regards
 

NiteWave

Administrator
#2
you can test a litespeed web site by checking the response headers for .js/.css/.html etc, the mentioned features already implemented by default -- you can save these lines of configuration.

however in case needed, you can adjust these settings through lsws web admin ( :7080)
Server -> Tuning -> GZIP Compression
 
#3
Thanks for your reply.

I can access the website with the :7080 port, but it is asking for username and login. I found this webpage on how to access the username and password using command lines which I am not familiar with.

https://www.litespeedtech.com/docs/webserver/admin

In that page, it states on how to change the username and password.

To change the login name and password for the WebAdmin interface, run the following command from the shell:

[your install dir]/admin/misc/admpass.sh

Does this mean accessing this through Windows Command Prompt?

Thanks,

Xavier
 
Top