• 技术文章 >后端开发 >php教程

    apache 虚拟主机配置

    2016-07-29 08:55:27原创556
    原文: http://blog.csdn.net/ReadyYes/article/details/51038192
    进入C:\Apache24\conf\httpd.conf
    apache 虚拟主机配置
    把那个“#”号去掉

    进入C:\Apache24\conf\extra\httpd-vhosts.conf 配置如下

    #*代表当前服务器的所有IP地址#主机名ServerName www.zy.com
        #主机别名 多个主机别名用空格分开ServerAlias zy.com xy.com
        ServerAdmin admin@zy.com
    
        DocumentRoot"E:/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
        ErrorLog"logs/dummy-www.zy.com-error.log"CustomLog"logs/dummy-www.zy.com-access.log" common
    DocumentRoot"C:\Apache24\htdocs"Options 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 <= lines; i++) { $numbering.append($('
  • ').text(i)); }; $numbering.fadeIn(1700); }); });

    以上就介绍了apache 虚拟主机配置,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

    声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。
    上一篇:Laravel学习笔记(一)安装配置开发环境 下一篇:自己动手写 PHP MVC 框架(40节精讲/巨细/新人进阶必看)
  • 相关文章推荐

    • 聊聊php百万数据怎么写入csv• 浅析PHP中的类自动加载相关文件• 系统讲解PHP缓存技术• 一文理解和实现现代PHP框架里的IOC容器• PHP文件上传后缀名与文件类型对照表整理_PHP教程
    1/1

    PHP中文网