SunQuest
           Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

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 Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old February 20th, 2001, 12:33 PM
null_brain null_brain is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Holland
Posts: 4 null_brain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to null_brain
Okay...

I've installed apache for windows (sorry, but I can't migrate to UNIX/Linux here because I'm not the only one using this PC) and I configurated it for PHP support and some more stuff...

But now I'd like to include some .htacces security in my webserver and also another 404 errordocument. I already found tutors where this is explained so I don't need that explained.

But I can't get it to work

I changed the following options in the httpd.conf file:
AllowOverride All
AccessFileName win.htaccess (because windows can't handle .htacces files without a filename)

And that's it.

My win.htacces file (already renamed)contains the following lines:

ErrorDocument 404 /error/404.html
DirectoryIndex test.html

I put the .htacces file in c:\apache\htdocs\admin for testing purposes

Now when I run apache, and goto URL I do NOT get test.html as the standard page and if I type in a non-existing document I do not get my error-document...

Does anyone has any experience with this, or know the solution to my problem (something I forgot)

Thanks in advance


[Edited by null_brain on 02-20-2001 at 12:18 PM]

Reply With Quote
  #2  
Old February 20th, 2001, 12:50 PM
whisperedlies whisperedlies is offline
Senior Idiot
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 25 whisperedlies User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
try changing the file name to a DOS file extension:

AccessFileName htacc.ess

or something like that.

Reply With Quote
  #3  
Old February 20th, 2001, 12:55 PM
null_brain null_brain is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Holland
Posts: 4 null_brain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to null_brain
Sorry, that doesn't work

and in windows '95 and higher you can also have long extensions like this.isatextfile so that shouldn't be the prob..

Reply With Quote
  #4  
Old February 20th, 2001, 01:07 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> AccessFileName win.htaccess (because windows can't handle .htacces files without a filename)
>> My .htacces file contains the following lines:

You have told Apache your AccessFileName to be win.htaccess, so .htaccess file no longer work because Apache doesn't treat .htaccess file as the AccessFileName.

Reply With Quote
  #5  
Old February 20th, 2001, 01:17 PM
null_brain null_brain is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Holland
Posts: 4 null_brain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to null_brain
Yeah sorry, I forgot to mention that I already renamed the file....

so that isn't it

anyone else

Reply With Quote
  #6  
Old February 20th, 2001, 05:06 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> I changed the following options in the httpd.conf file:
>> AllowOverride All

What else? How about options?

http://httpd.apache.org/docs/mod/core.html#options

Reply With Quote
  #7  
Old February 21st, 2001, 09:07 AM
null_brain null_brain is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Holland
Posts: 4 null_brain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to null_brain
Is also set

perhaps I should just let someone else run a webserver for me on a unix system

Reply With Quote
  #8  
Old February 21st, 2001, 11:12 AM
oskar oskar is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: Copenhagen, DK
Posts: 222 oskar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 40 sec
Reputation Power: 8
Send a message via ICQ to oskar
I tried to change my httpd.conf like you have done, and the only thing that didn't work for me was the 404-errordocument.
I'm using win95 (have to have my photoshop and flash programs)
Maybe having a look at your conf-file?
Steffen

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > .htacces under windows


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