Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-22-2002, 04:14 AM   PM User | #1
Chicano
New Coder

 
Join Date: Jun 2002
Location: Seattle, WA USA
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Chicano is an unknown quantity at this point
.htaccess on Windows NT? (And "Write to file question")

Well... Windows XP as a matter of fact... anyway

I am using the NT version of Apache, for a personal web server (Just to test things out and stuff... I have never had my very own server and its just so fun! ) and I wanted to protect a few folders for different "members" (all me really, just wanted to test :P)

But as far as I know, .htaccess is only for Unix right?

Well is there an equivelent for Apache 1.2.30 - NT? How do I use it?

Any help is greatly appreciated.

Last edited by Chicano; 07-22-2002 at 08:02 AM..
Chicano is offline   Reply With Quote
Old 07-22-2002, 08:17 AM   PM User | #2
Chicano
New Coder

 
Join Date: Jun 2002
Location: Seattle, WA USA
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Chicano is an unknown quantity at this point
Also....

Also, I wanted to know about a txt file writting program.. but I figured it out =\
Chicano is offline   Reply With Quote
Old 07-22-2002, 01:49 PM   PM User | #3
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
Doesn't matter. You can use .htaccess.

Here is a tutorial:

http://www.javascriptkit.com/howto/htaccess.shtml
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 07-22-2002, 10:44 PM   PM User | #4
Chicano
New Coder

 
Join Date: Jun 2002
Location: Seattle, WA USA
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Chicano is an unknown quantity at this point
ok...

But why does it say I can't use it on NT in so many places?

Is there parts I can use and parts I cannot use?
Chicano is offline   Reply With Quote
Old 07-23-2002, 01:57 AM   PM User | #5
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
What says you can't?
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 07-23-2002, 05:51 AM   PM User | #6
Chicano
New Coder

 
Join Date: Jun 2002
Location: Seattle, WA USA
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Chicano is an unknown quantity at this point
Well... I sortof had that idea...

because, reading that htaccess page on JK, (I had read it before), it says

Quote:
htaccess is an Apache thing, not an NT thing. There are similar capabilities for NT servers, though in my professional experience and personal opinion, NT's ability in these areas is severely handicapped. But that's not what we're here for
I know it dosnt say Apache for Unix, but since it says not NT, I took it for granted that Apache for NT wouldnt work... but I guess I am wrong so cool =)


Also, I was wondering... in the httpd.conf file, I specified an error document (the 404 one), but what this does is that whenever I go to a non-existent page, it redirects me to my "missing.html" page... now I have seen many sites where the error document does not redirect you... more like, it actually turns whatever page you went to (the non-existent one) into an error-document... so if I went to say, "www.my-site.com/nonexistent.html", well, instead of redirecting me to www.my-site.com/myerrorpage.html , it would simply show all the error info ON myerrorpage.html, not taking me anywhere... how do I do this?


Note: After reading a bit, I have learned how you can specify HTML instead of a URL in the htaccess files... and I imagine this is probably how you can do it... =\

Last edited by Chicano; 07-23-2002 at 06:02 AM..
Chicano is offline   Reply With Quote
Old 07-23-2002, 06:10 AM   PM User | #7
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
You weren't necessarily wrong just mislead. You can use .htaccess/.htpassword, etc files running apache on windows.

That part of the tutorial should probably be reworded to say "htaccess is an Apache thing, not a Microsoft IIS thing."
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 07-23-2002, 06:11 AM   PM User | #8
Chicano
New Coder

 
Join Date: Jun 2002
Location: Seattle, WA USA
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Chicano is an unknown quantity at this point
ahh ok

I understand now =)
Thank you!
Chicano is offline   Reply With Quote
Old 07-23-2002, 02:48 PM   PM User | #9
Feyd
Regular Coder


 
Feyd's Avatar
 
Join Date: May 2002
Location: Los Angeles, CA Maxim: Subvert Society
Posts: 404
Thanks: 0
Thanked 0 Times in 0 Posts
Feyd is an unknown quantity at this point
Spooter's right ( ), it should be re-worded to not differentiate between the OS and instead specify the webserver software...although, running APACHE on NT is kind of like well...I won't even go that far
__________________
Moderator, Perl/CGI Forum
shadowstorm.net - subvert society
Feyd is offline   Reply With Quote
Old 07-23-2002, 03:49 PM   PM User | #10
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
Quote:
Originally posted by Feyd
...although, running APACHE on NT is kind of like well...I won't even go that far
and yes Food is right. Apache on windows should never be used for anything other than developing and testing. Too unstable to handle anything more.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 07-23-2002, 06:43 PM   PM User | #11
Chicano
New Coder

 
Join Date: Jun 2002
Location: Seattle, WA USA
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Chicano is an unknown quantity at this point
yes well...

thats all I'm using it for, so I think it's ok
Chicano is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:56 PM.


Advertisement
Log in to turn off these ads.