0
votes
1answer
34 views

Authentication just for HTTPS Requests in Apache

I configure the authentication for my webspace via a .htaccess file (I have no control over the httpd.conf file). For a secure implementation I have an automatic redirection of HTTP to HTTPS via ...
3
votes
2answers
1k views

Apache basic auth for a particular URL

I have a site in production that I want to modify (translate from French to English). The modified part will be placed in the domain.com/en URL location and I want to protect only this part with a ...
0
votes
1answer
535 views

.htaccess with .htpasswd on site root causes redirect loop

I want to temporarily password-protect a site. I have an .htaccess file in the site root containing: AuthType Basic AuthName "Example Site Name" AuthUserFile /home/my_username/.htpasswd Require ...
0
votes
1answer
259 views

htaccess Block access to directory with two exceptions

I can't figure out how to write an .htaccess file which blocks all access to a directory except for reading html files, which sould be allowed and php-files which require athentication. Denying all ...
3
votes
1answer
118 views

Apache2 Basic Auth: user@ip, user2@ip2 - Is this possible?

I am looking at running an external service for clients to use here in my office while clients are working remotely at their office. Assumptions: Both my office IP and clients office IP are static. ...
0
votes
2answers
257 views

protecting a single .exe-file for downloading with htaccess and htpasswd?

I have this, and only this, in a .htaccess file inside my downloads folder: <FilesMatch "\.(exe)$"> AuthType Basic AuthName "Downloads" AuthUserFile path/to/.htpasswd Require valid-user ...
1
vote
1answer
127 views

How to start Server user authentication in PHP and Apache?

I had a production server which used to authenticate user before granting access. I setup a new machine and copied files from the old server. Now, I can access pages fine, but it does not ask for ...
0
votes
1answer
233 views

Htaccess auth, based on server, not client information

In a current project we have separate development and production. The code on both is in single SVN repository. The problem lies in the access to the development environment from outside. Let's say ...
3
votes
3answers
9k views

Password protect directory with Apache: “couldn't check user. Check your authn provider!”

I am trying to password protect a web directory with apache. I have the site set up like this: D:/ webapp/ lib/ .htpasswd document_root/ admin/ index.php ...
4
votes
2answers
3k views

IIS Basic Authorization ala .htaccess/.htpasswd in apache

How do I implement the protection of the pages (asp.net mvc app), so when I hit the home page or any other pages within the application I get a login dialog popup in the browser I'm looking for ...
0
votes
1answer
233 views

Apache Authentication w/ OS X User Accounts

Is it possible to configure Apache to use the host machine's user accounts for authentication? Say I've got Apache running on a vanilla OS X install and want to basically allow admin users to ...
1
vote
1answer
365 views

Restrain SSPI Auth to one page, Apache conf

I need to have SSPI auth on the adress " / ", but not on the rest of the site I've tried this configuration : <Location "/"> AuthType SSPI AuthName "XXXX" SSPIAuth On ...
5
votes
2answers
2k views

Can I password protect a location (not directory) in apache using htaccess?

I have used code like this in apache configuration to protect locations with password <Location ~ "/admin.*"> AuthType Basic AuthName "Protected Area" AuthUserFile ...
2
votes
3answers
4k views

.htaccess requires password in chrome but not other browsers?

We have .htaccess on our site http://subdomain.site.com/: AuthType Kerberos AuthName "Internet ID" require valid-user order deny,allow deny from all allow from all On a sub directory of the ...
0
votes
1answer
388 views

mod_auth wrong password authentication?

i have a server running apache2 in a debian lenny. something strange happen with the folders protected by .htaccess. basically, if you put a wrong password but formed by the_correct_password + ...
0
votes
1answer
2k views

.htaccess Authentication Internal Server Error 500

I am trying to setup an authentication for a directory on a ubuntu server and when i sign in i get a 500 Internal Server Error I have the following: AuthUserFile .htpasswd AuthName "Sign In" ...
0
votes
1answer
378 views

IIS7 authentication

To give our user's the ability to protect content on their IIS6 sites we used a tool called IISPassword which emulates .htaccess to provide Basic authentication. There isn't support for IISPassword ...
0
votes
1answer
180 views

How to use htaccess to restrict access to script when rewriting?

I have a php script that relies on the following rewrite rules: RewriteEngine on RewriteCond %{REQUEST_URI} !^/script.*$ [NC] RewriteRule (.*)$ script.php/go [QSA,L] So when someone visits ...
0
votes
2answers
371 views

Configuring htaccess to show authentication prompt only for subdomain

How do I write the htaccess so that it will only require authentication when on admin.example.com, but not on www.example.com (like by using some if-else clause)? Background: I have a site running in ...
1
vote
0answers
1k views

Apache .htaccess trick to authenticate only once for all subdomains? [duplicate]

Possible Duplicate: Apache .htaccess trick to authenticate only once for all subdomains? I'm using something like this in .htaccess file to restrict access to the website: AuthUserFile ...
1
vote
3answers
2k views

Apache .htaccess trick to authenticate only once for all subdomains?

I'm using something like this in .htaccess file to restrict access to the website: AuthUserFile /some/directory/.passwd AuthGroupFile /dev/null AuthName EnterPassword AuthType Basic require ...
5
votes
3answers
6k views

How can I password prompt certain IPs and allow all others free access using Apache?

SOLVED: The idea is that if the visitor comes from China they have to pass a basic authentication. If you have any other IP address you can visit the site without being hassled (including proxies) ...