SunQuest
 
           Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old April 6th, 2003, 07:43 PM
bo0 bo0 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 10 bo0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to bo0
apache htaccess on windows help

OK.. well

I'm setting up apache and mysql and php on this windows box i got here (yes I know) and basically it seems that .htaccess is still supposed to work on the windows box, or atleast that is what apache is telling me... buttt

of course it isn't.. i've made htaccess files on unix o course.. so im not f*ing anything up..

anyone run across this?

Reply With Quote
  #2  
Old April 9th, 2003, 10:24 PM
bo0 bo0 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 10 bo0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to bo0
no help eh? hrmm....

I don't want people to have access to my admin tools I will be building for myself.. and basic auth is the easiest way to do it...

i could go ahead and do my own login/cookie thing.. but.. why re-invent the wheel if basic auth is already there..

i just don't know why it won't work...

suggestions? clues?

Reply With Quote
  #3  
Old April 11th, 2003, 07:34 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
bo0:

I have a question.. in your httpd.conf do you have this for your main directory tag?

Code:
<Directory "c:\directorytothewwwpages\">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride FileInfo ALL
    Order allow,deny
    Allow from all
</Directory>

Or something like it?

I believe that should give you the ability to use the .htaccess file.. if not, let me know what you're trying to do and I'll see what I can dig up for you

Reply With Quote
  #4  
Old April 11th, 2003, 06:19 PM
bo0 bo0 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 10 bo0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to bo0
<Directory "G:/Apache/Apache2/htdocs">
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

</Directory>

i know that the index line is commented out.. but i don't think that is affecting htaccess

and i have htaccess setup u can see here:
AccessFileName .htaccess

here is another line that refers to htaccess.. im not sure if those allow/deny rules are set up correctly.. those are default:
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>

get back to me with anything, thanks for your help

Reply With Quote
  #5  
Old April 11th, 2003, 10:33 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Quote:
Originally posted by bo0
<Directory "G:/Apache/Apache2/htdocs">
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

</Directory>

i know that the index line is commented out.. but i don't think that is affecting htaccess

and i have htaccess setup u can see here:
AccessFileName .htaccess

here is another line that refers to htaccess.. im not sure if those allow/deny rules are set up correctly.. those are default:
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>

get back to me with anything, thanks for your help


those last rules are correct.. the
Quote:
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
makes people not be able to view your htaccess files


what exactly are you trying to do with the htaccess?

Reply With Quote
  #6  
Old April 12th, 2003, 11:07 AM
bo0 bo0 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 10 bo0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to bo0
im just trying to setup normal Basic-Auth on a folder..

the prompt box comes up with the user name and password when u try to get to a certain folder in my directory tree.. just like it's normal use in *nix. I've done it before on *nix, so.. and the apache docs told me to do it the same way.. so I did... but not working.. :/

Reply With Quote
  #7  
Old April 12th, 2003, 11:35 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Quote:
Originally posted by bo0
im just trying to setup normal Basic-Auth on a folder..

the prompt box comes up with the user name and password when u try to get to a certain folder in my directory tree.. just like it's normal use in *nix. I've done it before on *nix, so.. and the apache docs told me to do it the same way.. so I did... but not working.. :/


Found out the problem.. above you have
Quote:
<Directory "G:/Apache/Apache2/htdocs">
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

</Directory>



Change your AllowOverride from
Code:
AllowOverride None
to
Code:
AllowOverride AuthConfig


That should fix it

Reply With Quote
  #8  
Old April 13th, 2003, 09:21 PM
bo0 bo0 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 10 bo0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to bo0
thanks so much for your help..

Reply With Quote
  #9  
Old April 13th, 2003, 10:18 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
I take it that worked?

Reply With Quote
  #10  
Old March 1st, 2005, 12:47 PM
blackperl blackperl is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 1 blackperl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 16 sec
Reputation Power: 0
Question

Hi,

I'm sorry for re-activating this old Topic, but I have the same problem. After making the changes in my httpd.conf-file like I got the prompt box with username and password.
But now I don't know how to set-up the path to the password-file in my .htaccess-file. I've tried absolut and relative paths, but nothing works.

Can anyone help??
Thanks!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > apache htaccess on windows help


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 5 hosted by Hostway