a couple questions about virtual hosts in Apache

Scott sberry at northlc.com
Tue Aug 14 19:38:39 UTC 2007


Hi Tim,

Yeah I have that.  But we are still stuck some where not quite sure what. 
Like I said it runs from my local browser on the linux box once I changed 
the hosts file to accommadate it.  But when I do a w3c check the Apache 
server doesn't send any info out.

Scott

----- Original Message ----- 
From: "Tim" <ignored_mailbox at yahoo.com.au>
To: "For users of Fedora" <fedora-list at redhat.com>
Sent: Monday, August 13, 2007 8:19 PM
Subject: Re: a couple questions about virtual hosts in Apache


> On Mon, 2007-08-13 at 11:00 -0500, Scott wrote:
>> Does this conform to AddType correctly?
>> AddType script/php .php
>>
>> Also where should this be placed in the VirtualHost directive?
>
> Do you have a /etc/httpd/conf.d/php.conf file?  If so, you shouldn't
> have to do something like the above.  I'll attach what one of mine looks
> like, below.  Note that it's for FC5, since that's the box that I'm on
> at the moment, but you should be able to see the sort of thing it is,
> and check that yours has something similar (i.e. checking commented out
> portions between them).
>
> And, it would have been an AddHandler directive to make it work, along
> with a LoadModule.  You don't send the PHP script out as a file, you get
> Apache to handle the file, parsing it, and generating an output.  But,
> as I said, this should have been taken care of already.
>
> #
> # PHP is an HTML-embedded scripting language which attempts to make it
> # easy for developers to write dynamically generated webpages.
> #
>
> LoadModule php5_module modules/libphp5.so
>
> #
> # Cause the PHP interpreter to handle files with a .php extension.
> #
> AddHandler php5-script .php
> AddType text/html .php
>
> #
> # Add index.php to the list of files that will be served as directory
> # indexes.
> #
> DirectoryIndex index.php
>
> #
> # Uncomment the following line to allow PHP to pretty-print .phps
> # files as PHP source code:
> #
> #AddType application/x-httpd-php-source .phps
>
> -- 
> (This box runs FC5, my others run FC4 & FC6, in case that's
> important to the thread.)
>
> Don't send private replies to my address, the mailbox is ignored.
> I read messages from the public lists.
>
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.11.17/951 - Release Date: 8/13/2007 
> 10:15 AM
>
> 




More information about the users mailing list