|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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] |
|
#2
|
|||
|
|||
|
try changing the file name to a DOS file extension:
AccessFileName htacc.ess or something like that. |
|
#3
|
|||
|
|||
|
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.. |
|
#4
|
|||
|
|||
|
>> 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. |
|
#5
|
|||
|
|||
|
Yeah sorry, I forgot to mention that I already renamed the file....
so that isn't it anyone else ![]() |
|
#6
|
|||
|
|||
|
>> 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 |
|
#7
|
|||
|
|||
|
Is also set
![]() perhaps I should just let someone else run a webserver for me on a unix system ![]() |
|
#8
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > .htacces under windows |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|