-   Linux - Software (
-   -   very newbie Apache question (

mla 10-10-2003 02:52 PM

very newbie Apache question
On RH9 Apache 2.x
I am able to access test page.

Help please,

1. where is test page located?
I checked /var/www...
2 where exactly I have to place my web page.

Weird, but in manual I didn't find this "simple" hint.


david_ross 10-10-2003 02:57 PM

If you are using the defualt install it should be:

You can probably find out with:
grep DocumentRoot /etc/httpd/conf/httpd.conf | grep -v "#"

Oxagast 10-10-2003 02:58 PM

i think by default it goes in /usr/local/apache2/htdocs (if you installed apache in another location go there and find htdocs) and you can change it from /usr/local/apache2/conf/httpd.conf

Pete M 10-10-2003 02:59 PM


Test Page is loaded if no HTML file is found in /var/www


mla 10-10-2003 04:02 PM

Thanks for answer.

My web page is in folder. Do I have to copy all files to /var/www directly? It will be mess with folders in www directory.


[root@RH9 www]# ls -l
total 20
drwxr-xr-x 2 root root 4096 Jul 31 11:40 cgi-bin
drwxr-xr-x 3 root root 4096 Sep 29 10:39 error
drwxr-xr-x 3 root root 4096 Jul 31 11:40 html
drwxr-xr-x 3 root root 4096 Sep 29 10:39 icons
drwxr-xr-x 13 root root 4096 Sep 29 10:43 manual
[root@RH9 www]# cd html
[root@RH9 html]# ls

[root@RH9 html]# ls -la
total 12
drwxr-xr-x 3 root root 4096 Jul 31 11:40 .
drwxr-xr-x 7 root root 4096 Jul 31 11:40 ..
drwxr-xr-x 2 webalizer root 4096 Sep 23 13:38 usage

Crashed_Again 10-10-2003 04:11 PM

By default, the apache configuration file looks in /var/www/html for a file called index.html. So put your page in that directory and call it index.html and you will be good to go. All this stuff is defined in httpd.conf which can be found in /etc/httpd/conf. Take a look at the file and you will see how everything is setup.

mla 10-10-2003 04:35 PM

Linux is cool :) with :)))))))

after I took a look to httpd I found test page location


Now I can fix the problem on it. Link to local documentation doesn't work after default installation of documentation package.
there is error on default test page.
Thanks to all.

All times are GMT -5. The time now is 05:08 PM.