PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : نصب مود ها در دایرکت ادمین



amin0256
September 24th, 2014, 21:23
با سلام من نیاز دارم تا مود های
mod_deflate
mod_headers
mod_expires
رو نصب کنم تا در htaccess ازشون استفاده کنم.
ممنون می شم اگر کامل راهنماییم کنید.
پیشاپیش از کمک مفیدتون ممنونم.

mehrshad13and11
September 24th, 2014, 22:35
کار خاصی نداره کافیه دانلود کنید و در ابتدای فایل کانفیگ اپاچی لودش کنید فرقی هم نمیکنه سی پنل باشه دایرکت ادمین باشه ، فقط باید اپاچی باشه.

amin0256
September 27th, 2014, 23:39
سلام تشکر بسیار
می شه یه آموزش کامل بدید ؟
پیاپیش از کمک مفیدتون ممنونم چون من هیچی سر در نمیارم.

vpsroom.org
September 28th, 2014, 09:41
با سلام من نیاز دارم تا مود های
mod_deflate
mod_headers
mod_expires
رو نصب کنم تا در htaccess ازشون استفاده کنم.
ممنون می شم اگر کامل راهنماییم کنید.
پیشاپیش از کمک مفیدتون ممنونم.
سلام
من هم نیاز دارم.
ممنون میشم کاملتر بیان کنید

mr.ahmad
September 28th, 2014, 13:37
سلام برای deflate از روش زیر
mod_deflate (http://forum.directadmin.com/showthread.php?t=13624)


wget http://www.inetbase.com/scripts/ddos/install.sh
chmod 0700 install.sh
./install.sh


و یا برای راهنمای بشتر برای مود ها از اموزش های زیر استفاده کنید

Adding custom modules to apache for custombuild (http://help.directadmin.com/item.php?id=191)

how fixit problem mod_deflate mod_filter mod_gzip mod_headers mod_expires mod_mime mo (http://forum.directadmin.com/showthread.php?t=43704)

amin0256
September 29th, 2014, 16:34
سلام و تشکر
ای کد htaccess من هست :





# supress php errors



AddDefaultCharset UTF-8



php_flag display_startup_errors off



php_flag display_errors off



php_flag html_errors off



php_value docref_root 0



php_value docref_ext 0



AddType application/x-httpd-php .html .htm



php_flag display_startup_errors on



php_flag display_errors on



# BEGIN Expire headers



<ifModule mod_expires.c>



ExpiresActive On



ExpiresDefault "access plus 1 month"



ExpiresByType image/x-icon "access plus 1 year"



ExpiresByType image/jpeg "access plus 1 month"



ExpiresByType image/png "access plus 1 month"



ExpiresByType image/gif "access plus 1 month"



ExpiresByType image/jpg "access plus 1 month"



ExpiresByType application/x-shockwave-flash "access plus 1 month"



ExpiresByType text/css "access plus 1 month"



ExpiresByType text/javascript "access plus 1 year"



ExpiresByType application/javascript "access plus 1 year"



ExpiresByType application/x-javascript "access plus 1 year"



ExpiresByType text/html "access plus 0 seconds"



ExpiresByType application/xhtml+xml "access plus 600 seconds"



ExpiresByType font/ttf "access plus 1 year"



ExpiresByType font/woff "access plus 1 year"



</ifModule>



# END Expire headers







# BEGIN Cache-Control Headers



<ifModule mod_headers.c>



<filesMatch "\.(ico|jpe?g|png|gif|swf|woff|ttf)$">



Header set Cache-Control "max-age=2592000, public"



</filesMatch>



<filesMatch "\.(css)$">



Header set Cache-Control "max-age=2592000, public"



</filesMatch>



<filesMatch "\.(js)$">



Header set Cache-Control "max-age=2592000, private"



</filesMatch>



<filesMatch "\.(x?html?|php)$">



Header set Cache-Control "no-cache, no-store, must-revalidate"



</filesMatch>



</ifModule>



# END Cache-Control Headers







# BEGIN Turn ETags Off



<ifModule mod_headers.c>



Header unset ETag



</ifModule>



FileETag None



# END Turn ETags Off







# BEGIN Remove Last-Modified Header



<ifModule mod_headers.c>



Header unset Last-Modified



</ifModule>



# END Remove Last-Modified Header



# BEGIN Compress text files



<ifModule mod_deflate.c>



<filesMatch "\.(css|js|x?html?|php|woff|ttf|png|jpg|gif)$">



SetOutputFilter DEFLATE



</filesMatch>



</ifModule>



# END Compress text files







اما وقتی می زارمش ارور 500 می ده چکارش کنم؟
تشکر.