Fog Creek Software
Discussion Board

Dumb Apache Question

Is there a quick way to move the htdocs directory from its default location for the Apache 1.3.x HTTP server? I've just spent five minutes searching for this information and haven't been able to find it. Thanks.

John Topley (
Thursday, July 8, 2004

Sorry, when I say a quick way I mean a configuration setting - I don't want to have to build it from source.

John Topley (
Thursday, July 8, 2004

There should be a DocumentRoot option in your httpd.conf.

Unless you have some virtual hosts configured, that DocumentRoot should be it.

Thursday, July 8, 2004

So there is. Thank you very much!

John Topley (
Thursday, July 8, 2004

Lol, I guess you can't just press F1.

Li-fan Chen
Thursday, July 8, 2004

"There are no dumb questions, only dumb people."

Joe Kerr
Friday, July 9, 2004

You can press F1 if you want.  One most systems it will get you help, but it won't be on Apache, but instead the editor or terminal you are using.

Clay Dowling
Saturday, July 10, 2004

Normally on a Unix system, it goes something like this:
"Hmm... It seems $random_software serves files out of /usr/local/software/htdocs, I'd prefer /var/htdocs. Let's see:
$ grep /htdocs /usr/local/software/conf/*
software.conf: ServeFilesFrom $ROOT/htdocs
$ vi /usr/local/etc/software.conf
search for ^Serve, write & quit, HUP the daemon, ready."

Sunday, July 11, 2004

*  Recent Topics

*  Fog Creek Home