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

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

개발

nginx 에서 ~ tilde userdir 설정하기

페이지 정보

profile_image
작성자 관리자 (119.♡.119.69)
댓글 0건 조회 218회 작성일 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 400건 1 페이지
  • RSS
개발 목록
번호 제목 조회 추천 날짜
4005002-07
39973001-10
39864001-10
397231010-31
열람중219010-28
395655009-23
3941241007-06
3931141007-02
3921027006-23
3911302006-23
390974006-20
389865006-15
388779006-15
387971005-27
3861297004-07
3852160002-02
3842252001-09
3832479012-25
3822037012-15
3811714012-10

검색


사이트 정보

Copyright © Baragi.Net. All rights reserved.