Apache authentication using .htaccess not working??

I have added the following to my httpd.conf file:
<Directory "/Library/WebServer/Documents/secret">
Options FollowSymLinks
AllowOverride None
</Directory>
Then I created an .htaccess file in /Library/WebServer/Documents/secret with the following contents:
AuthName "Private area - server owner only. Hit Cancel."
AuthType Basic
AuthUserFile /Library/WebServer/.htpasswd
require valid-user
Then in Terminal I entered the following:
htpasswd -c /Library/WebServer/.htpasswd s1lly
New password: rabb1t
Re-type new password: rabb1t
Adding password for user s1lly
Thn I stopped and re-started Apache using the OS X Server Admin apps. Now when I go to http://localhost/secret in my browser, it asks me for a username & password. I enter s1lly and rabb1t, but all it tells me is:
"Forbidden
You don't have permission to access /secret/ on this server.
Apache/1.3.33 Server at localhost Port 80"
What am I doing wrong? Before I added the .htaccess file and changed the httpd.conf, everything worked properly, so I know the URLs are correct. All files are set to be world-readable.
Changing the .htaccess line from require valid-user to require user s1lly didn't help either.
Thanks,
Mike
G4 MDD 1.25 GHz   Mac OS X (10.4.9)   Running OS X Server 10.4.9
iBook 700mHz   Mac OS X (10.3.9)  

Mike--
I have added the following to my httpd.conf file:
<Directory "/Library/WebServer/Documents/secret">
Options FollowSymLinks
AllowOverride None
</Directory>
Shouldn't that be AllowOverride AuthConfig? With it set to "None", Apache shouldn't be looking at the .htaccess file at all.
charlie

