![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| I am using dedicated server and as you know - I had lots of troubles enabling gzip compression on server. Savant helped me do it with htaccess method, but I noticed this method does not speed up site significantly (at least on my server). I found a way to enable gzip compression without htaccess method, and it works perfectly fine: 1st, uncomment AddEncoding: Code: # AddEncoding x-compress .Z AddEncoding x-gzip .gz .tgz Code: # AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE application/x-httpd-php AddOutputFilterByType DEFLATE application/x-javascript Code: # AddType text/html .shtml .php .php3 .js .js.gz AddOutputFilter INCLUDES .shtml .php .php3 .js .js.gz Any suggestions? It should not be hard for experienced programmers to figure this out. Update: Just use savant's htaccess method to rewrite base_url. Don't change anything. Just rename htaccess.default to .htaccess (no need to uncomment php_value auto_prepend_file etc). Make sure you have these lines: Code: ## Remove these two lines if you have a sub-domain like http://ashdigg.pligg.com or http://localhost
## Keep if your site it like http://www.pligg.com
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^\/?(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
##### Re-directing End ##### |
| Sponsored Links |
|
Check out the New Modules at the Pligg Pro Shop.
|
| ||||
| for those people who can edit their httpd.conf this may help them but most people can't. I think the reason you are able to edit yours is because you have a dedicated server.
__________________ I accept donations for my time helping users like you on the forum and IRC. FREE and premium Pligg Web Hosting (NO ads, Includes MySQL, PHP, PHPMyAdmin, and Control Panel) - PM me for discounts on premium packages or if you would like a custom-made package. Paypal accepted. |
| |||
| Quote:
![]() Update: It works like a charm. Original Size: 68 K Gzipped Size: 9 K Data Savings: 86.76% Last edited by Daniel : 03-01-2007 at 09:41 PM. |
| |||
| Damn it. There is a problem. It's gzipped, and it's too damn slow. HELP !!!!!!!!!!!!!!!!!!!!!!!!!!!!! Connection Rate Download Time 14.4K 138.26 seconds 28.8K 77.23 seconds 33.6K 68.51 seconds 56K 47.59 seconds ISDN 128K 25.81 seconds T1 1.44Mbps 17.03 seconds Last edited by Daniel : 02-15-2007 at 11:43 PM. |
| |||
| Update, it's slow even with .htaccess enabled, here is comparison (no change in speed...) php_value auto_prepend_file /absolute-server-path/httpdocs/begin_gzip.php php_value auto_append_file /absolute-server-path/httpdocs/end_gzip.php Connection Rate Download Time 14.4K 138.25 seconds 28.8K 77.22 seconds 33.6K 68.51 seconds 56K 47.58 seconds ISDN 128K 25.81 seconds T1 1.44Mbps 17.03 seconds Guys, let's face it. It must be Pligg. Gzip compression is enabled on my server. I even tested it with .htaccess. |
| ||||
| This is what firebug says. palluxo.PNG For some reason it's taking quite a long time to download the gz files.
__________________ Anatomy of the Pligg template Help needed |
| ||||
| Don't you have a shared server that you said works fine? How come I can get Pligg down to 10 secs with 56k and .4 seconds with high speed? I tohught we already came to the conclusion that your dedicated server was causing you problems?
__________________ I accept donations for my time helping users like you on the forum and IRC. FREE and premium Pligg Web Hosting (NO ads, Includes MySQL, PHP, PHPMyAdmin, and Control Panel) - PM me for discounts on premium packages or if you would like a custom-made package. Paypal accepted. |
| |||
| Quote:
Quote:
savant, could it be that mod_gzip is the culprit? mod_gzip is an Internet Content Acceleration module for the popular Apache Web Server. It compresses the contents delivered to the client. There is no need to install any additional software on the client! http://sourceforge.net/projects/mod-gzip/ Hey... savant, please comment. ![]() |
| ||||
| honestly i don't know. never used it before
__________________ Anatomy of the Pligg template Help needed |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Gzip compression | Daniel | Core Development | 3 | 02-14-2007 08:05 AM |






Linear Mode

