You need to specify IP address in NameVirtualHost directive:

NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1:80>
  DocumentRoot /home/tcrc/www/forum
  ServerName forum.tcrconline.com
  ErrorLog /home/tcrc/logs/error_log
  CustomLog /home/tcrc/logs/access_log combined
</VirtualHost>

--
Kind regards,
Yuri.

>>>> www.AceHoster.com <<<< Quality web hosting


"Greg Blakely" <[EMAIL PROTECTED]> ???????/???????? ? ???????? ?????????:
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Yuri Petro asked:




> Can you indicate Apache settings regarding php and virtualhosts?

In the "main" server configuration area, I have:

# The following is for PHP4 (conficts with PHP/FI, below):
<IfModule mod_php4.c>
  AddType application/x-httpd-php .php4 .php3 .phtml .php
  AddType application/x-httpd-php-source .phps
</IfModule>

# The following is for PHP3:
<IfModule mod_php3.c>
  AddType application/x-httpd-php3 .php3
  AddType application/x-httpd-php3-source .phps
</IfModule>

# The following is for PHP/FI (PHP2):
<IfModule mod_php.c>
  AddType application/x-httpd-php .phtml
</IfModule>

### and the, further on down, there is:

NameVirtualHost *

### and then, under the "VirtualHost" area, I have:

<VirtualHost *>
Port 80
AddType application/x-httpd-php .php4 .php3 .phtml .php
AddType application/x-httpd-php-source .phps
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/tcrc/www/forum
ServerName forum.tcrconline.com
ErrorLog /home/tcrc/logs/error_log
CustomLog /home/tcrc/logs/access_log combined
</VirtualHost>

###

### By the way, I tried it with and without the "AddType" statements in
the VirtualHost area.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to