Changing DocumentRoot Won't Work
I've installed Apache 2.2 as a manual server (ie, I have to open the
httpd.exe command window to use it) on Win XP Pro. The installation
works fine when I visit:
http://localhost:8080
However, I am now trying to change my htdocs root, because I keep all
my data one the E:\ partition of my HD. I have changed the following 2
lines in my httpd.conf file:
DocumentRoot E:/Documents/htdocs/bj
(I have tried the line above both with and without quotes)
<Directory "e:/documents/htdocs/bj">
I then close the httpd.exe window and reopen it -- to restart apache.
However, Apache still serves the file from the default htdocs
directory, rather than the file in "E:/Documents/htdocs/bj"
What am I still missing?
Thanks,
cpp
Re: Changing DocumentRoot Won't Work
cppaddict wrote:
> I've installed Apache 2.2 as a manual server (ie, I have to open the
> httpd.exe command window to use it) on Win XP Pro. The installation
> works fine when I visit:
>
> http://localhost:8080
>
> However, I am now trying to change my htdocs root, because I keep all
> my data one the E:\ partition of my HD. I have changed the following 2
> lines in my httpd.conf file:
>
> DocumentRoot E:/Documents/htdocs/bj
>
> (I have tried the line above both with and without quotes)
>
> <Directory "e:/documents/htdocs/bj">
>
> I then close the httpd.exe window and reopen it -- to restart apache.
>
> However, Apache still serves the file from the default htdocs
> directory, rather than the file in "E:/Documents/htdocs/bj"
>
> What am I still missing?
>
> Thanks,
> cpp
Have you cleared your browser cache?
Re: Changing DocumentRoot Won't Work
>Have you cleared your browser cache?
Yep. And I tried it on different browsers. Anything else?