linnou
11-02-2013, بتوقيت غرينيتش 02:10 AM
السلام عليكم ورحمة الله وبركاته.
اليوم شرح طريقةنا هو تفعيل mod_deflate او mod_zip في لوحة plesk http://www.dzbatna.com/images/smilies/cupidarrow.gif
طبق الأوامر الثالية بالترتيب http://www.dzbatna.com/images/smilies/smoke1.gif
رمز Code:
vi /etc/httpd/conf/httpd.conf
إبحث عن هذا السطر
رمز Code:
#LoadModule deflate_module modules/mod_deflate.so
تم قم بحدف علامة # امام السطر واعمل حفظ
تم قم بعمل اعادة تشغيل للأباتشي عبر الامر
رمز Code:
/etc/init.d/httpd restart
تم
رمز Code:
vi /etc/httpd/conf.d/deflate.conf
اضف فيه هذا الكود code
رمز Code:
<Location /> <IfModule mod_deflate.c> # the above makes sure that everything has loaded correctly. # we don't want apache crashing for no good reason. # Insert filter SetOutputFilter DEFLATE # Netscape 4.x has some problems BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have some more problems BrowserMatch ^Mozilla/4\.0[678] no-gzip # MSIE masquerades as Netscape, but it is fine BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html # Don't compress images SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary # or pdfs SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary # or binary archives SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar|iso|dia)$ no-gzip dont-vary # or javascript SetEnvIfNoCase Request_URI \.(?:js)$ no-gzip dont-vary # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary <IfModule mod_headers.c> #properly handle requests coming from behind proxies Header append Vary User-Agent env=!dont-vary </IfModule> </IfModule> </Location>
تم بعدها اعمل اعادة تشغيل الأباتشي عبر
رمز Code:
/etc/init.d/httpd restart
والسلام عليكم ورحمة الله وبركاته. http://www.dzbatna.com/images/smilies/bigsmile.gif
https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©
اليوم شرح طريقةنا هو تفعيل mod_deflate او mod_zip في لوحة plesk http://www.dzbatna.com/images/smilies/cupidarrow.gif
طبق الأوامر الثالية بالترتيب http://www.dzbatna.com/images/smilies/smoke1.gif
رمز Code:
vi /etc/httpd/conf/httpd.conf
إبحث عن هذا السطر
رمز Code:
#LoadModule deflate_module modules/mod_deflate.so
تم قم بحدف علامة # امام السطر واعمل حفظ
تم قم بعمل اعادة تشغيل للأباتشي عبر الامر
رمز Code:
/etc/init.d/httpd restart
تم
رمز Code:
vi /etc/httpd/conf.d/deflate.conf
اضف فيه هذا الكود code
رمز Code:
<Location /> <IfModule mod_deflate.c> # the above makes sure that everything has loaded correctly. # we don't want apache crashing for no good reason. # Insert filter SetOutputFilter DEFLATE # Netscape 4.x has some problems BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have some more problems BrowserMatch ^Mozilla/4\.0[678] no-gzip # MSIE masquerades as Netscape, but it is fine BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html # Don't compress images SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary # or pdfs SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary # or binary archives SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar|iso|dia)$ no-gzip dont-vary # or javascript SetEnvIfNoCase Request_URI \.(?:js)$ no-gzip dont-vary # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary <IfModule mod_headers.c> #properly handle requests coming from behind proxies Header append Vary User-Agent env=!dont-vary </IfModule> </IfModule> </Location>
تم بعدها اعمل اعادة تشغيل الأباتشي عبر
رمز Code:
/etc/init.d/httpd restart
والسلام عليكم ورحمة الله وبركاته. http://www.dzbatna.com/images/smilies/bigsmile.gif
https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©