我已经安装了 Cent Os 6.4 -Final Version 并为 PHP Web 开发设置了环境。
我的应用程序使用 .htaccess 进行 url 重写并拒绝直接访问文件。
我的 httpd 配置文件 - /etc/httpd/conf/httpd.conf 如下,
<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 …Run Code Online (Sandbox Code Playgroud)