Reputation: 20232
I created this little html file test.html
:
<p>It works!</p>
and try to host it with apache. I downloaded and installed XAMPP and started apache. But where to put test.html
so i can access it in the browser?
I search now for 30 minutes but can't find anything to start with.
Upvotes: 2
Views: 13247
Reputation: 21
In XAMPP root directory you can find 'htdocs' folder. You could create here a new folder for each web that you want to create and put inside your files. You can access in your browswer like:
http://localhost/NewFolder/test.html
Upvotes: 1
Reputation: 1066
xampp/htdocs folder, this is where index.html takes place.
You can access it via your browser like this: http://localhost/index.html
In order to add/view new files/projects, just add them to htdocs directory and access them via localhost/filename address.
Hope it works :)
Upvotes: 4