Home > Operation and Maintenance > Nginx > Do Apache and nginx need to be used together?

Do Apache and nginx need to be used together?

(*-*)浩
Release: 2019-11-02 11:21:48
Original
5000 people have browsed it

Do Apache and nginx need to be used together?

Sometimes we want to use nginx and apache together. nginx accepts user requests and serves as the request forwarding server, and apache serves as the back-end server.

The configuration is as follows (Recommended learning: nginx tutorial)

Forward the request from port 80 to port 8000 in nginx

Do Apache and nginx need to be used together?

apache configuration

httpd.conf Listening to port 8000

Do Apache and nginx need to be used together?

Configuration file in the vhosts directory, port 8000 is still configured here

Do Apache and nginx need to be used together?

The above is the detailed content of Do Apache and nginx need to be used together?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template