Quantcast
Viewing all articles
Browse latest Browse all 14

Reverse-proxy NGINX + Apache on Directadmin powered server

Custombuild 2 allows us to have a reverse-proxy NGINX + Apache on Directadmin powered server without a need for any 3rd party scripts or plugins, addons. That’s quite easy to start using it.

CustomBuild 2.x version

First of all make sure you’ve got custombuild 2:

cd /usr/local/directadmin/custombuild
./build version

You should see an output similar to the following:

[root@server custombuild]# ./build version
2.0.0-RC7 (rev: 863)

If it differes much then you’ve got custombuild 1.x

Directadmin version

To check directadmin version run this code:

[root@server custombuild]# /usr/local/directadmin/directadmin v
Version: DirectAdmin v.1.45.4

Make sure to have version of directadmin no less than 1.45.2 otherwise the things won’t work.

Custombuild 2.x: NGINX + Apache

Run this code to build nginx + apache with custombuild:

cd /usr/local/directadmin/custombuild
./build update
./build update_da
./build set webserver nginx_apache
./build nginx_apache
./build rewrite_confs

That’s it. Have fun with it.

P.S. Why do I need NGINX?

Nginx có thể phục vụ nhiều yêu cầu mỗi giây với ít nguồn lực kiến trúc của nó.

Nginx nhanh hơn trong việc phục vụ các tập tin tĩnh và tiêu tốn ít bộ nhớ hơn cho yêu cầu đồng thời Nginx dựa trên sự kiện đó không cần để đẻ trứng quá trình hay chủ đề mới cho mỗi yêu cầu, vì vậy sử dụng bộ nhớ của nó là rất thấp.

Nginx được ghi nhận là một máy chủ tốt cho các trang web cần nhanh, proxy ngược lại hiệu quả hay nhanh, phục vụ có hiệu quả các nội dung tĩnh. được ca ngợi vì đã sử dụng bộ nhớ thấp và được khuyến cáo cho các trang web chạy trên VPS.

Cho dù bạn đang tìm kiếm để có được nhiều nhất của VPS của bạn hoặc đang cố gắng để mở rộng quy mô một trong những trang web lớn nhất thế giới, Nginx có thể là công cụ tốt nhất cho công việc. Đó là nhanh chóng, ổn định và dễ sử dụng.

CÔNG TY TNHH THƯƠNG MẠI ĐIỆN TỬ CẦU VÒNG
67 Đinh Bộ Lĩnh, Phường 26, Quận Bình Thạnh
http://bizmac.com

The post Reverse-proxy NGINX + Apache on Directadmin powered server appeared first on itWeb.vn.


Viewing all articles
Browse latest Browse all 14

Trending Articles