Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Our Archives > General Archives > Servers > using index.html AND index.php

 
using index.html AND index.php
Thread Tools
Grizzled Veteran
Join Date: Oct 2000
Location: Vancouver
Status: Offline
Jun 10, 2001, 10:33 AM
 
I had a problem getting apache to recognize a list of names for default documents. I often use index.php and index.html but when I put both names in the "general" tab for site set up it saw that as one name (index.html index.php) So I looked at the config file "http_osxserver.conf" and noticed that it has all values between quotes "index.html" so if I added two names it looked like "index.php index.html" so on a hunch I tryed to outsmart it and set the default document in the GUI to index.php" "index.html and it worked, If you look back at the config file it looks like "index.php" "index.html"

Hope this helps.
Alex Duffield
http://www.incontrolsolutions.com
Fatal error: Call to undefined function: signature() in /usr/local/www/htdocs/showthread.php on line 813
     
Dedicated MacNNer
Join Date: Sep 2000
Location: Wilsonville, OR, USA
Status: Offline
Jun 10, 2001, 01:40 PM
 
Actually there's a better way. In the setting in the admin server just it to index. There with a text editor go into /etc/httpd/httpd.conf and edit lines like:

AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .phps AddType text/html .shtml AddHandler server-parsed .shtml

This allows it to pick up files index.php3, index.phps, index.shtml, and index.shtml. I routinely used index.html and index.shtml and it works fine.
MacBook Pro 17" 2.4 Ghz, 4GB ram, 200GB 7200rpm HD
     
 
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:04 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2