Apache Webserver Help

jockdisvdude

Senior member
Jun 29, 2001
407
0
0
Hello, I've set up a personal webserver with Apache, and I would like anyone that connects to my computer to have a password to view or access the HTTP server. DOes anyone know I would do this with apache webserver ? I would also like to have an error page, I know you are supposed to configure a file but I don't know what to add or delete. Anyone Help please ?
 

Justin

Senior member
Oct 9, 1999
295
0
0
As far as the password goes, I don't really know. I assume you're talking about a Windows 9x/ME box..I don't hink htaccess works on Windows' version of Apache. You may need to use some sort of PHP or Perl script for that. As for the custom error page, just search the httpd.conf for "404" and you'll find the section where you configure what page is to be displayed when an error is configured. Very self explainitory once you find the section, i.e-

ErrorDocument 401 /j00_are_un4uth0riz3d.html ;)

You can also redirect to scripts etc..

ErrorDocument 401 /cgi-bin/my_l33t_scr1pt_isg0nn4_h4x0r_j00.pl

Simply change 401 to whatever error you want to redirect for, simple as that.

HTH,
Justin
 

Phil21

Golden Member
Dec 4, 2000
1,015
0
0
this has to be THE most commonly asked question, a quick search on google will find it instantly. Try searching for "apache .htaccess" or something similiar.

peace,

-Phil
 

jockdisvdude

Senior member
Jun 29, 2001
407
0
0
I saw that password guide for apache webservers. I am very new to apache aM i'm not familiar with all the modules etc. Can someone give me a simple step by step solution to my problem ? All I want is one username and one password.
 

gopunk

Lifer
Jul 7, 2001
29,239
2
0
sorry, i didn't read all of your post. yes there is a windows one and no i don't think they're different.