You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gui-dev@apache.org by Trond Erling Hundal <tr...@havneavisen.net> on 2001/05/10 10:13:22 UTC

Re: how to set documentroot in httpd.conf?

Did you change both the "document root" settings in httpd.conf?
It may be that there is someting else causing the problem, but you are supposed to have two appearances of "document root" in the httpd.conf file.
I think you have to change both.

Also: try to write http://127.0.0.1 instead of localhost.... 

- trond
  ----- Original Message ----- 
  From: ydok@21bc.com 
  To: gui-dev@apache.org 
  Sent: Friday, May 11, 2001 2:59 AM
  Subject: how to set documentroot in httpd.conf?


  >hello,sir;
  >        i install apache on linux,and i changed 
  >documentroot in httpd.conf ,it looks like this:
  >DocumentRoot "/opt/apache".
  >i create the file index.htm in /opt/apache,then 
  >i restart apache and visit <http://localhost/index.htm>http://localhost/index.htm through browser.
  >but,the page was not found.
  >why?