您好,欢迎访问一九零五行业门户网

apache 虚拟主机配置

原文: http://blog.csdn.net/readyyes/article/details/51038192
进入c:\apache24\conf\httpd.conf
把那个“#”号去掉
进入c:\apache24\conf\extra\httpd-vhosts.conf 配置如下
#*代表当前服务器的所有ip地址#主机名servername www.zy.com #主机别名 多个主机别名用空格分开serveralias zy.com xy.com serveradmin admin@zy.com documentroote:/phptest#directory 中的路径要和documentroot的路径一致,directory配置访问权限options indexes followsymlinks #默认主页directoryindex test.php #自定义后缀php处理 addtype application/x-httpd-php .php .ppp .phtml allowoverrideallrequireall granted #配置虚拟目录alias /abc e:/php100#配置虚拟目录权限options indexes followsymlinks allowoverrideallrequireall granted errorloglogs/dummy-www.zy.com-error.logcustomloglogs/dummy-www.zy.com-access.log commondocumentrootc:\apache24\htdocsoptions indexes followsymlinks #默认主页directoryindex index.html #自定义后缀php处理 addtype application/x-httpd-php .php .ppp .phtml allowoverrideallrequireall granted servername localhost
').addclass('pre-numbering').hide(); $(this).addclass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadein(1700); }); }); 以上就介绍了apache 虚拟主机配置,包括了方面的内容,希望对php教程有兴趣的朋友有所帮助。
其它类似信息

推荐信息