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 > macOS > serving web pages in Tiger

serving web pages in Tiger
Thread Tools
themexican
Junior Member
Join Date: Aug 2002
Location: Brooklyn
Status: Offline
Reply With Quote
May 20, 2005, 08: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?
     
Detrius
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status: Offline
Reply With Quote
May 21, 2005, 02: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
     
themexican  (op)
Junior Member
Join Date: Aug 2002
Location: Brooklyn
Status: Offline
Reply With Quote
May 21, 2005, 07: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?
     
Big Mac
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
May 22, 2005, 02:04 AM
 
[...]

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
Big Mac
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
May 22, 2005, 02: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
     
themexican  (op)
Junior Member
Join Date: Aug 2002
Location: Brooklyn
Status: Offline
Reply With Quote
May 23, 2005, 11: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.
     
   
 
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
Top
Privacy Policy
All times are GMT -4. The time now is 04:42 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,