Similar Messages

  • Apache, authentication required, key not working

    I'm trying to set up my PC with Apache Server. If i try to access it from my laptop in our home, it serves on 192.168.1.102 I went to no-ip.biz because we have a dynamic IP here. when i try to remotely access the server, i get a screen that says: Authentication required Enter username and password for "linksys BEFW11S4 V.2" at http://XXXXXX.no-ip.biz (xxx being my subdomain i requested) the screen will not accept any 'admin' or the network key i use. Any advice?

    Hi
    You should use port forwarding and forward your apache port (usually 80) to the ip address of the machine that has apached installed
    Hope this works
    Cheers

  • Change password on the first use - does not work

    Change password on the first use - does not work.
    Created a user and specified 'Change password on the first use' - when user logs in - the 'Change password' window does not pop- up.
    Please advise.

    (APEX 4.0.2) I am running into this same issue - if you don't set the password expiration and locking to 'Yes', the user gets into the app without being asked to change the pw.
    When you do set expiration and locking - after the user logs on with their temporary password, it does take them to the change password page (4155:50) but the username is blank. Because the username didn't get to the page the old password will never match and you get the "Invalid password" message.
    What am I missing? Anyone successful doing this?
    Simple application, default authentication, no javascript, HTTP_SERVER, no ssl.
    Thanks,
    Steve

  • Htaccess not works at public_html: why?

    Hi,
    i have the topic problem.
    The htaccess file works correctly in /srv/http dir, but if i use the same file in public_html it isn't see (i think).
    I googled the question but i have not find a real answer to the problem.
    Can someone help me?
    Sorry for my english.
    PS: I have set "AllowOverride All" on: httpd.conf and the rispective config file for usersdir.

    Well I'm having the same problem. The configuration is exactly by the book of apache I think:
    UserDir public_html
    <Directory "/home/*/public_html">
    #AllowOverride FileInfo AuthConfig Limit Indexes
    AllowOverride All
    Options Indexes FollowSymLinks
    #Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS>
    Order allow,deny
    Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS>
    Order deny,allow
    Deny from all
    </LimitExcept>
    </Directory>
    Even if I take a look in to .htaccess file what I have tried on sever several and distribution:
    php_flag allow_url_fopen on
    RewriteEngine on
    # RewriteBase /home/*/public_html/site/
    # RewriteCond %{HTTP_HOST} ^domain\.com [NC]
    # RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^/]+)/?$ index.php?page=$1
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^/]+)/([^/]+)?/?$ index.php?page=$1&page2=$2
    And on last step, I look in to log file where I see that:
    [Tue Nov 15 20:13:08 2011] [error] [client ::1] File does not exist: /srv/http/home, referer: http://localhost/*/site/
    So now if I'm thinking right it's trying to find the directories in /srv/http/home, but I'm not requesting home I'm requesting different variable and why it's trying to find the directories in /srv/http if I'm using userdir. So I tried set RewriteBase in my htaccess file but same problem. To be honest I'm out of idea and I be happy when someone solve this.

  • Apache Tika PDF Parser not working in CQ 5.6

    Hi all,
    I was using following code to extract text from PDF in a CQ package.
    ContentHandler handler = new BodyContentHandler();
    Parser parser = new PDFParser();
    parser.parse(a.getOriginal().getStream(), handler, new Metadata(),
    new ParseContext());
    String text = handler.toString();
    This works perfectly in CQ 5.5 but in CQ 5.6 I get following exception:
    Caused by: java.lang.ClassNotFoundException: org.apache.pfbox.io.RandomAccess not found by org.apache.tika.parsers [58]
              at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringI mpl.java:1499)
              at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
              at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl. java:1882)
              at java.lang.ClassLoader.loadClass(Unknown Source)
    Any ideas on why this class is not being found ?
    Thanks!

    Thanks!
    I changed the code to:
    Tika tika = new Tika();
    Reader reader = tika.parse(a.getOriginal().getStream());
    This works in CQ 5.5 and CQ 5.6 both

  • .htaccess not working.

    All,
    I am working with a 3rd party to have some scripts installed that use the .htaccess function. (10.4.11)
    T?he developer has asked me to enable (or check and see if it is enabled) .htaccess.
    These scripts worked fine when we installed them previously on a few of our other boxes. (10.3.9 xServe)...and I don't recall having to manually enable .htaccess or a module there.
    Any thoughts? The .htaccess function is clearly not working on this box and I don't know where the "switch" is.
    Take pity on me and point me the right direction please?
    Thanks,
    -C

    Hey Chris,
    I have also been trying to get .htaccess working using the link above. It is still not working for me.
    I have mod rewrite loaded
    I checked both /etc/httpd/httpd.conf and /private/etc/httpd/httpd.conf
    Each are identical
    There is a line
    AccessFileName .htaccess
    So I am assuming that is on. My only other issue is finding the correct Override statement.
    In osx 10.5.1 Server there are 3 entries that contain AllowOverride one is for Alias /icons/
    the 2nd is for
    <Directory /Library/WebServer/CGI-Exuctables>
    the 3rd is for
    <Directory />
    My questions are.. which httpd.conf do I edit? What changes do I make to it?
    Do I need to make a new <Directory> entry for the location of my "website"?
    My website is located in /Library/WebServer/domainname
    My server settings for that site is configured as follows
    1) folder listing (enabled)
    2) Web DAV (disabled)
    3) CGI Execution (disabled)
    4) WebMAil (disabled)
    5) SSI (enabled)
    6) Allow All Overides (enabled)
    7) Spotlight Searching (disabled)

  • Authentication and Debugging not working -- since Saturday, July 12

    Hi everyone,
    Since Saturday (July 12), the iTunes U launcher that my institution uses (a Moodle block) has ceased successfully authenticating users. From all the looking I've done, nothing has changed from our side, although I am having to do the investigation remotely, and can only be about 95% certain of that so far.
    I'm also not able to use the debug string to see what credentials are being sent to iTunes U, because there appears to be no difference in the launcher process, whether debugging is enabled or not.
    Is anyone aware of any changes or glitches in the system in the last few days? Any information at all will be very greatly appreciated.
    -JR

    Woolamaloo lives to help with such problems. Woolamaloo is an application specifically designed to access your iTunes U site without any CGI, BlackBoard or Moodle building blocks, etc. It accesses your site directly ... using any credential you supply. In effect, you can use it to "be" any user at your site. It can even show you Apple's debug webpage (if you want to see it). You can use Woolamaloo to verify that your site is not working ... or that it is and you have a local problem. You can find out and download the app here:
    http://itunes.uic.edu/Woolamaloo.html
    It comes in both a Windows and Mac OS version (though I admit to having a Mac OS X bias).

  • IPad connected to TV using dim not working with iOS 7.0.2

    Since updating my iPad to iOS 7.0.2, connecting my iPad 4 using hdmi to my tv is not working.
    In fact, when connected, everything on my iPad is in slow motion. The iPad moves in slow motion. And there is no image being mirrored on the tv. This use to work fine before the update. Any ideas?

    (A) Reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.
    (B) Reset all settings
    Settings>General>Reset>Reset all settings
    Note: Data will not be affected but settings will be reset.

  • Report using charts not work on non-development machine

    Post Author: ftsoft
    CA Forum: .NET
    using visual studio report uses charts.  works fine on development machine when I move the web app to a test machine which does NOT contain visual studio, the chart report does not worknote: other reports which only display data records work fine. the space where the charts should be displayed contain the following two lines CrystalReportViewer - CrystalReportViewer1 Error: Fail to render the page.  any help would be appreciated

    Solution suggested worked for me. 
    On my test server Crystal was trying to use the c:\temp directory to write the temporary images, my report always ran ok on the test server.  On the live server CRW was running under with the ASPNET account and / or my own user account. 
    I ran FileMon and filtered on the aspnet_wp.exe process across both servers and ran the application up to the point of generating the issue.  The FileMon output from the test server showed no issues we as the output from FileMon off the live server showed an access denied message.
    I gave access right to the relevant accounts on the relevant folders on the live server and the report ran fine.

  • Resizing image using CSS - not working in IE

    Hello,
    I have a standard report with couple of columns one of which a image column. The images are of varying sizes and I manged to resize them to a fixed width & height by using CSS code in page header as below:
    td[headers="ITEM_PICTURE"] img {
      display: block;
      width: 70px;
      border: 1px solid #999;
      padding: 4px;
      background: #f6f6f6;
    }The CSS does the trick in Chrome & Firefox but does not work in internet explorer. Is there a way to make this CSS code IE friendly?
    Cheers for help.

    William Wallace wrote:
    I am using Apex 4.2.1 (had this issue in 4.1.1 as well) and using theme 10.Ah, the Sludge Sand theme. In 4.x that's a legacy theme only really included to allow applications to run on IE6. It's therefore intended to run in quirks mode, meaning in Internet Explorer terms there's no support for anything that didn't work in IE6 (for certain values of "work"). This means no CSS3, no support for a lot of useful CSS2.1 stuff (like attribute selectors), and probably problems with jQuery which requires standards mode. Adding a DOCTYPE to the page templates to trigger standards mode Interactive Report: how can I display carriage returns?. In 4.2 you really should switch to one of the latest Standard themes, or at least one of the standards mode Legacy themes (those not marked with a "*").
    If you must use theme 10, and there are no other images in this report (like edit icons) then you could add a static ID to the region and use a more basic selector like:
    #static-id td.t10data img {
      display: block;
      width: 70px;
      border: 1px solid #999;
      padding: 4px;
      background: #f6f6f6;
    }However, it appears that one of IE's quirkier quirks mode quirks is that CSS padding is not supported on images, so the presentation you want is not possible using theme 10 in IE and CSS alone.
    Switching to a modern theme is recommended.
    Edited by: fac586 on 02-Mar-2013 10:31

  • Dynamic resizing in JDialog using setSize not working properly on solaris

    can anyone help..
    Dynamic resizing in JDialog using setSize is not working properly on solaris, its work fine on windows.
    i have set Jdialog size to setSize(768,364),
    when i dynamically resizing it to setSize(768,575); it doesn't get change but when i move dialog using mouse it gets refreshed.
    this problem is only happening on solaris not on windows.

    Hi,
    It's only an approach but try a call of validate() or repaint() after re-setting the size of your dialog.
    Cheers, Mathias

  • Problem with GenericCatalogDAO  JDBC Resultset using parameters not working

    Hello
    I have a problem with Petstore GenericCatalogDAO. java. The problem is the behaviour of the resultset object when retrieving data from the database.Below are two synareos one that
    works (when) hard coded and one that does not work when parameter values passed into the the result set.
    1. The code the WORKS.
    statement = connection.prepareStatement("select a.productid , name, descn from product a, product_details b
    where a.productid = b.productid and locale= 'en_US' and a.catid = 'FISH' order by name"
    ,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
    resultSet = statement.executeQuery();
    resultSet.absolute(1);
    String s = resultSet.getString(1);
    The code that gives me a 'exhausted resultset' error which I think means no results
    String[] parameterValues = new String[] { locale.toString(), categoryID };(For example parameters are 'en_US' and 'FISH')
    statement = connection.prepareStatement("select a.productid , name, descn from product a, product_details b
    where a.productid = b.productid and locale=? and a.catid =? order by name"
    ,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
    for (int i = 0; i < parameterValues.length; i++) {
    statement.setString(i + 1, parameterValues[i]);
    resultSet = statement.executeQuery();
    resultSet.absolute(1);
    String s = resultSet.getString(1);
    There is obviously a problem using these named parametevalues with these preparedstatement resultset, Does anybody know anything about this and a fix for it????
    Cheers. Roger

    Which version of PetStore are you using?
    -Larry

  • Change Password on first use does not work properly.

    I have created apex application user in Oracle Apex 3.2 as follows
    BEGIN
    APEX_UTIL.CREATE_USER(
    p_user_name => 'NEWUSER1',
    p_web_password => 'secret99');
    END;
    As in the documentation
    p_change_password_on_first_use  IN      VARCHAR2    DEFAULT 'Y',
    User should be prompted to change password at first use. But it does not work properly. There is no such message. Still accepts user to log in with old passord that was first given to the user. I have tried explicitly to ensure change password at first log in. by
    BEGIN
    APEX_UTIL.CREATE_USER(
    p_user_name => 'NEWUSER1',
    p_web_password => 'secret99',
    p_change_password_on_first_use =>'Y');
    END;
    Still does not work. How can I ensure user to change password on first login.
    Hasan Al Mamun
    Programmer
    Bangladesh Bank
    Dhaka, Bangladesh

    Might be a long way around the problem but I would utilize a boolean flag in a column (FIRST_LOGIN) your custom auth table set to 'Y' when you create their account. Then on the login page have a page process something like:
    ** NOT TESTED **
    declare
    v_first VARCHAR2(10;
    v_session NUMBER;
    begin
    v_session := APEX_CUSTOM_AUTH.GET_NEXT_SESSION_ID;
    select FIRST_LOGIN into v_first from AUTH_TABLE where user_name = :P101_USERNAME and :P101_PASSWORD;
    if v_first = 'Y' then
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v_session,
    P_FLOW_PAGE => :APP_ID||':2' *** THIS IS YOUR PAGE TO HAVE THEM RESET THEIR PASSWORD ***
    else
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v_session,
    P_FLOW_PAGE => :APP_ID||':1' *** MAIN LOGIN PAGE *****
    EXCEPTION WHEN OTHERS THEN
    *** handled **
    end;
    The page 2 in this example would have an few items for them to enter their new password twice, a page process to update their password in the auth table and then redirect them to the intended first page.
    Not sure if it meets your setup.
    Ricker

  • Total using SUM not working on Account field on Lead History report

    Hi,
    I have a report based on Lead History on which I need to use the SUM of a field that is under the Account.Custom Number/Integer. This basically is a report of leads along with some fields from the account the lead is associated with. The SUM on that field works fine when I try it on another report off the Account History object but does not work when used on the report off the Lead History. It just shows the value of the field for that record instead of the total of the field for all the records displayed on the report. I am guessing that the issue has to do with the query going off the Lead-Account relationship because of which it treats each relationship as one resultset and totals the field values for just that relationship.
    Any ideas on how to accomplish this would help very much. Can a field on one report be referred from another to achieve this?
    Thanks in advance for your help!
    Regards,
    Madhukar

    Hi again
    Just checked a similar report test I did a while ago, and my query is:
    SELECT c001 MyText, TO_NUMBER(c002) MyNumber
    FROM HTMLDB_COLLECTIONS
    WHERE COLLECTION_NAME = 'ATD'
    So, you should use TO_NUMBER(c002)
    Andy

  • Apache-Weblogic Bridge does not work?

    I've gone thru' the documentation regarding setting up of apache-weblogic bridge, but still it does not work. Does anyboday have any more details regarding this...EnvironmentOS - Solars 5.7Weblogic - 5.1 SP 8Apache 1.3.12

    I've given up and had to go back to running "Double NAT" which also reports as a "problem" within the AEBS, but I just "ignore" it so the light will always be green.
    It still ***** though, as "Double NAT" is also a reason for "Back to my Mac" not working properly, but how the ** am I supposed to avoid Double NAT when the wireless will not work in bridged mode?!

Maybe you are looking for