Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    Seattle, WA USA
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .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 09:02 AM.

  • #2
    New Coder
    Join Date
    Jun 2002
    Location
    Seattle, WA USA
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Also....

    Also, I wanted to know about a txt file writting program.. but I figured it out =\

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    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

  • #4
    New Coder
    Join Date
    Jun 2002
    Location
    Seattle, WA USA
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?

  • #5
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    What says you can't?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #6
    New Coder
    Join Date
    Jun 2002
    Location
    Seattle, WA USA
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Well... I sortof had that idea...

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

    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 07:02 AM.

  • #7
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    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

  • #8
    New Coder
    Join Date
    Jun 2002
    Location
    Seattle, WA USA
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ahh ok

    I understand now =)
    Thank you!

  • #9
    Regular Coder Feyd's Avatar
    Join Date
    May 2002
    Location
    Los Angeles, CA Maxim: Subvert Society
    Posts
    403
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #10
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    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

  • #11
    New Coder
    Join Date
    Jun 2002
    Location
    Seattle, WA USA
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    yes well...

    thats all I'm using it for, so I think it's ok


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •