Setting up a virtual host on XAMPP on Mac

后端 未结 3 1927
栀梦
栀梦 2021-02-06 15:34

I am trying to set up a virtualhost on my apple mac on localhost. The server is provided by XAMPP, which bundles Apache/MySQL/PHP in one bundle.

Here is what I have done

3条回答
  •  情深已故
    2021-02-06 16:04

    Try leaving the the setting for "localhost" at the end of the file "httpd-vhosts.conf", i.e.:

    #
    # Virtual Hosts
    #
    ...
    
    # others vhost
    
    ...
    
    
    # localhost
    
        ServerName localhost
        DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
        
            Options Indexes FollowSymLinks Includes execCGI
            AllowOverride All
            Order Allow,Deny
            Allow From All
        
    
    #end of httpd-vhosts.conf file
    

    Worked for me, greetings!

提交回复
热议问题