Click to See Complete Forum and Search --> : newbie: how to run a simple html in apache?


sirpelidor
01-27-2008, 11:09 PM
Hi, first time apache2 user here.

Say I have a webpage (myPage.html) sitting in a folder (c:\myFolder). How can I get it to run on my web browser (http://localhost/myFolder/myPage.html)???

I remember the apache I had back then (was it 1.3?), all I needed was to dump my folder in var/wwwroot/ and I was good to go. I think now I need to setup some config file (httpd.conf)?

This is what I have atm:
Alias /test "C:/myFolder"
<Location "/test">
allow from all
DirectoryIndex myPage.html
</Location>

when I run my page, it complains:
Forbidden
You don't have permission to access /test on this server.

for the sake of get things work, I added "Everyone" with full access on this folder. And I still get the same error.

This gotta be a simple 101 question, thanks for helping!!

ray326
01-27-2008, 11:45 PM
You can still dump it in the doc root but you'll need to look for it under the apache installation on your window box. You were on linux before if it was in /var/wwwroot.

sirpelidor
01-28-2008, 02:02 AM
aaahh...found it, its call: htdocs in window...
case close