apache_2fa icon indicating copy to clipboard operation
apache_2fa copied to clipboard

Unable to Complete

Open soubhikbasu opened this issue 6 years ago • 2 comments

I have completed 1st step of authentication, but after successful authenticate google authenticate page will not come, straight redirect to protected directory. Not sure why?

Can you please help me out?

My Virtual Host file look like below

i am working in xampp on localhost in ubuntu

RewriteEngine On

RewriteCond %{REQUEST_URI} !^/auth/
#RewriteCond %{HTTP_COOKIE} !^.*2FA_Auth=([a-zA-Z0-9]+)
RewriteRule ^(.*)$ /auth/auth?$1?%{QUERY_STRING} [L,R=302]

RewriteCond %{REQUEST_URI} !^/auth/
#RewriteCond %{HTTP_COOKIE} ^.*2FA_Auth=([a-zA-Z0-9]+)
RewriteCond /opt/lampp/htdocs/2factor/apache_2fa/state/%1 !-f
RewriteRule ^(.*)$ /auth/auth?$1?%{QUERY_STRING} [L,R=302]

ScriptAlias /auth/ /opt/lampp/htdocs/2factor/apache_2fa/

<Directory /opt/lampp/htdocs/2factor/apache_2fa> AuthType Digest AuthName "dev.apache2fa.com" AuthDigestDomain / AuthDigestProvider file AuthUserFile /opt/lampp/htdocs/2factor/apache_2fa/apache_credentials Require valid-user </Directory>

    <Directory /opt/lampp/htdocs/Temp>
        AuthType Digest
        AuthName "dev.apache2fa.com"
        AuthDigestDomain /
        AuthDigestProvider file
        AuthUserFile /opt/lampp/htdocs/2factor/apache_2fa/apache_credentials
        Require valid-user
    </Directory>

soubhikbasu avatar Oct 17 '19 12:10 soubhikbasu

That means your Apache configuration is not triggered. Make sure mod rewrite is enabled, Apache sees the configuration (reload the config if you didn’t) and the directories in the configuration cover the correct path/directories.

itemir avatar Oct 17 '19 14:10 itemir

  1. mod rewrite is enabled already 2.after each of changes in vhost reload the apache
  2. the directory names are already mentioned in my last comment

soubhikbasu avatar Oct 17 '19 14:10 soubhikbasu