www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Server-Side Development > Other

    Other Discussion and technical support for any other scripting methods.

    Reply
     
    Thread Tools Rate Thread Display Modes
      #1  
    Old 03-10-2010, 06:10 AM
    devel95 devel95 is offline
    Registered User
     
    Join Date: Apr 2008
    Posts: 146
    Apache Directive for Allow From

    I want to button down write access on a particular file in a certain directory using the Allow form directive in my httpd.conf file.

    I have a PHP script that I want to be the only resource that can write to this file. Right now, given the directives below, I can read the file but I cannot write to it.

    Is there a variation of the Allow from that I can define to make this happen?

    HTML Code:
    <Directory /usr/www/publicDirectory/privateDirectory>
        Order Deny,Allow
        Deny from all
        <Files installer.php>
            Allow from all
        </Files>
        ErrorDocument 403 /
        ErrorDocument 404 /
    </Directory>
    Reply With Quote
      #2  
    Old 03-10-2010, 06:16 AM
    devel95 devel95 is offline
    Registered User
     
    Join Date: Apr 2008
    Posts: 146
    Nevermind...sorry, it ended up being a permissions issue with the file on the server. These directives actually did work.
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools
    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

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 12:43 PM.



    Acceptable Use Policy

    Internet.com
    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.