Yogish | 1 Sep 2003 03:14

Re: httpd problem

Hi Joseph
I tried that command, It did not show any process for httpd. I also ran the
command 'netstat' which shows all the open connections from the system. It
did not show anything on port 80. I really find this a little strange. I
have also attached my httpd file. Please let me if there is any unusual
configuration command in this config file.
Regards
Yogish

## httpd.conf - configuration for the Apache web server

#

# Generated automatically... if you edit manually, the changes will be lost

# the next time you run "apacheconfig".

#

### Section 1: Global Environment

#

# The directives in this section affect the overall operation of Apache,

# such as the number of concurrent requests it can handle or where it

# can find its configuration files.

#
(Continue reading)

victor | 1 Sep 2003 08:02
Favicon

Re: httpd problem

do the following.

telent localhost 80
GET /<hit enter twice>

Look for the http header returned, it might contain a signature of the 
server serving the request.

Tor.

Yogish wrote:

>Hi all
>I am newbie to http servers.  I am facing a very strange problem here.
>Firstly I cannot configure to use port 80 for the default traffic because it
>says that the port is already in use. There is another http server running
>on the machine which I cannot figure out where. I completely stopped httpd
>daemon in init.d directory,but still it continues to service web requests.
>How do I know which other program might be servicing the requests. I would
>appreciate if someone could help me out here.
>Regards
>Yogish
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
>   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
>For additional commands, e-mail: users-help <at> httpd.apache.org
(Continue reading)

Boyle Owen | 1 Sep 2003 10:55

RE: scripted authentication

>-----Original Message-----
>From: Andrew Brosnan [mailto:andrew <at> broscom.com]
>
>I would like to protect a directory at a point where users have already
>logged in (via a customized process).
>
>Basic authentication requires users type in username and passwd. I was
>searching for a way to have my scripts pass those credentials directly
>to Apache, thus avoiding the additional login window. Looking through
>the list archives it appears this can't be done. Is that correct?
>
>If not, can someone offer recommendations on how else to control access
>to directories and files with Apache? A gentle shove in the right
>direction would be appreciated.

I'm not entirely sure I understand your problem... Is it that you have
one directory at, say, http://yoursite/dir1 which is protected by a
login and then you have another directory at http://yoursite/dir2, also
protected, and you want it that once a user has logged in to dir1, they
get into dir2 straight away? 

If so, the problem is that once a user enters a user/pass, the browser
caches it and sends those credentials with every request for a file in
the protected directory  or its subdirectories. If the user requests a
parallel directory (i.e. not a sub-directory), the browser recognises
this as a different "realm" and so pops-up again for a user/pass. 

What you need to do is to persuade the browser to send an Authorization
header with a request for dir1 or dir2. You might try setting the same
string for the realm (AuthName directive) in each protected dir (I'm not
(Continue reading)

patrick kuah | 1 Sep 2003 12:26
Picon
Favicon

questions about apache

Hi,

I have a website running ssl which require me to log in ... but how do i 
confgure as such that it will prompt for the login screen again if my 
browser idle for about 15mins ???
Thanks for the help :)

patrick

_________________________________________________________________
Get 10mb of inbox space with MSN Hotmail Extra Storage 
http://join.msn.com/?pgmarket=en-sg

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Boyle Owen | 1 Sep 2003 12:50

RE: questions about apache

>-----Original Message-----
>From: patrick kuah [mailto:patrickkuah <at> msn.com]

>
>I have a website running ssl which require me to log in ... 
>but how do i 
>confgure as such that it will prompt for the login screen again if my 
>browser idle for about 15mins ???

Talk about synchronicity... This very subject just came up a few hours
ago!

