On Wed, 2009-04-01 at 21:48 +0100, bruno wrote: > On Wed, 2009-04-01 at 16:36 +0100, Tom Evans wrote: > > On Wed, 2009-04-01 at 15:55 +0100, bruno wrote: > > > > > > I tried to load html files from a few computers in my lan. I wrote > > > 127.0.0.1 on localhost and sever's IP address from others computers but > > > only I can load index.html saying "It works". > > > > > > Thanks, > > > Bruno. > > > > > > > 127.0.0.1 will only work if the browser is run from the same machine the > > server is on[1]. > > I know it. Pehaps I didn't me. Sorry. > > > > > That index.html that is loaded is the apache default. You need to see > > why the files aren't found. > > > > 1) Find your httpd.conf > > ps auxww | grep httpd (The '-f' argument is the conf file.) > > > > This is result > > root 2998 0.0 0.1 4332 2000 ? Ss 16:14 > 0:00 /usr/local/apache2/bin/httpd -k start > daemon 3250 0.0 0.1 4332 1300 ? S 16:31 > 0:00 /usr/local/apache2/bin/httpd -k start > daemon 3251 0.0 0.1 225676 2008 ? Sl 16:31 > 0:00 /usr/local/apache2/bin/httpd -k start > daemon 3254 0.0 0.1 225676 2012 ? Sl 16:31 > 0:00 /usr/local/apache2/bin/httpd -k start > daemon 3259 0.0 0.1 225676 2012 ? Sl 16:31 > 0:00 /usr/local/apache2/bin/httpd -k start > daemon 3335 0.0 0.1 225676 1624 ? Sl 16:31 > 0:00 /usr/local/apache2/bin/httpd -k start > root 3969 0.0 0.0 3144 772 pts/1 S+ 21:36 0:00 grep > httpd > > > 2) Find the important settings in your httpd.conf: > > egrep ^ServerRoot\|^ErrorLog\|^DocumentRoot /path/to/httpd.conf > > > > ServerRoot "/usr/local/apache2" > DocumentRoot "/usr/local/apache2/htdocs" > ErrorLog "logs/error_log" Your error log is at /usr/local/apache2/logs/error_log. What does it say? > > > 3) Try to load a file, then look in your error log to see why it didn't > > load. You are almost certainly putting your files in one directory, and > > apache is looking in another. That is the 'DocumentRoot' setting. > > > > If you need more help, please reply INCLUDING THE > > In httpd.conf log file is set up to appear in /apache/directory/log but > there isn't any file. > > > INFORMATION I ASKED > > FOR. :) > > > > Cheers > > > > Tom > > > > > > [1] http://en.wikipedia.org/wiki/Localhost > > > > I know what is localhost, thanks. ;-) > > > Thanks, > Bruno. > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx