zoukankan      html  css  js  c++  java
  • apache 配置多个虚拟主机,不同的端口

    1.在httpd.conf添加多个端口,如下

    Listen 80
    Listen 8080

    2.开启Include conf/extra/httpd-vhosts.conf

    3.具体代码如下

    <VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "F:phpStudyWWW"
    ServerName 192.168.1.134
    ServerAlias www.dummy-host.example.com
    ErrorLog "logs/dummy-host.example.com-error.log"
    CustomLog "logs/dummy-host.example.com-access.log" common
    </VirtualHost>

    # Add any other Virtual Hosts below
    <VirtualHost *:8080>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "F:phpStudyWWW outer"
    ServerName 192.168.1.134
    ServerAlias www.dummy-host.example.com
    ErrorLog "logs/dummy-host.example.com-error.log"
    CustomLog "logs/dummy-host.example.com-access.log" common
    </VirtualHost>

  • 相关阅读:
    小 X 的密码破译
    时光机
    战争
    iOS TDD
    iOS url schemes应用


    二分查找
    搜索
    链表
  • 原文地址:https://www.cnblogs.com/xkcp008/p/5050986.html
Copyright © 2011-2022 走看看