Nginx:Virtual Host Sederhana: Difference between revisions
Appearance
No edit summary |
|||
| Line 1: | Line 1: | ||
<syntaxhighlight lang="nginx" line="1"> | |||
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; | |||
} | |||
</syntaxhighlight> | |||
== Terkait == | == Terkait == | ||
Latest revision as of 06:58, 29 August 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;
}