[EMAIL PROTECTED] pointing documentroot to a file instead of a directory

2008-09-22 Thread Adam Williams
Is there a way or a command like documentroot but points to a file 
instead of a directory?  I'm running Apache httpd 2.2 on fedora 9 linux 
and have a the files /pubs/ma.html and /pubs/jmh.html, but when I tried 
documentroot I get the error upon running apachectl start:


Warning: DocumentRoot [/var/www/sites/mdah-live/pubs/ma.html] does not exist
Warning: DocumentRoot [/var/www/sites/mdah-live/pubs/jmh.html] does not 
exist
Warning: DocumentRoot [/var/www/sites/mdah-live/pubs/jmh.html] does not 
exist



what I have in my httpd.conf for them is:

VirtualHost *
   ServerName msarchaeology.com
   ServerAlias *.msarchaeology.com
   DocumentRoot /var/www/sites/mdah-live/pubs/ma.html
   UserDir disable
/VirtualHost

VirtualHost *
   ServerName journalmshistory.com
   ServerAlias *.journalmshistory.com
   DocumentRoot /var/www/sites/mdah-live/pubs/jmh.html
   UserDir disable
/VirtualHost

VirtualHost *
   ServerName journalmshistory.org
   ServerAlias *.journalmshistory.org
   DocumentRoot /var/www/sites/mdah-live/pubs/jmh.html
   UserDir disable
/VirtualHost

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] pointing documentroot to a file instead of a directory

2008-09-22 Thread Adam Williams

Davide Bianchi wrote:

Adam Williams wrote:
  

Is there a way or a command like documentroot but points to a file
instead of a directory?



No. You can use the DirectoryIndex directives to specify which file to
consider the 'main' page (in place of index.html). But the DocRoot is a
directory.

Davide

  


so basically the only solution is to use a documentroot of /pubs/ma and 
/pubs/jmh and move ma.html to /pubs/ma/index.html and jmh.html to 
/pubs/jmh/index.html?


Re: [EMAIL PROTECTED] pointing documentroot to a file instead of a directory

2008-09-22 Thread Adam Williams

Justin and Krist, thanks for the help!

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] pointing documentroot to a file instead of a directory

2008-09-22 Thread Adam Williams

André Warnier wrote:

Try this instead :

snip



and save yourself one VirtualHost.
Now, that's assuming that apart from this homepage, your virtual 
servers share *everything* under your DocumentRoot (if there is 
anything else).

even better! thanks!

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]