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

Do Apache and nginx need to be used together?

(*-*)浩
(*-*)浩Original
2019-11-02 11:21:484954browse

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!

Statement:
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