Jump to content

Nginx:Virtual Host Sederhana: Difference between revisions

From Wiki
No edit summary
Line 11: Line 11:
     error_log /var/log/nginx/example.com.error.log;
     error_log /var/log/nginx/example.com.error.log;
  }
  }
== Terkait ==
* [[Nginx]]
* [[Nginx:Allow Indexing]]
* [[Nginx:GZIP]]


==Source==
==Source==
*[https://websiteforstudents.com/how-to-set-up-a-nginx-server-block-on-ubuntu-linux/ websiteforstudents.com]
*[https://websiteforstudents.com/how-to-set-up-a-nginx-server-block-on-ubuntu-linux/ websiteforstudents.com]
[[Category:Server]]
[[Category:Server]]
[[Category:Web Server]]
[[Category:Nginx]]

Revision as of 22:32, 13 June 2022

server {
    listen 80;

    server_name example.com www.example.com;

    root /var/www/example.com/public_html;

    index index.html;

    access_log /var/log/nginx/example.com.access.log;
    error_log /var/log/nginx/example.com.error.log;
}

Terkait

Source