How to change xampp localhost to another folder ( outside xampp folder)?

前端 未结 9 1976
闹比i
闹比i 2020-12-01 01:03

How can I change my default xampp localhost c:xampp/htdoc to another folder i.e. c:/alan? When I use the IP address I should be able to view my we

9条回答
  •  再見小時候
    2020-12-01 01:43

    On Linux Mint (Debian Based) go to /opt/lampp/etc/httpd.conf

    Find YOUR_OWN_FILES_LOCATION to, of course, your files location.

    DocumentRoot "YOUR_OWN_FILES_LOCATION"
    
        #
        # 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/trunk/mod/core.html#options
        # for more information.
        #
        #Options Indexes FollowSymLinks
        # XAMPP
        Options Indexes FollowSymLinks ExecCGI Includes
    
        #
        # 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
        # since XAMPP 1.4:
        AllowOverride All
    
        #
        # Controls who can get stuff from this server.
        #
        Require all granted
    
    

提交回复
热议问题