The standard authentication scheme does not provide for expiration of
logins so you can't really do this with the usual scheme
(http://httpd.apache.org/docs/howto/auth.html#basicfaq).

The only way I know to expire a user is to handle the authentication via
server-sided processing and to assign a cookie to the user to control
access (see http://httpd.apache.org/docs-2.0/mod/mod_usertrack.html) for
more on cookies.

There are several third-party mechanisms for doing this but none are
trivial...

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

>Thanks for the help :)
>
(Continue reading)

Klavs Klavsen | 1 Sep 2003 13:30
Picon
Favicon

cgi-bin won't execute

Hi guys,

I still haven't resolved why my move from apache1 to apache2 made my
cgi-bin's not work anymore :(

see this url f.ex. http://vsen.dk/helloworld.pl

it just sends the content of the script instead of executing it :(

my vsen.dk vhost is setup like this:

    alias /helloworld.pl /path/to/docroot/helloworld.pl
    AliasMatch /favicon.ico /path/to/docroot/favicon.ico
    AliasMatch /*       /some/php/script.php

    <Files /path/to/docroot/helloworld.pl>
        AllowOverride All
        Options ExecCGI Includes FollowSymlinks
    </Files>

Can anyone figure out what is wrong here? I'm really tired of not being
able to execute CGI's :(
--

-- 
Regards,
Klavs Klavsen, GSEC - kl <at> vsen.dk - http://www.vsen.dk
PGP: 7E063C62/2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62
See my new CMS Hosting Service at http://www.VirkPaaNettet.dk

Working with Unix is like wrestling a worthy opponent. 
Working with windows is like attacking a small whining child 
(Continue reading)

Yogish | 1 Sep 2003 09:31

Re: httpd problem

Hi Victor.

I tried to telnet into localhost 80,but connection was refused and when hit
GET / and entered twice. There was nothing in the header section. But when I
run 'netstat' command

Regards
Yogish

From: "Joseph A Nagy Jr" <joseph_a_nagy_jr <at> charter.net>
To: <users <at> httpd.apache.org>
Sent: Sunday, August 31, 2003 1:05 PM
Subject: Re: [users <at> httpd] httpd problem

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 31 August 2003 13:05, Yogish wrote this in an attempt to be
witty or informative:
> Hi all
> I am newbie to http servers.  I am facing a very strange problem
> here. Firstly I cannot configure to use port 80 for the default
> traffic because it says that the port is already in use. There is
> another http server running on the machine which I cannot figure out
> where. I completely stopped httpd daemon in init.d directory,but
> still it continues to service web requests. How do I know which other
> program might be servicing the requests. I would appreciate if
> someone could help me out here.
> Regards
> Yogish
(Continue reading)

DvDmanDT | 1 Sep 2003 15:20
Picon

Re: cgi-bin won't execute

Well, it's cause you don't have the
AddHandler cgi-script .cgi .pl
in your httpd.conf, at least not the .pl part... That's my guess anyway...
// DvDmanDT
MSN: dvdmandt <at> hotmail.com
Mail: dvdmandt <at> telia.com
----- Original Message ----- 
From: "Klavs Klavsen" <kl <at> vsen.dk>
To: <users <at> httpd.apache.org>
Sent: Monday, September 01, 2003 1:30 PM
Subject: [users <at> httpd] cgi-bin won't execute

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Joshua Slive | 1 Sep 2003 15:35
Picon

Re: cgi-bin won't execute


From the looks of the number of errors below, I'm guessed you haven't
spent much time reading the docs.  You can't learn to sue apache simply by
reading the config file.  You need to actually consult the documentation.

On Mon, 1 Sep 2003, Klavs Klavsen wrote:
> see this url f.ex. http://vsen.dk/helloworld.pl
>
> it just sends the content of the script instead of executing it :(
>
> my vsen.dk vhost is setup like this:
>
>     alias /helloworld.pl /path/to/docroot/helloworld.pl
>     AliasMatch /favicon.ico /path/to/docroot/favicon.ico

These don't do anything.  Why are you mapping a URL to the same location
as it already would go due to the DocumentRoot?

>     AliasMatch /*       /some/php/script.php

Your regular expression matches zero or more "/"s.  You probably want to
use
AliasMatch /.* /some/php/script.php

>
>     <Files /path/to/docroot/helloworld.pl>

<Files> sections point to particular filenames, not to full paths.
You probably want
<Directory /path/to/docroot>
(Continue reading)

Klavs Klavsen | 1 Sep 2003 15:37
Picon
Favicon

Re: cgi-bin won't execute

On man, 2003-09-01 at 15:20, DvDmanDT wrote:
> Well, it's cause you don't have the
> AddHandler cgi-script .cgi .pl
> in your httpd.conf, at least not the .pl part... That's my guess anyway...

Thank you for atleast giving me your guess :)

I have AddHandler cgi-script .pl defined - but I added it to the
virtualhost too, just to illustrate that it still doesn't work - I'm
thinking bug in apache or something very NOT obvious in
commmonapache2.conf or apache.conf (my vhosts are in vhosts.conf) -
Gentoo Linux btw. :(

it now looks like this:
    alias /helloworld.pl /path/to/docroot/helloworld.pl
    AliasMatch /favicon.ico /path/to/docroot/favicon.ico
    AliasMatch /*       /some/php/script.php

    <Files /path/to/docroot/helloworld.pl>
        AllowOverride All
	AddHandler cgi-script .pl
        Options ExecCGI Includes FollowSymlinks
    </Files>

--

-- 
Regards,
Klavs Klavsen, GSEC - kl <at> vsen.dk - http://www.vsen.dk
PGP: 7E063C62/2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62
See my new CMS Hosting Service at http://www.VirkPaaNettet.dk

(Continue reading)


Gmane