Jump to content

Nginx:Virtual Host Sederhana: Difference between revisions

From Wiki
Created page with " 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; } ==Source== *[https://websiteforstudents.com/how-to-set-up-a-nginx-server-block-on-ubuntu-linux/ websiteforstudents.com]"
 
No edit summary
Line 14: Line 14:
==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]]

Revision as of 14:30, 5 March 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;
}

Source