Jump to content

Nginx:Allow Indexing: Difference between revisions

From Wiki
No edit summary
No edit summary
 
(One intermediate revision 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]]
[[Category:Tutorial]]

Latest revision as of 12:02, 22 September 2022

location /{
    root /home/name-situs/html/;
    index index.html;
    autoindex on; 
}