• apache vhost


    httpd.conf:

    Include "F:/wamp/alias/*"



    <Directory "F:wampwww">
        Options Indexes FollowSymLinks Multiviews
        AllowOverride All
        Order Allow,Deny
        Allow from all
    </Directory>
    <VirtualHost *:80>
        DocumentRoot F:wampwww
        ServerName  localhost
    </VirtualHost>


    <VirtualHost 168.192.122.74:80>
        DocumentRoot f:/wamp/www2
        ServerName 168.192.122.74:80
    </VirtualHost>


    <Directory "f:/wamp/www2">
        Options Indexes FollowSymLinks Multiviews
        AllowOverride All
        Order Allow,Deny
        Allow from all
    </Directory>

    httpd-vhost.conf:

    <VirtualHost *:80>
        ServerAdmin mss112.com
        DocumentRoot "F:/wamp/www2/veryeast/jingnian_phone/Code/v1.2/webroot"
        ServerName mssv12.com
        ServerAlias www.dummy-host.example.com
        ErrorLog "logs/dummy-host.example.com-error.log"
        CustomLog "logs/dummy-host.example.com-access.log" common
    </VirtualHost>

    wamp2.49,php5.5:

    1. 这里用wamp做演示,wamp2.5内置了Apache2.4.9,我们先安装完wamp2.5.

    2. 2

      我们打开Apache目录wampinapacheapache2.4.9下的“conf”文件夹,完整路径:C:wampin apacheapache2.4.9conf,找到httpd.conf,用sublime text或者notepad等代码编辑器打开。

    3. 3

      找到

      #   onlineoffline tag - don't remove

      下方的:

      Require local

    4. 4

      将  Require local   替换成: Require all granted  即可。

  • 相关阅读:
    JSP简单访问数据库
    解析数据存储MySQL
    学习SSH框架
    JavaWEB中读取配置信息
    Eclipse中将Java项目转换成Web项目的方法
    JavaWEB入门
    万能数据库连接类-Oracle、DB2 、Access 、Sql Server
    小米3 打开开发者选项
    coolpad 5879logcat不能输入日志解决办法
    实用开发之-oracle表回滚到一个指定时间的操作语句
  • 原文地址:https://www.cnblogs.com/jami918/p/3461308.html
Copyright © 2020-2023  润新知