-
تنظیمات php برای smf توسط .htaccess
من می خوام تنظیمات زیر رو با استفاده از .htaccess برا smf ست کنم.
پوشه upload_tmp_dir معتبر باشد.
توصیه برای max_input_time directive کمتر از 30 انتخاب شود.
مقدار max_execution_time کمتر از 15 باشد.
فایل .htaccess در روت مامبو قرار داره و سف فعال هست و کل فایل به صورت زیر هست لطفا راهنمایی کنید.
کد:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
##
# @package Mambo Open Source
# @copyright (C) 2005 - 2006 Mambo Foundation Inc.
# @license [مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] GNU/GPL
#
# Mambo was originally developed by Miro ([مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید]) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure
# that Mambo remained free Open Source software owned and managed by the community.
# Mambo is Free Software
##
#
# mod_rewrite in use
#
php_flag register_globals 0
php_flag output_buffering Off
php_flag max_input_time 29
php_flag max_execution_time 14
php_value session.save_path "/home/fglai4gn/tmp
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update YourMamboDirectory (just / for root)
# RewriteBase /YourMamboDirectory
#
# Rules
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^content/(.*) index3.php
RewriteRule ^component/(.*) index3.php
RewriteRule ^mos/(.*) index3.php
AuthName age21.ir
AuthUserFile /home/fglai4gn/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/fglai4gn/public_html/_vti_pvt/service.grp
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Mambo
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits
من دو خط زیر رو گذاشتم اما نشد.
کد:
php_flag max_input_time 29
php_flag max_execution_time 14
جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.
-
-
10-01-2007 07:48 PM
# ADS
تبلیغات در جوملا فارسی
علاقه مندی ها (Bookmarks)