Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 13th, 2002, 04:25 PM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
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

Reply With Quote
  #2  
Old February 13th, 2002, 06:40 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #3  
Old February 14th, 2002, 12:25 AM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
>> 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

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > question about <IfModule mod_dir.c> and mod_php4.c


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT