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 > Software - Troubleshooting and Discussion > Mac OS X > serving web pages in Tiger

serving web pages in Tiger
Thread Tools
Junior Member
Join Date: Aug 2002
Location: Brooklyn
Status: Offline
Reply With Quote
May 20, 2005, 07:09 PM
 
I was serving web pages in Panther without a problem, but when I upgraded to tiger it knocked out my apache prefs.

I got back php without a problem (instructions here: http://www.phpmac.com/articles.php?view=225 )

But there are 2 things from the old config that I used to have that are now off that I would like back and was wondering if anyone here could help.

On the old config if I put in the directory ie blahblahblah/blah/tiger/ it would automatically look for index.html, index.htm, and index.php now I have to explicitly spell those out. I'd like the old behavior back.

On the old config if I typed in a directory that did not have an index file I would get a directory listing. Now I just get an error unless I type in the exact page.

Any help anyone?
     
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
May 21, 2005, 01:19 AM
 
Did you try reading the apache configuration file?

/etc/httpd/httpd.conf

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Junior Member
Join Date: Aug 2002
Location: Brooklyn
Status: Offline
Reply With Quote
May 21, 2005, 06:39 PM
 
yes.... and I found the bit to control the index.html, index.htm and index.php files... but I can't seem to turn on the directory feature for directories without index files. Anyone?
     
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
May 22, 2005, 01:04 AM
 
[...]

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
May 22, 2005, 01:04 AM
 
This page suggests you have to work with htaccess settings in order to enable virtual directory listings. It is probably disabled in Tiger because the feature is now considered a possible security issue.

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
Junior Member
Join Date: Aug 2002
Location: Brooklyn
Status: Offline
Reply With Quote
May 23, 2005, 10:36 AM
 
FYI: The answer is this:

Insert this into httpd.conf:
------------------
Alias /Sites/ "/Users/yourusername/Sites/"

<Directory "/Users/yourusername/Sites/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
------------------
Where yourusername = your username.
     
   
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 07:17 PM.
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