logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: login not saved
Author
nlandau



Joined: 27 Mar 2017
Posts: 2
Location: Israel

PostPosted: Mon 27 Mar '17 8:01    Post subject: login not saved Reply with quote

I am running an apache server on ubuntu 16.04 I have the following virtual server defined:

Code:
<VirtualHost *:80>

    ServerAdmin webmaster@localhost
    DocumentRoot /home/ubuntu/myuser/html

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    ServerSignature Off

    <Directory "/home/ubuntu/myuser/html">
        AllowOverride All
        AuthType Basic
        AuthName "Restricted Content"
        AuthUserFile /etc/apache2/.htpasswd
        Require user admin
    </Directory>
    <Directory "/home/ubuntu/myuser/html/test1">
        AuthType Basic
        AuthName "Restricted Content"
        AuthUserFile /etc/apache2/.htpasswd
        AuthGroupFile /etc/apache2/.htgroups
        Require group Test1G
    </Directory>
</VirtualHost>

Group Test1G includes users (admin, test1).

When I login with user test1 to folder tes1, every sub folder (or even a page refresh) requires me to enter the user/pass again and again.

When I login with user admin, everything is ok. I only enter the credentials once on login and I can navigate freely between folders.

Can anyone please explain what is wrong with my settings? Why doesn't the server remembers the credentials?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7294
Location: Germany, Next to Hamburg

PostPosted: Sat 01 Apr '17 14:40    Post subject: Reply with quote

The test1 directory inherits the settings from the directory above.

Add Satisfy any in test1
Back to top
nlandau



Joined: 27 Mar 2017
Posts: 2
Location: Israel

PostPosted: Fri 07 Apr '17 11:13    Post subject: Reply with quote

If I add Satisfy any it doesn't request a user/pass at all (not even at first login)
Back to top


Reply to topic   Topic: login not saved View previous topic :: View next topic
Post new topic   Forum Index -> Apache