nginx µµ¸ÞÀÎ ¼³Á¤ - root¿¡ ÁöÁ¤µÈ ÇÏÀ§ µð·ºÅ丮¸¦ µµ¸ÞÀÎÀ¸·Î Á÷Á¢¿¬°áÇÏ´Â ¹æ¹ý

Á¶Çü   
   Á¶È¸ 7596   Ãßõ 0    

안녕하세요.

nginx 설정중입니다. 막히는 부분이 있어 질문 남깁니다.


지금 정상적으로 pydio 설치를 끝냈습니다.

근데 접속을 하려면 도메인명/pydio 쳐서 로그인을 해야하는데 exid.download/pydio 이런식으로

위 연결주소를 바로  exid.download를 입력해서 exid.download/pydio로 직접 연결되게 하고 싶습니다.

아래처럼 리다이렉트를 걸어줘도 원하는것처럼 이동이 되질 않습니다.

return       301 https://$server_name/pydio$request_uri;


return      301  https://exid.download/pydio$request_uri;


따러 server 구문에 root 위치자체를 usr/share/nginx/html/pydio; 이런식으로 지정해줘도 안되더라고요.

웹포워딩 서비스를 이용해 하려고 했는데 이미 A레코드를 등록한 상태라 가능하지 않다고 나오내요.

어떤 방법이 있을까요..?


location = / {
    rewrite ^ http://site.com/blog/ redirect;
}

이렇게하면 루트에 대한 요청 만 수행합니다. 당신이 모든 (재 잡을해야하는 경우 http://site.com/somearticle/something.html에을 http://site.com/blog/somearticle/something.html), 당신은 더 복잡 뭔가를해야합니다 :

location /blog/ {
    # Empty; this is just here to avoid redirecting for this location,
    # though you might already have some config in a block like this.
}
location / {
    rewrite ^/(.*)$ http://site.com/blog/$1 redirect;
}

위 방법도 시도하였지만


이런식으로 되버립니다... ㅠㅠ


ªÀº±Û Àϼö·Ï ½ÅÁßÇϰÔ.
Á¶Çü 2018-01
ÀÚ¹®ÀÚ´ä

 34    location = / {
 35                rewrite ^ /pydio redirect;
 36    }
 37
 38    location / {
 39        index  index.php index.html;
 40        try_files $uri $uri/ /index.php?$args;
 41    }

À§ ¼Ò½º·Î ÇØ°áÇÏ¿´½À´Ï´Ù. -_-;; º°¾Öº°°É ´ÙÇØºÃ´Âµ¥ À§¿¡ °É·Î ÇØ°á
rewrite ^ /pydio redirect;


QnA
Á¦¸ñPage 1796/5744
2015-12   1846327   ¹é¸Þ°¡
2014-05   5330780   Á¤ÀºÁØ1
2018-02   4355   ¼­¿ï»ç¶÷
2020-06   4355   isaiah
2018-03   4355   ±è°¡ÇǽÃ
2019-03   4355   ±Ç¿ë1
2015-07   4355   ĸƾ¾Æ¸Þ¸®Ä«³ë
2014-04   4356   ±èµ¿¹Î
2018-03   4356   ´ÃÆÄ¶õ
2015-04   4356   s±èÁ¾È­z
2014-08   4356   PARKYONGJOON
2020-01   4356   ¸®Å°ÆÄ¿ï·¯
2015-04   4356   ¹ÙÀ̺ñ
2014-09   4356   ÂÄÀμº
2015-03   4356   ³ªºñz
2018-10   4356   ÀÀ¾Ö¾Ö¿À
2016-02   4356   À̹®¿µ
2014-06   4356   jore
2019-03   4356   ºÀ·¡
2016-01   4356   ¹«¾Æ
2015-07   4356   izegtob
2019-05   4356   Äɳ׵ð