You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Thomas Moore <tj...@digitalperformance.com> on 2003/01/23 06:34:43 UTC

[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


RE: [users@httpd] setting a PHP/CGI program for the home page

Posted by Thomas Moore <tj...@digitalperformance.com>.
never mind. just figured it out to rename index.html and it worked since
DirectoryIndex has index.php .



-----Original Message-----
From: Thomas Moore [mailto:tjmoore@digitalperformance.com]
Sent: Wednesday, January 22, 2003 9:35 PM
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