Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old November 21st, 2003, 07:27 PM
MrVadla MrVadla is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 MrVadla User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
require + .htaccess

Hi!!
Ive got some problems with apache. I'm using apache 2.0.47.
This is what I've got in .htaccess:
AuthType Basic
AuthName "Password Required"
AuthUserFile /etc/htpasswd
Require user dummy

<Directory "/home/Admin/Homepages/dummy">
AllowOverride AuthConfig All
Options +Indexes FollowSymLinks
</Directory>

When it is like this the server won't show the folder dummy in the index of the server-root.
When I comment out the "require ..." paragraph the folder is shown.
It won't display any password-window though...
Thanks!!

Reply With Quote
  #2  
Old November 21st, 2003, 07:40 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: require + .htaccess

---Moved By Postal Cow---

Reply With Quote
  #3  
Old November 21st, 2003, 07:44 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: require + .htaccess

Quote:
Hi!!
Ive got some problems with apache. I'm using apache 2.0.47.
This is what I've got in .htaccess:
AuthType Basic
AuthName "Password Required"
AuthUserFile /etc/htpasswd
Require user dummy

<Directory "/home/Admin/Homepages/dummy">
AllowOverride AuthConfig All
Options +Indexes FollowSymLinks
</Directory>

When it is like this the server won't show the folder dummy in the index of the server-root.
When I comment out the "require ..." paragraph the folder is shown.
It won't display any password-window though...
Thanks!!


Create you own user file

do a
htpasswd -c .pass_file_name username

then point it to the created file. All you really need is the basics like I have below
Code:
AuthUserFile /var/www/html/.htpasswd
AuthName www.postalcow_rocks.com
AuthType Basic
<Limit GET>
require valid-user
</Limit>


Reply With Quote
  #4  
Old November 21st, 2003, 08:30 PM
MrVadla MrVadla is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 MrVadla User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: require + .htaccess

I've done what you said, but it still won't show any password-box... Could I be missing a module for the password-box or could the track to the password-box be wrong somewhere? It is reading my .htaccess-file, and my track to the .htpasswd is like this:/etc/.htpasswd.

Thanks!

Reply With Quote
  #5  
Old November 21st, 2003, 09:38 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: require + .htaccess

Are you pointing it to your new .passwd file you created?
Like
AuthUserFile /var/www/html/.htpasswd

Or did your actually create the new passwd file under ect?



Reply With Quote
  #6  
Old November 21st, 2003, 09:44 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: require + .htaccess

Yes I did! This is how my .htaccess now looks:
AuthUserFile /etc/.htpasswd
AuthName "Password Required"
AuthType Basic
<Limit GET>
require user torstein
</Limit>

What is it that actually makes the password-box pop up?

Thanks!!

Reply With Quote
  #7  
Old November 21st, 2003, 10:07 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: require + .htaccess

That basic config should work. Maybe overrides are not set up in your httpd.conf file, so try adding this to it

<Directory "/var/www/somewhere">
AllowOverride All
</Directory>

Reply With Quote
  #8  
Old November 21st, 2003, 11:07 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: require + .htaccess

I've done that too! I can't figure out what's wrong...

This is my configs:

<Directory "/home/Admin/Webpages/dummy">
AllowOverride All
Options +Indexes FollowSymLinks
</Directory>

DocumentRoot "/home/Admin/Webpages"

<Directory "/home/Admin/Webpages">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>

Reply With Quote
  #9  
Old November 22nd, 2003, 12:11 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: require + .htaccess

Umm, It should work, I am hoping someone else jumps in with an idea.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > require + .htaccess


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway