how to configuring a xampp web server for different root directory

后端 未结 10 1961
予麋鹿
予麋鹿 2020-12-02 07:17

The web directory is the home of all of your application\'s public and static files. Including images, stylesheets and JavaScript files. It is also where the front controlle

10条回答
  •  醉话见心
    2020-12-02 08:00

    # 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 Includes ExecCGI
    
    #
    # 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 All
    
    #
    # Controls who can get stuff from this server.
    #
    Require all granted
    

    Write above code inside following tags < Directory "c:\projects" > < / Directory > c:(you can add any directory d: e:) is drive where you have created your project folder.

    Alias /projects "c:\projects"

    Now you can access the pr0jects directory on your browser :

    localhost/projects/

提交回复
热议问题