แก้ปัญหา Directory Index เป็นภาษาต่างดาว

เวลาเรียกดูไดเรคทอรี่งานที่เราเก็บไว้ ตามลิงค์ที่เราทำ
แล้วมันเป็นภาษาต่างดาว เราจะแก้ไขดังนี้





เข้าไปแก้ไขไฟล์ httpd.conf
# vim /etc/httpd/conf/httpd.conf

# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
    Options FollowSymLinks
    AllowOverride None



#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#


#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">


#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks
    IndexOptions Charset=TIS-620


เพิ่มบรรทัดตามบรรทัดล่างนี้เลยครับ
ขอขอบคุณพี่ติ่ง โปรแกรมเมอร์ของเราครับ

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

วิธีแก้ปัญหา putty เป็นภาษาต่างดาวหรือเครื่องหมาย ???

ประวัติต้นแดง