httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Warwick" <mwarw...@stwgtn.co.nz>
Subject RE: [users@httpd] setting a PHP/CGI program for the home page
Date Thu, 23 Jan 2003 22:15:17 GMT
DocumentRoot is for the directory, not the index file. Use the
DirectoryIndex directive and put index.php before index.htm and
index.html, eg:

<VirtualHost 65.61.145.96>
DocumentRoot /usr/local/www/vhosts/<domain-name>.com/htdocs
DirectoryIndex index.php index.html index.htm index.html.var
ServerName <domain-name>.com
...
-----Original Message-----
From: Thomas Moore [mailto:tjmoore@digitalperformance.com]
Sent: Thursday, 23 January 2003 6:35 p.m.
To: users@httpd.apache.org
Subject: [users@httpd] setting a PHP/CGI program for the home page



I want to set index.php instead of index.html to be the document root,
but
when I do all the graphics do not display. I know there is some simple
thing
I am doing wrong...

<VirtualHost 65.61.145.96>
DocumentRoot /usr/local/www/vhosts/<domain-name>.com/htdocs/index.php
(instead of without /index.php)
ServerName <domain-name>.com
ServerAlias www.<domain-name>.com
ServerAdmin webmaster@<domain-name>.com
LogFormat COMBINED
ErrorLog /usr/local/www/vhosts/<domain-name>.com/logs/error_log
TransferLog /usr/local/www/vhosts/<domain-name>.com/logs/access_log
HostNameLookups off
<Directory "/usr/local/www/vhosts/<domain-name>.com/htdocs">
  Options All
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>
ScriptAlias /cgi-bin /usr/local/www/vhosts/<domain-name>.com/cgi-bin
<Directory "/usr/local/www/vhosts/<domain-name>.com/cgi-bin">
  AllowOverride None
  Options None
  Order allow,deny
  Allow from all
</Directory>
</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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


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


Mime
View raw message