• apache配置


    apache的配置路径在C:wampinapacheapache2.4.9confextra下的httpd-vhosts.conf中:

    1.配置:

    <VirtualHost *:80>
        ServerAdmin webmaster@dummy-host.example.com
        DocumentRoot "e:/www/PropertyCenter/02 coding/04 customer system-web"      
        ServerName web.zongkong.com
        #ServerAlias www.dummy-host.example.com
        #ErrorLog "logs/dummy-host.example.com-error.log"
        #CustomLog "logs/dummy-host.example.com-access.log" common
        
        <Directory "e:/www/PropertyCenter/02 coding/04 customer system-web">
            Options Indexes FollowSymLinks
            AllowOverride all
            Order allow,deny
            Allow from all
        </Directory>
    
        <IfModule mod_rewrite.c>
            RewriteEngine on
              RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
            RewriteRule .* - [F]
              Rewriterule ^(.*)/(.*)/index.html$ $1/index.php?$2
            Rewriterule ^(.*)/(.*)/index(d+).html$ $1/index.php?$2&page=$3
            Rewriterule ^(.*)/(.*)/a(d+).html$ $1/index.php?$2/$3
            Rewriterule ^(.*)/u/(d+)/(.*)$ $1/index.php?u&$2&$3
            Rewriterule ^(.*)/u/(d+)/(.*)/$ $1/index.php?u&$2&$3
            Rewriterule ^(.*)/u/(d+)$ $1/index.php?u&$2
            Rewriterule ^(.*)/u/(d+)/$ $1/index.php?u&$2
            Rewriterule ^(.*)/(.*)/index.html?(.*) $1/index.php?$2&$3
            Rewriterule ^(.*)/(.*)/index(d+).html?(.*) $1/index.php?$2&$3
            Rewriterule ^(.*)/index.action(.*) $1/index.php$3
        </IfModule>
        
    </VirtualHost>
    <VirtualHost  *:80>
        DocumentRoot  "D:/www/Admin/app/webroot/"
        ServerName web.admin.com
    </VirtualHost>
    
    <VirtualHost  *:80>
        DocumentRoot  "D:/www/FrontDesk/app/webroot/"
        ServerName web.rongbei.com
    </VirtualHost>

    2,打开Apache的安装目录,找到httpd.conf文件,分别去掉下面两行文字前面的#号。  
    LoadModule vhost_alias_module modules/mod_vhost_alias.so
    去掉#意思是启用apache的虚拟主机功能。  
    Include conf/extra/httpd-vhosts.conf  
    去掉这一行的#意思是从conf/extra/httpd-vhosts.conf这个文件导入虚拟主机配置。

    3.httpd.conf

  • 相关阅读:
    点击滚动到任意位置
    设置滚动条
    突破浏览器限制字体大小不能低于12px的限制
    font-family 字体及各大主流网站对比
    可视区尺寸改变的时候,重绘Echarts
    <input />
    switch (xx) { case xx: break ......}
    让页面随浏览器的窗口大小缩放而缩放
    对后端返回的 html 标签不识别的解决办法
    html 标签分类:块级元素、内联元素 ......
  • 原文地址:https://www.cnblogs.com/yangzailu/p/6586026.html
Copyright © 2020-2023  润新知