The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Web Programming, Web 2.0 and Mashups
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-25-2009
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,886
Quote:
Is it possible to specify a file instead of a directory in DocumentRoot ?
No.

You can, however, say something like:
Code:
<VirtualHost www.patrick.dev:80>
ServerAdmin patrick.diviacco@gmail.com
DocumentRoot "/Users/aneuryzma/Sites/"
DirectoryIndex phpinfo.php
ServerName www.patrick.dev
ErrorLog "/private/var/log/apache2/drupalpatrick.dev-error_log"
</VirtualHost>