Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

Alternatives to Boa Webserver with Authentication

Altera_Forum
Honored Contributor II
3,228 Views

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
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
1,641 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
1,641 Views

Hi Nekojiru, 

 

thanks for the answer. 

 

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

 

 

Urmel
0 Kudos
Altera_Forum
Honored Contributor II
1,641 Views

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 :-)

0 Kudos
Altera_Forum
Honored Contributor II
1,641 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
1,641 Views

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
0 Kudos
Reply