xampp change document root

后端 未结 3 1329
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-05 12:21

I have eclipse IDE and I have set up a workspace in \"C:/users/matt/documents/web/\". I set up a project called test in the folder test \"C:/users/matt/documents/web/test\".

相关标签:
3条回答
  • 2020-12-05 12:37

    Restart your webserver after changing its config!

    0 讨论(0)
  • 2020-12-05 12:54

    Make sure you change DocumentRoot in your\path\to\apache\conf\extra\httpd-ssl.conf as well.

    0 讨论(0)
  • 2020-12-05 12:58

    c:\XAMPP\apache\conf\httpd.conf

    <VirtualHost *:80>
        ServerAdmin webmaster@localhost
    
        DocumentRoot C:/users/matt/documents/web/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory C:/users/matt/documents/web/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
    

    Restart apache web server, then ... Enter: http://localhost/test

    Check past question

    0 讨论(0)
提交回复
热议问题