Apache giving a Directory index forbidden by rule: /Users/me/Music/iTune

I am trying to configure Apache to display my iTunes folders so that I can download them to my Playstation 3. The Playstation 3 either gives me a network error, or a "Directory index forbidden by rule: /Users/me/Music/iTunes/" in Apache. The network error on the PS3 seems to occur when Bonjour (?) rewrites the system name (I have entered the IP address) to "george-smiths-computer.local", since the playstation 3 doesn't know how to find this address.
My rules in httpd.conf seem to be OK, so the second Directory error doesn't make sense:
Alias /iTunes/ "/Users/me/Music/iTunes/"
<Directory "/Users/me/Music/iTunes/">
Options +Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
If I put index.html in the directory apache will find and display it, but still no directory index.
I have a workaround by copying the files to /usr/share/httpd/icons, which DOES show the index:
<Directory "/usr/share/httpd/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Does anyone have any suggestions?
Thanks!
Dave

Hi--
Welcome to the Apple Discussions.
I played around with Apache and came up with a couple of things to look at. I can get it to give me the Hi--
Welcome to the Apple Discussions.
I played around with Apache and came up with a couple of things to look at. I can get it to give me the Directory index forbidden by rule: /Users/me/Music/iTunes/ error in the log if I mess up the Directory block by forgetting to put a quotation mark at the head of the block:
<Directory /Users/charlie/Music/iTunes/">
Also, I can get Apache to show me the 403 error if I have the case wrong on a directory in the path. In other words, if I did "Me" instead of "me" (assuming the home directory really is "me", I get a 403 error. But, strangely enough, it doesn't log it in the error log. So take a real close look at your paths in that directive (I'm assuming you didn't just copy and paste them out, since "me" seems like an unlikely user name).
The "redirect" to the Bonjour name is more likely a result of content negotiation. I'd guess you're asking for the directory without a trailing "/" character. When that happens, Apache does a redirect to the same directory, but adds the trailing "/". You should be able to get around this by always specifying the "/" in the URL. You might also want to look in the Apache Docs at both the ServerName and UseCanonicalName directives.
For example, if you don't care about redirects always working sensibly from outside your network (i.e., the Internet), you could always set the ServerName directive to the IP address of your server inside the LAN. And you could turn off UseCanonicalName, too. That would keep it from trying to use the Bonjour name to construct URLs in situations where it does these redirects.
charlie
P.S.--Make sure you back up your http.conf file before you do a lot of hacking at it, just in case. You can always copy in the default, but it's a hassle if you've already done some successful customization...

Similar Messages

  • Directory index forbidden.

    hi folks,
    i want u r help,my clint is using Apache and tomcat both the webservers my wars are deployed on those mechines.in my place it was working fine with the same wars and required settings are made on client mechine also(related to programming).but its giving an error like this while i am checking their Error_log files.
    "Directory index forbidden by rule"
    Thanks & Regards
    prasad.sistla

    Are you running Apache?
    Try checking your
    Options -indexes
    value.
    If you have that set, try setting it to
    Options All
    Check this site for more info
    httpd.apache.org/docs/1.3/mod/core.html
    Hope it works!

  • Directory index forbidden by Options directive:

    Trying to setup a secure website. The folder is located in the users folder under sites. This is what the log file says and when you go to the address you get forbidden. Completely lost and new to this.

    Hi
    I solved it. The issue was that I have server.app installed and did not realize that I must use
    /Library/Server/Web/Config/apache2/httpd_server_app.conf
    instead of
    /etc/apache2/httpd.conf
    once I made those changes everything worked as it should.

  • Apache 2 & OSX 10.5 - Stop Directory Indexing

    Hi,
    I'm running a home-based web server on 10.5 and by default directory indexing seems to be on. That is, if you hit a directory on the web server with no index page in it then Apache returns a list of the files in the directory. I'd like to turn this off but don't know how.
    I think this used to be called fancy indexing under Apache 1.2 and there was an option for this, but in my private/etc/apache2/httpd.conf file this option no longer exists. An ideas?
    Many thanks,
    Pat

    You'll have to edit /etc/apache2/httpd.conf in the text editor of your choice. Assuming "path/to/WebserverDirectory" is where you want to turn indexing off, add the lines
    <Directory "path/to/WebserverDirectory">
    Options -Indexes
    </Directory>
    Every subdirectory will have indexing turned off. You can enable indexing for subdirectories with
    <Directory "path/to/WebserverDirectory/subdirectory">
    Options Indexes
    </Directory>
    When you're done editing, save your changes and turn Web Sharing (in the System Preference) off and then back on. Make sure to empty your caches when reloading in your web browser.

  • How to get rid of Index of file:///C:/Users/lago/AppData/Roaming/SpecialSavings/ Up to higher level directory Name Size Last Modified File:SpecialSavings_2.0

    I am unable to uninstall this high risk addon shown below in Firefox Ad Data
    Index of file:///C:/Users/lago/AppData/Roaming/SpecialSavings/
    Up to higher level directory
    Name Size Last Modified
    File:SpecialSavings_2.0.0.crx 25 KB 19-Aug-12 6:03:42 PM
    Anyone know how to get rid of it please?

    I am unable to uninstall this high risk addon shown below in Firefox Ad Data
    Index of file:///C:/Users/lago/AppData/Roaming/SpecialSavings/
    Up to higher level directory
    Name Size Last Modified
    File:SpecialSavings_2.0.0.crx 25 KB 19-Aug-12 6:03:42 PM
    Anyone know how to get rid of it please?

  • Default page when no directory indexing

    Hi,
    I disabled directory indexing on the appserver. But now, for subdirectories of the docroot just a plain white page is displayed. Is it possible to have a custom page shown there?
    If so, how?
    Grtz

    I've been searching for weeks for a way to turn off directory indexing! How did you do it?
    thanks!
    Cedar

  • Help me!  403: Forbidden by rule

    I really want to play a movie from the internet and it requires Quicktime but I keep getting this error . . . 403: Forbidden by rule. Can anyone help me?

    That error usually implies that the web site (either by URL or by IP) has been blocked somewhere. If you're on a company network, you'll want to take this up with your network admin; they may be blocking some sites (not uncommon for a company to do).
    If you're on a private Internet account, post the URL and we can take a look and see if the problem appears to be on the web host end or is more likely to be with your system (perhaps an overly agressive firewall setting).

  • Giving permissions to Index

    Hi,
    I have around 30 indexes and i want to give permission for these indexes to a particular user.How can i go about this?
    I can go to each index and go to permission and assign them but is there a work around ....
    Regards,
    Vijith

    Hi Vijith,
    > the reviews added to the folders did not get transported
    Right, this is not supported by ICE, see http://help.sap.com/saphelp_ep60sp2/helpdata/en/e2/61701deb253242bea2ebeafa190e83/frameset.htm
    I know that SAP plans a "real" transportation tool to balance all the disadvantages of the ICE transport, but to my knowledge it is not published yet.
    So far, you will have to implement your own solution...
    Hope it helps
    Detlev

  • [warn] mod_bonjour: Cannot read template index file '/System/Library/User Template/English.lproj/Sites/index.html'.

    Operating System: Lion 10.7.5
    I was getting this warn in the logs
    [warn] mod_bonjour: Cannot read template index file '/System/Library/User Template/English.lproj/Sites/index.html'.
    and looking to the System directory on;
    System/Library/User Template
    User Template was locked and onwned by the System.
    I went to the terminal and type;
    sudo mkdir "/System/Library/User Template/English.lproj/Sites/"
    sudo touch "/System/Library/User Template/English.lproj/Sites/index.html"
    re-started Apache
    The warn went away gracefully

    I am adding here that this seems to be a permissions bug since the "User Template" is owned by the system and no one else have access to it. The warn went away temporarily because the permissions still wrong in that directory. I changed the permissions on the User Template directory to read and see what is inside and it loops to the user system structure. Most of the directories in the system structure are locked leaving only the public and sites directory with the correct permissions. Inside of the sites folder have a blank index.html file with read access.
    So I am not sure if what I did until now will resolve the warn issue.
    What I did was to get info on the User Template directory, authenticate as root and change the permission to the admin to read only. That is harmles since not even the admin can change its content. The warn seems to have gone away for now. However, the point here is to find out if the permissions should be read and write for the admin instead of read only or some other conf. More latter!

  • Regarding the internet breech as seen on the news.  What advice is Apple giving to its computer, iPad, and phone users?

    Regarding the internet breech as seen on the news.  What advice is Apple giving to its computer, iPad, and phone users?

    That does not affect any OS X client or iOS, and there is no action for you or Apple to take.
    Ignore hyperventilating popular media outlets that thrive by promoting fear and discord with entertainment products arrogantly presented as "news". Learn what real threats actually exist and how to arm yourself against them:
    The most serious threat to your data security is phishing. To date, most of these attempts have been pathetic and are easily recognized, but that is likely to change in the future as criminals become more clever.
    OS X viruses do not exist, but intentionally malicious or poorly written code, created by either nefarious or inept individuals, is nothing new.
    Never install something without first knowing what it is, what it does, how it works, and how to get rid of it when you don’t want it any more.
    If you elect to use "anti-virus" software, familiarize yourself with its limitations and potential to cause adverse effects, and apply the principle immediately preceding this one.
    Most such utilities will only slow down and destabilize your Mac while they look for viruses that do not exist, conveying no benefit whatsoever - other than to make you "feel good" about security, when you should actually be exercising sound judgment, derived from accurate knowledge, based on verifiable facts.

  • H/w requirements for DIrectory server for 200,000 users

    Hi,
    I would like to implement Directory services for 200,000 users. How can I know whether iPlanet Directory 5.1 will support this many users or not? If supports, Which h/w I have to use?
    If any one can let me know the formula to calculate users and h/w
    Thanks

    The directory server can handle many more users than 200K. The hardware requirements calculations are amply explained in the book "Solaris and LDAP Naming Services" by Bialaski. If you have iPlanet support contract they can provide you tuning information which includes this info.
    You should remember the possibility of growth and load in terms of number of clients and peak requests per second. With your needs, my gut feeling is that even a Netra can host it. However, if it's an enterprise service you may want to go with at least 220 machines in a replicated configuration for load balancing and availability.
    DISCLAIMER: Use these opinions at your own risk. You must do your own analysis and calculations to design a suitable physical/logical architecture.

  • TEXT INDEX의 META DATA를 CTXSYS USER에서 삭제하는 방법

    제품 : ORACLE SERVER
    작성날짜 : 2004-05-27
    TEXT INDEX의 META DATA를 CTXSYS USER에서 삭제하는 방법
    ======================================================
    PURPOSE
    Intermedia text 나 Oracle Text 를 사용할 때, Text index는 삭제되었는 데,
    meta data가 삭제되지 않은 경우가 생긴다.
    이런 경우, 수동으로 meta data 까지 모두 삭제하는 방법을 알아보자.
    Explanation
    이 방법은 잘못되는 경우 CTXSYS user를 다시 초기화 해야하는 문제가 발생할 수
    있으므로 이를 감안하여 작업해야 한다.
    수동으로 삭제하는 방법은 다음과 같은 절차를 이용하여 작업할 수 있다.
    1. 먼저 해당 user에서 다음과 같은 command로 index를 drop 해 본다.
    SQL> drop index INDEX_NAME force;
    2. drop command로 drop이 정상적으로 되지 않으면 다음과 같이 실행한다.
    sqlplus ctxsys/ctxsys
    select idx_id from dr$index where idx_name='<TEXT_INDEX_NAME>';
    => 조회된 index id가 1092 인 경우 아래와 같이 실행한다.
    delete from dr$index_value where IXV_IDX_ID = 1092;
    delete from dr$index_object where IXO_IDX_ID = 1092;
    delete from dr$index where idx_id = 1092;
    commit;
    3. Text index를 생성한 user에서 DR$<index_name>$i 이름의 TABLE을 모두
    다음과 같이 drop한다.
    SQL> drop table dr$<index_name>$i;
    SQL> drop table dr$<index_name>$k;
    SQL> drop table dr$<index_name>$n;
    SQL> drop table dr$<index_name>$r;
    4. 이제 해당 Text index를 다시 생성하면 된다.
    Reference Documents
    <Note:133482.1>

  • Apache does not find index.php if not explicitly stated in URL

    I have googled for long over this (mod_dir ?) problem without success:
    My Apache is configured such that it fails to open this link (without trailing slash):
    http://bioinfo.tg.fh-giessen.de/cancer
    However, it manages to open if the trailing slash or the full path is given:
    http://bioinfo.tg.fh-giessen.de/cancer/
    http://bioinfo.tg.fh-giessen.de/cancer/index.php
    (But one directory above this is not a problem, both
    http://bioinfo.tg.fh-giessen.de/
    http://bioinfo.tg.fh-giessen.de
    are resolved. ???!)
    The relevant settings in httpd.conf is given below. Anybody ?
    <Directory >
    Options Indexes FollowSymLinks
    Allow from All
    Order Allow,Deny
    AllowOverride All Options
    </Directory>
    <IfModule mod_dir.c>
    DirectoryIndex index.html Einfuehrung.html index.php
    </IfModule>

    No need to put it within the <ifmodule mod_dir>
    Just slap this at the verry bottom of httpd.conf after every other part of the code!
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    DirectoryIndex index.html index.php
    and bob's your uncle and maybe your farther too

  • Perl and apache giving access denied message locally...

    I have a simple perl script that is sitting in my "sites" directory, and have turned on all the changes in the apache httpd.conf file.
    when I use http://localhost~username i get the default web page, but when I add the firct.cgi to the end, I get the following error...
    Forbidden
    You don't have permission to access /~kentjason/first.cgi on this server.
    why is this happening. I should be able to see anything in that directory, right?
    thanks alot,
    jason

    That was it! ok so what did that do? I thought the x
    property was for actual executables like safari
    etc...
    You need the executable bit set in any UNIX variant for a file that is executed directly. It could be a script or an actual executable binary. For example, if you tried to execute the file from the command line directly it would have given an error.ls -l test.pl
    -rw-r--r-- 1 joe staff 226 Jan 15 2003 test.plNote that the execute bit is not set. Now try to execute it from the command line like so:./test.pl
    -bash: ./test.pl: Permission deniedBut, you could execute it by calling perl directly and using the script as an argument.which perl
    /usr/bin/perlNote that perl's execute bit is set:ls -l /usr/bin/perl
    -rwxr-xr-x 1 root wheel 19280 Mar 20 2005 /usr/bin/perlSo, without changing the permissions on the script itself, it would run if you did it this way:perl test.plThe web server always tries to run CGI scripts directly, so in that case the execute bit must be set. For scripts that use interpreters like bash or perl, the "sh-bang" line (ie, #!/usr/bin/perl on line 1) tells the OS which interpreter to use when you execute it directly. You could leave that out, but then you'd need to run the script as an argument to the interpreter as mentioned above. Does that all make sense?
    Anyway, I'm glad you have it working and hope I didn't over complicate things with this explanation

  • [SOLVED]apache, passwd by directory

    Hi,
    im trying to setup a basic password protection on my dokuwiki:
    <Directory "/dokuwiki/">
    AuthType Basic
    AuthName "Restricted Files"
    # (Following line optional)
    AuthBasicProvider file
    AuthUserFile /etc/httpd/conf/passwd
    Require user someuser
    </Directory>
    but i can still access the directory after a server restart?
    The passwd file was created according to:
    http://httpd.apache.org/docs/2.2/howto/auth.html
    Julius
    Last edited by metalfan (2008-11-22 10:40:11)

    this was probably missing, anyway. the httpd howto is correct.
    AuthBasicProvider file

Maybe you are looking for

  • How can I view 2 pages on the screen?

    With old Pages there was an option in Zoom to see One Up or Two Up. But this has now disappeared. How can I see Two Up?

  • Populating datagrid using web service. pls help me...

    i don't know why i cant populate my data grid using data on a web service, i try to access web service by a simple return string like helloworld and it is working but when i try to get data in web service nothing happens there is no error on my build

  • Installing iMac G3 Firmware Update 1.2 on Mac OS X

    Good evening! I own an iMac G3 Rev. D (333 MHz). It's currently running Mac OS X 10.3.9. At first, I tried to downgrade to Mac OS 9, with no success. Eventually, I found out that the iMac wouldn't react to any startup keyboard commands (just like C,

  • Data point Values

    By default, Keynote displays the values on each Data Point. Is there anyway I can only put the value on the last Data Point?

  • Hard Drive connection to Airport Extreme

    The hard drive (or a flash drive) that I connect to the USB port of my Airport Extreme does not appear on the desktop of my MacBook Pro. The Airport Extreme works fine for Wi-Fi, and the hard drive works fine when connected directly to my laptop. Is