Nginx:Allow Indexing: Difference between revisions

No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
location /{  
<syntaxhighlight lang="nginx" line="1">
     root /home/name-situs/html/;  
location /{
     index index.html;  
     root /home/name-situs/html/;
     autoindex on;
     index index.html;
  }
     autoindex on;  
}
</syntaxhighlight>
   
 
[[Category:Tutorial]]