1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

User authentication for subfolder not working

Discussion in 'Apache' started by dxbrocky21, Apr 12, 2012.

  1. #1
    We are using Oracle Application and Database Server for our application.One of the functionalities of the Application is to send emails with attachments.The logic is that the Application would generate the attachment file on the Application Server.Then a database package uses Oracle's utl_http package/procedures(more specifically utl_http.request_pieces where the single argument is a URL) to pick up the file from the Application Server via URL, attach the file and send the email.Exchange and Relay Server is also set in the Application.The problem is that the folder containing the folder which stores the attachments is having user authentication set.Example : The main folder is /apps/interface, this folder requires a valid user when it is accessed via URL on a web browser.Alias created in httpd.conf Alias /int-dir/ "/apps/interface/"The folder /apps/interface/email/ is the folder where the attachment files are generated and stored.Application Server : 10.12.213.21Database Server : 10.12.213.22Email Server : 10.12.213.44Configuration as per httpd.confAlias /int-dir/ "/apps/interface/" AuthName "Interface folder" AuthType Basic AuthUserFile "/u01/app/oracle/as10g/oasmid/Apache/Apache/conf/.htpasswd" require user scott Options Indexes Multiviews IncludesNoExec Order deny,allow Deny from all Allow from 10.12.213.21 Allow from 10.12.213.22 Allow from 10.12.213.44 Using the above configuration the Application is able to attach the files and send the email, however, when we access the following URL :http://10.12.213.21:7778/int-dir/ - it prompts for user authenticationHowever if we use the following URL :http://10.12.213.21:7778/int-dir/email/ - it does not prompt for user authentication, and all the files in the folder are displayed in the browser.I have tried so many things including AllowOverride, .htaccess, but i am not able to get user authentication for the email folder.Please help me if you can.Thanking you in advance,GLad to give any more information that i can.dxbrocky
     
    dxbrocky21, Apr 12, 2012 IP
  2. dxbrocky21

    dxbrocky21 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    added problem description in text file for more readability, thanks
     

    Attached Files:

    dxbrocky21, Apr 12, 2012 IP