Welcome ðŸŽ‰

logo

ReactLMS

Search
Light Mode
Contact Us

2 min to read

Contact us

No results for your search.
Sorry, an unexpected error occurred

Introduction


Before performing complex operations, let's learn the basic information of the nginx config file.


Write Config File Yourself


Before writing information for the Config File, we need to access the file, please execute the following command

sudo nano /etc/nginx/nginx.conf






📘
In this case, nano is my text editing application.

After executing the above command, we will add the following basic information:

events {

}

http {
    server {
      listen 80;
      server_name nglearns.test;
      return 200 "Hello";
    }
}






If you have worked with REST APIs, you will recognize that the Server/VM will return a result with a status of 200 and content is "Hello".


Read more
On This Page