Forum Moderators: phranque

Message Too Old, No Replies

New Install - index.html weirdness

         

drhansenjr

5:40 pm on Oct 26, 2008 (gmt 0)

10+ Year Member



It's been quite a while since I did an apache setup so please bear with me.

Test/tinkering/learning environment on a Win Vista laptop.

Going to [localhost...] gives me this page/code:


<html><body><h1>It works!</h1></body></html>

I have these in httpd.conf:


ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2"
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"

I edited C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/index.html to read:


<html><body><h1>Something new</h1></body></html>

I reload the default page in the browser -- still gives me "It works!"

I edited httpd.conf to point to another location on the server, edited the index.html there to something different, then restarted Apache. Same thing.

Seems to me I must have things set up to point to another instance of httpd.conf somewhere -- but why would that be?

Can anyone offer some ideas to help me troubleshoot?

g1smd

6:26 pm on Oct 26, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Is this on Vista?

You'll find the working directory is buried deep under /Users/.../Application Data/... somewhere.

It's a "security" issue in Vista, and a right royal pain in the rear.

drhansenjr

6:36 pm on Oct 26, 2008 (gmt 0)

10+ Year Member



Yeah, it's on Vista. Is there a way to put the dir where I actually want it?

jdMorgan

7:24 pm on Oct 26, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Did you flush your browser cache completely? You will need to do so any time you change your config code.

Jim

g1smd

8:19 pm on Oct 26, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



No. Vista has some feature where you can't put user data inside the program folder tree, and it uses some alias elsewhere for it.

There will be a way by changing security permissions, but that isn't advisable for any internet-connected Windows machine.