개발 이야기/Linux
Nginx - index 페이지 기본 탐색기 적용하기
_ppuing
2024. 2. 29. 00:45
반응형
server {
... content ...
location / {
autoindex on;
}
}
fancy index를 활용하면 날짜 포맷도 바꿀 수 있음
sudo apt-get -y install libnginx-mod-http-fancyindex
server {
... content ...
location / {
autoindex on;
fancyindex on;
fancyindex_time_format "%Y-%m-%d %H:%M:%S";
}
}
reference : https://installati.one/install-libnginx-mod-http-fancyindex-ubuntu-18-04/?expand_article=1
반응형