Click to See Complete Forum and Search --> : /home/httpd/html ?


cgchris99
03-02-2001, 01:01 PM
When reviewing the documents for apache. I keep seeing references to this directory.

However, my install didn't create a home/httpd/html directory.

Why is this and why should I use it instead of /var/www/domainname/html ????

Thanks

goozey
03-02-2001, 03:22 PM
Originally posted by cgchris99:
When reviewing the documents for apache. I keep seeing references to this directory.

However, my install didn't create a home/httpd/html directory.

Why is this and why should I use it instead of /var/www/domainname/html ????

Thanks


/home/httpd/html - is the 'default' directory that is being used for examples. depending on your distro, the default might be var/www/hmtl (RedHat)... regardless, you can change it to what ever you want in the httpd.conf file. (remember to restart Apache when you edit this file or the changes won't take effect - and I hope you kept a back up of the default config file just incase).

I suspect all your problems are easily solved with your Virtual Host containers... I assume nothing, and ask if you've RTFM'd the Apache documentation, particularly the section on Virtual Hosting...
http://httpd.apache.org/docs/vhosts/index.html

If you can post the virtual host section of your httpd.conf file... your problem can be solved much easier by the many talented people on this board.

cgchris99
03-02-2001, 03:36 PM
goozy thanks for your reply
here is the config file stuff...

<VirtualHost ftionline.com>
ServerName www.ftionline.com (http://www.ftionline.com)
DocumentRoot /var/www/ftionline.com/html/
TransferLog /var/www/ftionline.com/logs/access_log
ErrorLog /var/www.ftionline.com/logs/error_log
</VirtualHost>

<VirtualHost stpeteyachts.com>
ServerName www.stpeteyachts.com (http://www.stpeteyachts.com)
DocumentRoot /var/www/stpeteyachts.com/html
TransferLog /var/www/stpeteyachts.com/logs/access_log
ErrorLog /var/www/stpeteyachts.com/logs/error_log
</VirtualHost>

The apache is running but I get the page mentioned in the first message.

thanks for any help anyone can provide

cgchris99
03-02-2001, 05:52 PM
Found the problem... I was modifying the wrong httpd.conf file.

Duh