구글 짧은 주소 서비스 종료 소식 > 자유게시판

본문 바로가기


전국동기회


전국 | 구글 짧은 주소 서비스 종료 소식


페이지 정보

작성자 Elroy 작성일2024-08-30 18:12 조회15회 댓글0건

본문

간혹 짧은주소 호스팅을 이전해야 할 때 서버환경이 바뀌기도 하는데요특히 php 언어를 사용한다면 아파치웹서버에서 nginx 로 변경하는 사례가 늘어나고 있습니다. ​서버사이드 랭귀지 프레임워크들 또는 cms 들은 대부분 짧은 짧은주소 주소를 지원하여 주소를 간단하고 이쁘게 사용하도록 지원해줍니다.pretty url 또는 clean url 이라고 하죠. 이는 웹서버의 리다이렉션 기능을 사용하여 구현하는데요 아파치웹서버라면 루트폴더에 .htaccess 파일을 만들어 리다이렉션 짧은주소 규칙을 넣어둡니다. ​그러나 nginx 환경이라면 이 .htaccess 파일을 복붙해 넣어도 아무런 소용이 없습니다. .htaccess 는 아파치에서만 지원해주기 때문이죠. ​nginx 에서 이를 적용하기 위해서는 .htaccess 파일의 짧은주소 내용을 복사하여 아래의 홈페이지에서 nginx 설정파일 용으로 변환이 가능합니다.htaccess to nginx converter htaccess ( get an example ): Here there will be a nginx config 짧은주소 About the htaccess to nginx converter The service is to convert an Apache's .htaccess to nginx configuration instructions. First of all, the service was thought 짧은주소 as a mod_rewrite to nginx converter. However, it...​nginx 용도로 변환된 규칙은 복사해두었다가 아래의 위치에 특정 이름으로 conf 파일을 생성합니다./etc/nginx/snippets/리라이트설정파일이름.conf​그리고 해당 사이트 설정파일에 이 conf 파일의 짧은주소 링크를 include 시켜주면 됩니다.location / { } 구문이 리라이트설정파일이름.conf 파일에 포함되어 있을거라 default.conf 에서는 주석처리 해줍니다.중복되게 사용이 불가하거던요. ​​라이믹스 용도의 리라이트 rhymix.conf 내용 # 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} 짧은주소 l...​

댓글목록

등록된 댓글이 없습니다.