nginx 에서 ~ tilde userdir 설정하기 > 개발

본문 바로가기
사이트 내 전체검색

개발

nginx 에서 ~ tilde userdir 설정하기

페이지 정보

profile_image
작성자 관리자 (119.♡.119.69)
댓글 0건 조회 40회 작성일 24-10-28 17:00

본문

# 참고
https://www.server-world.info/en/note?os=Ubuntu_20.04&p=nginx&f=4


```
root@www:~# vi /etc/nginx/sites-available/default
# add into [server] section
server {
        .....
        .....
        location ~ ^/~(.+?)(/.*)?$ {
              alias /home/$1/public_html$2;
              index  index.html index.htm;
              autoindex on;
        }

root@www:~# systemctl restart nginx
```

추천0

댓글목록

등록된 댓글이 없습니다.

Total 397건 1 페이지
  • RSS
개발 목록
번호 제목 조회 추천 날짜
39731010-31
열람중41010-28
395298009-23
394813007-06
393997007-02
392892006-23
3911007006-23
390887006-20
389755006-15
388681006-15
387811005-27
3861193004-07
3852049002-02
3842101001-09
3832376012-25
3821943012-15
3811613012-10
3801202012-03
3791428011-26
3781208011-04

검색


사이트 정보

Copyright © Baragi.Net. All rights reserved.