You are here: Re: Apache Virtualhost Config « All PHP « IT news, forums, messages
Re: Apache Virtualhost Config

Posted by Marsel on 09/28/65 11:40

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация