Implement a method for installing LIGHTTPD under Windows _win Server

Source: Internet
Author: User


Go through a few steps roughly:

1, Windows system needs the support of the Cygwin environment, the first download installation cygwin.

2, download lighttpd source code and decompression (from http://trac.lighttpd.net/)

3, in the Cygwin environment into the lighttpd after the download Save the directory, in turn, execute the following command:

1>./configure–prefix=c:/lighthttd

2> make

3> make Install

If there is no error, the installation is successful.

4, under the C:/LIGHTHTTD to build a directory etc for storage configuration file, a new profile lighttpd.conf, sample configuration is as follows:

Server.document-root = "D:/itang_home/mypics/100canon"

Server.port = 8080

Mimetype.assign = (

". html" => "text/html",

". txt" => "Text/plain",

". jpg" => "image/jpeg",

". png" => "Image/png"

)

5, Windows command line environment into the C:/lighthttd/sbin directory, run Lighttpd-t-F. \ETC\LIGHTTPD.CONF test whether the installation configuration was successful.

When you are prompted to cygwin1.dll LIGHTTPD runtime dependent DLLs that do not exist, you need to find the appropriate DLL copy in the Cygwin bin directory to the C:/lighthttd/sbin directory, and then run Lighttpd-t-F. \etc\lighttpd.conf the installation configuration is successful until the prompt "Syntax OK" appears.

6, run lighttpd-d-F. \etc\lighttpd.conf start the Web server.

7, browser access, display pictures, finished.

After the process manager looks at the boot, the memory is just 4M, and it's pretty neat. The access speed is also very fast. Look at the official document later, the actual application of more toss it. If it is possible to apply it to the actual project.

Note: the example simply configures access to static resources. Subsequent applications (such as combining tomcat,ruby, etc.) will need to be read by the Official document (http://trac.lighttpd.net/trac/wiki/).
Related Article

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.