Web servers for UNIX platforms

unix web server, linux web server, unix web hosting, dedicated web server, virtual web server, web server security, apache, nginx




(Newbie) Basic Authentication Question

i have setup my apache webserver for Basic Authentication…the
problem is that i prompts for username and password for ‘n’ number of
times…i want to restrict it for 3-4 attempts…n if the credentials
donot match it should give them a 401 authorization error….can
anyone plsss name the directive to use….my .htaccess file look like
this…

AuthName "Restricted Access"
AuthType Basic
AuthUserFile /usr/local/auth/userz

require valid-user
                     waiting for early reply,
frd,
chetanjain

No Comments

Rewriting URL with username:password syntax

If I type a URL with the following syntax into my browser (IE 5.5) I am able
to access a site that requires basic authentication without the
username/password dialog appearing:

http://username:passw…@mywebserver.subdomain.company.com

What I want to be able to do now is have this as part of a rewrite rule so
for instance someone accessing
http://someotherserver.subdomain.company.com/redirect/folder is redirected
to the first URL given:

<Directory /path/to/redirect/folder>
  RewriteEngine On
  RewriteRule .* http://username:passw…@mywebserver.subdomain.company.com
</Directory>

This redirects me to the correct server, but doesn’t pass the
username/password on (I still get the authentication prompt displayed) –
does anyone know whether this is a known bug – or is it simply a security
feature?

Thanks in advance,

Matthew Burgess

Comments (2)

You don't have permission to access / on this server.

I know that a lot of questions have been asked about getting rid of
this error on comp.infosystems.www.servers.unix, and I’ve tried all
the suggested fixes I could find there, like:

http://httpd.apache.org/docs/misc/FAQ.html#malfiles
http://httpd.apache.org/docs/misc/FAQ.html#forbidden

but I still get this message when running Apache on a windows NT
server.  If there are additional considerations one needs to know
about for windows, could somebody out there please ‘lay em on me’?

Thanks

Comments (9)

Problem installing forum, who can help me?

Hello,

I’ve some problems installing a forum on a unix-server. My
installer.cgi runs but most of the times (sometimes it works a little
bit) I proceed I’ll receive an error like:
————————————————————————— —–
The error returned was: [Tue Jul 16 14:02:36 2002] start.pl: Can’t
locate start.pl in @INC (@INC contains:
/usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i386-linux
/usr/lib/perl5/site_perl/5.005 . /usr/local/slash/apache/
/usr/local/slash/apache/lib/perl) at install_modules/functions.pm line
49.
————————————————————————— —–

The .pl-files are sometimes different but the script can’t locate my
library or something. It says I need to edit my CGI-script and enter
in my full paths but I’m almost sure I’ve set them correctly. I
already found some advice that I had to add something like this to the
script:

#!/usr/bin/perl -w

use strict;

BEGIN {
    push( @INC, "/some/path" );

}

But when I run the script with this added I already receive a software
error immediately most of the times (sometimes it works a little bit)
when I try to run installer.cgi

Can someone help me editing my script so it will work? Has someone any
ideas how to get my script finding the library or something?

Thx,
Hilbert Davelaar

Comments (11)

C Compiler problem / 1.3.26

Hi

I am trying to install the Apache patch 1.3.26 on Solaris 8. My install fails with ‘no C compiler found’ error msg.

I got my installables from
http://www.apache.org/dist/httpd/binaries/solaris/

However this is our test server and we do not have any compilers on it. Is there a way around this … should I compile it on our dev env and port the code across ?

Anyone have similar problems ?

Regards
Sameer

No Comments

mod_ext_filter

how stable is the new apache2 mod_ext_filter experimental module?
can it work with mod_proxy as reverse proxy?
will the actual filter program run similiar as the cgi (with the
loading, each time it is called), or is it similiar to mod_perl
(more efficient than normal cgi).

thanks!
frank

Comments (2)

Apache PID-file problem

Hello NG,

i’ve a litte problem with my self-compiled apache 1.3.26 server
/usr/local/apache2. When it’s started via "apachectl start" the
httpd.pid of the 1st server (/usr/local/apache) gets overwritten. Why
doesn’t the 2nd server writes in its own pid-file
(/usr/local/apache2/logs/httpd.pid)?

I changed to "chmod -R 775 apache2" and trimmed the
"User/Group"-membership as well  - so the directories could be written.

Has somebody a hint? Thank you…

Comments (2)

failed p5-Apache-MP3-2.22 installation

Hello,
I installed p5-Apache-MP3-2.22 on my system but have been unsuccessful
in getting the module to work due to an inability to find Sorted.pm.
As you can see from /var/www/logs/error_log it is looking in
/usr/local/libdata/perl5/site_perl which is where Apache/MP3/Sorted.pm
can be found. Any ideas as to what may be causing the problem? Thanks
in advance as any help would be much appreciated.

[Tue Jul 16 11:20:56 2002] [error] Can’t locate Apache/MP3/Sorted.pm
in @INC (@INC contains: /usr/local/lib/site_perl/5.6.1/i386-openbsd
/usr/libdata/perl5/i386-openbsd/5.6.1
/usr/local/libdata/perl5/i386-openbsd/5.6.1 /usr/libdata/perl5
/usr/local/libdata/perl5
/usr/local/libdata/perl5/site_perl/i386-openbsd
/usr/libdata/perl5/site_perl/i386-openbsd
/usr/local/libdata/perl5/site_perl /usr/libdata/perl5/site_perl
/usr/local/lib/perl5/site_perl . /var/www/ /var/www/lib/perl) at (eval
9) line 3 during global destruction.

find / -type f -name Sorted.pm
/usr/local/libdata/perl5/site_perl/Apache/MP3/Sorted.pm

ls -l /usr/local/libdata/perl5/site_perl
total 4
drwxr-xr-x  3 root  wheel  512 Jul 15 18:42 Apache
drwxr-xr-x  2 root  wheel  512 Jul 15 18:34 MP3
drwxr-xr-x  2 root  wheel  512 Jul 15 18:34 MPEG
drwxr-xr-x  6 root  wheel  512 Jul 15 18:42 i386-openbsd

-Justin

No Comments

Apache request

All,

        Ok, so I’m a little newbieish about this whole mod_jk and AJP thing.
I was wondering where in the Apache2 configuration or maybe Tomcat you
put the mod_jk.so in like /webserver/?-/webserver is where my
installation of apache is installed at.  I read the installation
documentation and I am not finding that path anywhere in my Apache 2
directory.  We already have Apache 2.0.39 and Tomcat 4.0.2 installed
and running on AIX 5.1.  I have a supposedly good copy of a mod_jk.so
file so what do I to make it work, I’m lost in the installation and
configuration part of things.  Thanks again for all the help.  Trask.

Unix has its weak points but its file system is not one of them.

- Chris Torek

Comment (1)

Slooooooow Newsgroup

Is there any way to speed up this newsgroup? It takes way too long to
post a message.

Comments (5)