Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Alternatives to Boa Webserver with Authentication

Hi!

I am searching for a Webserver which is able to do Authentication. If the user opens the website of the server a popup window should open where the username and password has to be entered.

I tried it with boa but in my uClinux distribution nios2-linux-20090730.tar (nommu) boa doesn't know the keyword "Auth". I read that authentication is not supported in the unmodified version of boa but in the microtronix modification. So is there a uClinux distribution with nommu support in which boa can do the authentication?

Can someone suggest me another webserver on uClinux? In the menuconfig there are also httpd and fnord but I don't see where the configuration file is.

Urmel

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Easy option would be using the busybox's httpd.

    It supports authentication and CGI.

    I am using it to authenticate in the nios2-linux-20090730.tar and the latest version(2010 ver) as well.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Nekojiru,

    thanks for the answer.

    Can you tell me where to look for the configuration file of httpd?

    Urmel
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It seems there isn't an example busybox httpd.conf shipped inside uClinux-dist. You can either extract it from networking/httpd.c (inside the busybox source) or ask the search engine of your choice for some examples :-)

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks Tklauser,

    I found a very minimalist example for the httpd config but it doesn't seem to work. There were no examples where to set filetypes to support. The authentication message box didn't appear so no login was shown and I could browse through the cgi-bin folder.

    The cgi-scripts weren't executed but the browser wanted to download the files.

    So I decided to work on authentication for boa webserver. There was a patch for an older boa version 0.94.14.r19. http://sourceforge.net/tracker/download.php?group_id=78&atid=300078&file_id=83873&aid=935995

    I changed the sources of the boa distribution and successfully compiled it after replacing 'bzero' with 'memset'.

    When I start boa the error message "can't find keyword Auth" disappears.

    But now when I try to open a website I get the message
    501 Not Implemented
    POST to non-script is not supported in Boa 
    Urmel
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Michael,

    I read your post in the email notification as your post was also lost during the server issue.

    --- Quote Start ---

    Did you set the executable flag ?

    --- Quote End ---

    The executable flags on the cgi scripts should be set as I remember right. But I will check it again. I didn't change the scripts as they work with the boa webserver.

    Urmel