pointing documentroot to a file instead of a directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux