apache+SSL, which port?
Mark Ovens
marko at freebsd.org
Tue Feb 1 09:41:39 PST 2005
Adi Pircalabu wrote:
> On Tue, 01 Feb 2005 17:12:02 +0000
> Mark Ovens <marko at freebsd.org> wrote:
>
>> Should have mentioned that I tried adding that but it just caused the
>> contents of index.php to be displayed in the browser rather than the
>> directory listing.
>
> If I understand this correctly, your .php page was not parsed, but
> displayed. You should also need a directive like this:
>
> AddType application/x-httpd-php .php
>
>>From what I see, /usr/ports/lang/php4/pkg-message.mod says how to
> complete the integration of php module.
That's fixed it, thanks :-)
httpd.conf from the previous version I had installed doesn't have
index.php in the DirectoryIndex directive, but it does have
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .php3s
</IfModule>
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
<IfModule mod_dir.c>
<IfModule mod_php3.c>
<IfModule mod_php4.c>
DirectoryIndex index.php index.php3 index.html
</IfModule>
<IfModule !mod_php4.c>
DirectoryIndex index.php3 index.html
</IfModule>
</IfModule>
<IfModule !mod_php3.c>
<IfModule mod_php4.c>
DirectoryIndex index.php index.html
</IfModule>
<IfModule !mod_php4.c>
DirectoryIndex index.html
</IfModule>
</IfModule>
</IfModule>
but I'm 99% certain I didn't have to add those....hmmm, the previous
version was installed from a package, the current version from the
ports; maybe that's why?
Thanks again for your help.
Regards,
Mark
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0505-0, 31/01/2005
Tested on: 01/02/2005 17:41:00
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com
More information about the freebsd-questions
mailing list