Xampp change root document

I have an eclipse IDE and I set up the workspace in "C: / users / matt / documents / web /". I set up a project called test in the test folder "C: / users / matt / documents / web / test". I changed the document root in the httpd file to "C: / users / matt / documents / web /" and the same goes for

I put "C: / users / matt / documents / web / test" in the browser, but I can’t access the files in the workspace, the same for http://localhost/xampp/web/test/ , http://localhost/web/test/ and http://localhost/test/ .

I am missing a server configuration, please help!

+8
eclipse php apache xampp
source share
3 answers

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 the Apache web server, then ... Login: http: // localhost / test

Check the question

+16
source share

Restart your web server after changing its configuration!

+7
source share

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

+7
source share

All Articles