XE(Rhymix)/변수 응용
라이믹스 썸띵모듈 활용해서 개인주소로 접속하기
TheStorybook
2021. 10. 15. 14:19
각 Nginx XE-Rewrite conf 설정 파일 편집 합니다.
각 서버의 xe-rewrite을 담당하는 부분 아래에 다음과 같이 룰을 추가해 주세요.
rewrite ^/@([a-zA-Z0-9가-힇_]+)/?$ /index.php?mid=testmid&act=dispSomethingProfileView&smember=$1 last;
testmid = 관리자 -> 기본설정 -> "mid 설정" 에 입력한 값으로 변경해 주세요.
주소 형태 http(s)://XEURL/@user
user = 관리자 -> 접속설정 "주소형태"에서 설정한 회원의 정보를 입력해 주세요.
예) "아이디" 설정시 https(s)://XEURL/@회원별아이디 이용 가능
기본 안내법
내 설정 법
# block direct access to templates, XML schemas, config files, dotfiles, environment info, etc.
location ~ ^/modules/editor/(skins|styles)/.+\.html$ {
# pass
}
location ~ ^/(addons|common/tpl|files/ruleset|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml)$ {
return 403;
}
location ~ ^/files/(attach|config|cache/store)/.+\.(ph(p|t|ar)?[0-9]?|p?html?|cgi|pl|exe|[aj]spx?|inc|bak)$ {
return 403;
}
location ~ ^/files/(env|member_extra_info/(new_message_flags|point))/ {
return 403;
}
location ~ ^/(\.git|\.ht|\.travis|codeception\.|composer\.|Gruntfile\.js|package\.json|CONTRIBUTING|COPYRIGHT|LICENSE|README) {
return 403;
}
# fix incorrect relative URLs (for legacy support)
location ~ ^/(.+)/(addons|files|layouts|m\.layouts|modules|widgets|widgetstyles)/(.+) {
try_files $uri $uri/ /$2/$3;
}
# fix incorrect minified URLs (for legacy support)
location ~ ^/(.+)\.min\.(css|js)$ {
try_files $uri $uri/ /$1.$2;
}
# fix download URL when other directives for static files are present
location ~ ^/files/download/ {
try_files $uri $uri/ /index.php$is_args$args;
}
rewrite ^/@([a-zA-Z0-9가-힇_]+)/?$ /index.php?mid=user&act=dispSomethingProfileView&smember=$1 redirect;
rewrite ^/@([a-zA-Z0-9가-힇_]+)/?$ /index.php?mid=user&smember=$1 redirect;
rewrite ^/@([a-zA-Z0-9가-힇_]+)/?$ /user?smember=$1 redirect;
# all other short URLs
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
rhymix-nginx.conf 파일 수정
여기서 mid 뒷편에 있는 user는 썸띵 모듈내 내가 지정하는 호출명