快捷搜索:   服务器  安全  linux 安全  MYSQL  dedecms

apache配置文件几个重要选项


  以下是apache配置文件httpd.conf中比较重要的几点选项
  ##########################配置注意点##############
  ###使php文件可以由apache解析 我是把php安装在:c:/php下
  ScriptAlias /php/ "C:/php/"
  AddType application/x-httpd-php3 .php
  AddType application/x-httpd-php3 .php3
  AddType application/x-httpd-php3 .phtml
  Action application/x-httpd-php3 /php/php.exe
  
  ####,如果在单机状态下apache运行一闪就没了,可能是没配这个的原因,可以在serverName前打上#号
  ServerName ok.xahu.edu.cn
  
  ####您的网页文件可以放到其他目录,设置网站的根目录
  DocumentRoot "d:/web"
  
  ####使用虚拟目录,你可以使用http://127.0.0.1/mysql来访问d:/webnow/phpmyadmin/的文件
  Alias /mysql "d:/webnow/phpmyadmin/"
  
  #####虚拟主机的使用,可以让apache解析几个域名
  
  ServerAdmin [email protected]_domain.com
  DocumentRoot d:/web/flyhawk/
  ServerName webnow.oso.com.cn
  ErrorLog logs/host.some_domain.com-error_log
  CustomLog logs/host.some_domain.com-access_log common
  
  #####添加默认文档
  DirectoryIndex index.html
  DirectoryIndex index.htm
  DirectoryIndex index.php
  DirectoryIndex index.php3
  DirectoryIndex index.php4
顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论