|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
question about <IfModule mod_dir.c> and mod_php4.c
I recently installed Apache/mySQL/mod_php4 in FreeBSD.
Anyway, when I am editing the httpd.conf and it seems different from Windows's httpd.conf when I had it long time ago.... Can I change like this from.. Code:
<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>
to Code:
<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>
or do I have to keep <IfModule mod_php4.c> in there too? BTW: another question... Change from: Code:
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
to (delete IfModule) Code:
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps or should I keep that way? I think, delete IfModule would be better? Thanks, Mezz |
|
#2
|
|||
|
|||
|
Yes you can change that to just DirectoryIndex index.php index.html or without any <IfModule> at all.
Start here to find out more -> http://forums.devshed.com/showthrea...0441&forumid=15 Or you can evven do a search using the exact IfModule search keyword. IMHO, the existence of <IfModule> is redundant without a <ElseModule> directive. |
|
#3
|
|||
|
|||
|
>> IfModule directive sucks. It assumes everything to return true. Should something returns false, Apache will simply ignore it on startup.
I copied it from your post in this link that you gave... Anyway, I totally agreed with you about that should be returns false instead true to not waste it. Hope, that's what the developers of Apache are doing for version 2, which I haven't read about it but I will read it. The Apache server is running so smoothly with mod_php4, mySQL and mod_gzip.. ![]() Thanks, Mezz |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > question about <IfModule mod_dir.c> and mod_php4.c |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|