服务器技术

 首页 > 服务器技术 > apache > Apache为mysql以及自己的项目设置虚拟路径|Options

Apache为mysql以及自己的项目设置虚拟路径|Options

分享到:
【字体:
导读:
          ...

1.apache2.2confhttpd.conf中释放:

   Include conf/extra/httpd-vhosts.conf(去掉前面的#)

2.httpd.conf中增加

         #项目文件夹DWM目录,注意不要使用中文定义目录与文件夹

    #

    # Possible values for the Options directive are "None", "All",

    # or any combination of:

    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews

    #

    # Note that "MultiViews" must be named *explicitly* --- "Options All"

    # doesn't give it to you.

    #

    # The Options directive is both complicated and important.  Please see

    # http://httpd.apache.org/docs/2.2/mod/core.html#options

    # for more information.

    #

    Options FollowSymLinks    

    #

    # AllowOverride controls what directives may be placed in .htaccess files.

    # It can be "All", "None", or any combination of the keywords:

    #   Options FileInfo AuthConfig Limit

    #

    AllowOverride None

    #

    # Controls who can get stuff from this server.

    #

    Order allow,deny

    Allow from all

  

        #phpMyAdmin的安装路径

    #

    #

    # Possible values for the Options directive are "None", "All",

    # or any combination of:

    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews

    #

    # Note that "MultiViews" must be named *explicitly* --- "Options All"

    # doesn't give it to you.

    #

    # The Options directive is both complicated and important.  Please see

    # http://httpd.apache.org/docs/2.2/mod/core.html#options

    # for more information.

    #

    Options Indexes FollowSymLinks

    #

    # AllowOverride controls what directives may be placed in .htaccess files.

    # It can be "All", "None", or any combination of the keywords:

    #   Options FileInfo AuthConfig Limit

    #

    AllowOverride None

    #

    # Controls who can get stuff from this server.

    #

    Order allow,deny

    Allow from all

  

 3.在文件Apache2.2confextrahttpd-vhosts.conf中增加:

       #放在第一个

        ServerAdmin webmaster@dummy-host2.ies.inventec

        DocumentRoot "D:worktest"

        ServerName test

        ErrorLog "logs/dummy-host2.ies.inventec-error.log"

        CustomLog "logs/dummy-host2.ies.inventec-access.log" common
"Apache为mysql以及自己的项目设置虚拟路径"由第二电脑网原创提供,转载请注明:http://www.002pc.com/master/College/Server/Apache/17874.html

分享到:
apache配置多域名多端口|None-Apache教程
1、单域名单端口设置 如:www.abc.com 默认用80访问   特别说明,apache的配置默认都在安装目录下的conf目录里面 或者是/etc/apache2 不过一定要注意,listen.conf文件中端口监听是否开启 如下图,表示已经开启80端口监听   直接默认修改default-server.conf    这个配置最好简单 安装好了,之后,默认已经能够使用...
SVN(Subversion)版本管理工具入门介绍|可...
如何快速建立Subversion服务器,并且在项目中使用起来,这是大家最关心的问题,与CVS相比,Subversion有更多的选择,也更加的容易,几个命令就可以建立一套服务器环境,可以使用起来,这里配套有动画教程。 本文是使用Subversion最快速的教程,在最短的时间里帮助您建立起一套可用的服务器环境,只需略加调整就可以应用到实...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……