Home  >  Q&A  >  body text

Can one nginx server be used as both a reverse proxy and a web server? Or should one be used as a reverse proxy and the other as a web server?

Can I use one nginx server as both a reverse proxy and a web server, or should I use one as a reverse proxy and one as a web server? I can't find the answer on google, don't laugh at my mentally retarded question

某草草某草草2713 days ago895

reply all(5)I'll reply

  • cloudmam

    cloudmam2020-06-22 18:53:13

    You can try the server management tool Cloud Helper

    reply
    0
  • 哪儿

    哪儿2020-02-27 14:52:08

    Recommend an artifact that should be able to help you. Cloud Helper is a powerful and comprehensive centralized management cloud host software. Not only is it compatible with Linux systems, Windows can also be used. In fact, the use of functions is quite good, because the functions are comprehensive and the installation is simple. Basically, it can be done with one click by a fool. If you add a cloud host in the middle, you need to add a probe for the first time, and then you can basically operate it on the panel. This is quite convenient. I have tried basically all the mainstream clouds and there are no problems, and there are no problems with the system. This is quite worry-free. I won’t say that there are any cloud providers or systems that cannot be used, and I have to find another software. The general functions are as follows: 1. Batch management of multiple cloud hosts; 2. Strong compatibility, compatible with basically all cloud business cloud hosts on the market, and compatible with operating systems; 3. Simple operation, visual interface preview resources, one-click repair, one-click deployment ; 4. You can remotely log in to the FTP desktop of the cloud host and process files on the cloud host; 5. Monitoring and resources also have an alarm function, which is very good, and you don’t have to stare at it; 6. System repair function, this is very practical It is also quite necessary; 7. Free to use. Generally speaking, the functions are quite complete, and there is no need to find another software. A cloud helper software basically meets all needs.

    reply
    0
  • 高洛峰

    高洛峰2017-05-16 17:26:33

    While acting as a reverse proxy, it is still used as a web server for static requests. Take the example from the Beginner's Guide on the official website:

    server {
        location / {
            proxy_pass http://localhost:8080/;
        }
    
        location ~ \.(gif|jpg|png)$ {
            root /data/images;
        }
    }
    

    The first location performs the reverse proxy function, and the second location points to the static content of its own server as a web server.

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-16 17:26:33

    Yes! Everyone can match their own

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-16 17:26:33

    I read the wrong question, please ignore it.

    reply
    0
  • Cancelreply