Port GoAhead WebServer

Source: Internet
Author: User

GoAhead WebServer is an embedded WebServer with free source code and powerful functions that can run on multiple platforms.

GoAhead WebServer has the following main features:

1. support ASP;

2. embedded javascript;

3. Standard CGI execution;

4. CGI processing GoFroms in the memory;

5. Extended APIs;

6. Fast response. More than 50 requests can be processed per second;

7. full compatibility with the standard;

8. If SSI is not included, only 60 kb of memory is required; if SSI is included, 500 KB of memory is required;

9. The web page may exist in the ROM or file system;

10. Supports multiple operating systems, including eCos, LINUX, LynxOS, QNX, VxWorks, WinCE, and pSOS;

Port GoAhead WebServer 2.1.8:

1. Download the source file http://www.goahead.com;

2. Extract the source file, go to the source file directory, find the web folder, and enter the Directory: web/docs/user. You can view the relevant compilation information and help;

3. Follow the compilation instructions shown above to compile the source file into an executable program of the corresponding platform;

Windows platform: Open vcpus and edit the webs.dsw directory in the source file directory. If no error occurs, execute webs.exe and enter http: // <yourIP> or <yourhostname> in the browser. The default home. asp is displayed;

Linux platform: If GCC is installed, open the terminal and go to the LINUX directory under the source file directory. (if necessary, modify the Makefile, mainly to locate the path of the compiler and other tools) make compilation, error:

Main. o: In function 'websgetcgicommname ':

/LINUX/main. c: 325: warning: the use of 'tempnam 'is dangerous, better use 'mkstemp'

Solution:

Find the main. c (/LINUX directory) file, in the websGetCgiCommName (...) function:

...

Char_t * pname1, * pname2;

// Pname1 = tempnam (NULL, T ("cgi"); // comment out

Pname1 = (char_t *) mkstemp (T ("cgi"); // Add

...

Re-make the file and compile it normally. You can run./webs;

4. After the goahead server is transplanted, the default page can be changed. For details, see the relevant information under web/docs;

GoAhead details: click here
GoAhead: click here

Upload files to the embedded Web server on the GoAhead.

Migrate GoAhead 2.5 embedded Web server to 2440 + Linux

Migrate GoAhead to uClinux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.