分类: LINUX
2012-08-14 14:10:56
一个linux下的命令行工具,可以用来将apache的conf文件转换成nginx 的conf文件。
OverviewNGINX (“engine x”) is a high performance web server, caching proxy and a Layer 7 load balancing solution. Millions of web sites on the Internet benefit from using NGINX because of its extreme performance, scalability, reliability, flexibility and security.
However, like Apache, the configuration of NGINX is not an easy thing for most of the people. In particularly, it will take our more efforts to learn the modules and directives in Apache and Nginx when we need to migrate to NGINX from Apache server.
According to the above requirement, we developed the apache2nginx tool. The goal of this tool is generating Nginx configuration file(s) according to those of Apache.
Download and InstallationYou could download source code or binary file (i386 or x86_64) to use.
Download BinaryNow you will get the executable file apache2nginx.
you can by follow command to try use.
Step 1: Download and unzip source code to the above directory.
Step 2: Configure: you could change the PREFIX by --prefix option for the installation directory
Step 3: Compile and install
Step 4: Add apache2nginx to PATH environment variable.
The easiest way to run Apache2nginx is as below:
Now, if it’s ok, nginx.conf will been produced. By default, the converting result file is nginx.conf which is in the current directory.
Docs & Help