I'm attempting to set up a server using Apache. In the conf file, I inserted the code:
<Directory />
Options FollowSymLinks
AllowOverride AuthConfig
AuthType Basic
AuthName "Restricted Files"
AuthBasicProvider file
AuthUserFile C:\...\serverpass.txt
Require user Admin
</Directory>
In order to try and get Apache to require a password.
I've setup an alias in my apache 2.2 configuration and protected it with digest authentication like this :
Alias /archive/ "/var/versions/packages/"
<Directory "/var/versions/packages/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
AuthType Digest
AuthName "archive"
AuthDigestProvider file
AuthUserFile /auth/di
I am using Ubuntu 12.04 and trying to use .htaccess on a page with apache2 server on it.
My .htaccess file looks like this:
AuthType Basic
AuthName "Password Required"
AuthBasicProvider file
AuthUserFile /home/janeb/.htpasswd
require valid-user
/home/janeb/.htpasswd file is:
inb351:$apr1$Ya4tzYvr$KCs3eyK1O2/c7Q9zRcwn..
and /etc/apache2/sites-available/default file is :
UserDir public_html
&
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 access and allowing html works fine but asking for a password for php-files doesn't.
I'm setting up a development server and need to apply these basic rules to all virtual hosts on the server in the /var/www/html directory.
AuthType Basic
AuthName "Development Area"
AuthUserFile /var/www/.htpasswd
Require valid-user
I simply tried to put it in my httpd.conf, However apache throws an error when checking the syntax: AuthType not allowed here
I have an Apache config that restricts access to to a website, using the following code -
<Directory /var/www/html/website/test/>
AuthName "Dyne Drewett Test Site"
AuthType Basic
AuthUserFile /usr/local/etc/apache/.htpasswd
require valid-user
</Directory>
Does anybody know how I can amend this to allow full, unauthorised access to one directory under
I am trying to configure my apache server to have the following rule. If the request comes from 192.168.., no authentication is required.
HI All,
I have tried to authenticate my webpage with username & password but its not working for me.
I put directory svn and svn-auth in /var/www
and already change owner and set permission with chown -R apache.apache /var/www/svn* and chmod 600 -R /var/www/svn*
My configuration
svn.mydomain.com.conf
<VirtualHost 127.0.0.1:8080>
ServerName svn.mydomain.com
<Location />
DAV svn
SVNPath /var/www/svn/REPOSITORY_NAME
AuthType Basic
AuthName "Sub