|
Posted by CuppaJava on 09/28/32 11:40
Marsel,
Found it...
I needed to add
127.0.0.1 crm.localhost
entry to my host file.
Thanks,
Mica
<Marsel> wrote in message news:anuhv1pnsekn223j0offk4mo19paulsdmd@4ax.com...
> On Sun, 19 Feb 2006 01:33:07 -0600, "CuppaJava" <java@java.com> wrote:
>
>>Hi,
>>
>>I am trying to configure an Apache 2.0 and PHP setup using a virtualhost.
>>The problem appears that PHP is setup ok for Apache but my doc root is not
>>responding to my attempts to view a PHP page. Apache /server-info reports
>>PHP as a mime type and I get no errors so I am guessing it is ok.
>>
>>Here is my virtualhost:
>><VirtualHost *:80>
>> DocumentRoot c:/projects/crm/web/
>> ServerName crm.localhost
>> ServerAlias crm.localhost
>> ServerAdmin me@localhost.com
>> ErrorLog logs/crm_error.log
>> CustomLog logs/crm_access.log common
>> DirectoryIndex index.php index.html
>></VirtualHost>
>>
>>The php.ini docroot is:
>>doc_root = c:\projects\crm\web
>>
>>So is there another way to configure the document root? Is there a way to
>>test if PHP is working at all since I cant get a page to display?
>>
>>Thanks,
>>Mica
>
> Not that I am not a total newbie, but this works for me:
>
> NameVirtualHost *:80
>
> <VirtualHost *:80>
> ServerAdmin webmaster@exxel.com
> DocumentRoot htdocs
> ServerName exxel.com
> ErrorLog logs/exxel.com-error_log
> CustomLog logs/exxel.com-access_log common
> </VirtualHost>
>
> <VirtualHost *:80>
> ServerAdmin webmaster@gr1.exxel.com
> DocumentRoot htdocs/subdomains/gr1/
> ServerName gr1.exxel.com
> ErrorLog logs/gr1.exxel.com-error_log
> CustomLog logs/gr1.exxel.com-access_log common
> </VirtualHost>
>
> //Marsel
>
*** Free account sponsored by SecureIX.com ***
*** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com ***
[Back to original message]
|