Apache支持cgi 1.打开Apache配置文件httpd.conf,搜索“cgi”,找到下面的一段,去掉“addhandler”前面的“#“,这样就开启了Apache的cgi功能 [root@localhost ~]# gedit /etc/httpd/conf/httpd.conf # AddHandler allows you to map certain file extensions to "handlers": # actions unrelated to filet…
Apache配置文件 Apache的配置文件默认路径是“/etc/httpd/conf/httpd.conf”,编辑该文件就可以修改Apache的配置 1.设置网页主目录,参数DocumentRoot就是网页存放的主目录.打开配置文件httpd.conf,查找DocumentRoot(大约292行) [root@localhost ~]# gedit /etc/httpd/conf/httpd.conf # DocumentRoot: The directory out of which you…