DeveloperSide.NET Forums
August 17, 2019, 03:22:14 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: Htaccess  (Read 36415 times)
0 Members and 1 Guest are viewing this topic.
bigjoe11a
Jr. Member
**
Posts: 56


bigjoe11a
View Profile WWW Email
« Reply #15 on: October 01, 2007, 05:43:28 PM »

Ok, The only error I'm getting now is

Alias not allowed here

How do I fix that
Logged

admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #16 on: October 01, 2007, 05:58:07 PM »

You don't copy the entire private.conf file into the .htaccess file. Just some parts of it.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
bigjoe11a
Jr. Member
**
Posts: 56


bigjoe11a
View Profile WWW Email
« Reply #17 on: October 01, 2007, 06:03:59 PM »

You don't copy the entire private.conf file into the .htaccess file. Just some parts of it.

Yes, I took out the load modules parts. and the only error I get now is..

 Alias Not allowed here

Logged

bigjoe11a
Jr. Member
**
Posts: 56


bigjoe11a
View Profile WWW Email
« Reply #18 on: October 03, 2007, 04:15:05 AM »

So can you tell me how to fix this

Logged

admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #19 on: October 03, 2007, 12:59:11 PM »

I'm not sure what you are trying to do. How are you trying to restrict access, via IP, via user/password combo. What dirs?
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
bigjoe11a
Jr. Member
**
Posts: 56


bigjoe11a
View Profile WWW Email
« Reply #20 on: October 03, 2007, 01:07:35 PM »

I'm not sure what you are trying to do. How are you trying to restrict access, via IP, via user/password combo. What dirs?

this is an area on my server that I want to password protect. Its apart of a new project that I'm working on. I copied and pasted the code like you said. and now the only error I get is Alias Not allowed here. It should be asking me for a user name and password.

How do I fix the error of Alias not allowed here.

Here my new code
Code:
<IfModule authn_file_module>
Alias /data/ "/www/webroot/fileboss/data"  //This is where the error is

<Directory "/www/webroot/fileboss/data">
Options Indexes FollowSymLinks
AllowOverride All

Order allow,deny
Allow from None

AuthType Basic
AuthName "Admin"
AuthUserFile ".htpasswd"
require valid-user
</Directory>
</IfModule>

Logged

admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #21 on: October 03, 2007, 01:45:41 PM »

You don't put alias, nor directory blocks, into .htaccess files.

And I don't think 'allow from none' is valid.

You should go here...
http://httpd.apache.org/docs/2.2/
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
bigjoe11a
Jr. Member
**
Posts: 56


bigjoe11a
View Profile WWW Email
« Reply #22 on: October 03, 2007, 03:50:35 PM »

You don't put alias, nor directory blocks, into .htaccess files.

And I don't think 'allow from none' is valid.

You should go here...
http://httpd.apache.org/docs/2.2/

The doc's on the apache web site just don't cover every thing I need to know. See I can block access to that directory like I did my other directories, It just that this I want access to from any where

Logged

admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #23 on: October 03, 2007, 04:27:40 PM »

What you are trying to do just consists of putting this into an .htaccess file...
Code:
Order allow,deny
Allow from all

AuthType Basic
AuthName "Private Access"
AuthUserFile "/www/private/.htpasswd"
require valid-user

With the path updated to point to the right .htpasswd file. This assume you have created one, filled it in correctly, and have .htaccess enabled under httpd.conf and the correct AllowOverride set for the specific directory.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
bigjoe11a
Jr. Member
**
Posts: 56


bigjoe11a
View Profile WWW Email
« Reply #24 on: October 03, 2007, 06:57:57 PM »

What you are trying to do just consists of putting this into an .htaccess file...
Code:
Order allow,deny
Allow from all

AuthType Basic
AuthName "Private Access"
AuthUserFile "/www/private/.htpasswd"
require valid-user

With the path updated to point to the right .htpasswd file. This assume you have created one, filled it in correctly, and have .htaccess enabled under httpd.conf and the correct AllowOverride set for the specific directory.

Thank You. That works. and thats what I wanted to know. Its just that I'm having a hard time under standing you.

Thanks
Joe

Logged

Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!