RadarURL
Skip to content
조회 수 5302 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

1. 시작하기 전에...

 이 문서는 포고플러그 시리즈 4에 Archlinux, nginx, php, mysql이 설치되었을 때를 기준으로 설명합니다.

 홈페이지에서 파일을 간단히 다운로드 하게 하고 싶다면 간단히 할 수 있습니다. nginx에서 설정구문을 몇 줄 바꿔 주면 됩니다. 특히 autoindex   on; 명령어를 입력하면 웹 페이지에 파일 목록을 작성하지 않아도 파일목록을 자동적으로 보여줍니다. 그러나 일반 웹페이지에서 업로드하는 파일첨부와는 성격이 다른 것입니다.


 



2. 링크방법

SSH에서 다음과 같이 입력합니다.
nano /etc/nginx/nginx.conf

쭈~욱 나오는데,

 server {
        listen       80;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   /srv/http;
            index  index.html index.htm index.php;

이 아래에 이 구문을 추가합니다.

location /down {                       - 웹주소 뒤에 붙힐 이름
            alias   /srv/down;          - 다운로드 폴더 경로를  반드시 지정할 것
            autoindex   on;            - down 폴더안에 자동으로 파일을 보여줌
            index  index.html index.htm index.php;
            access_log      /var/log/nginx/down.access.log;  - 접근로그 작성
            error_log       /var/log/nginx/down.error_log;fdgfg - 에러로그 작성
            charset utf-8; kdfjngktnglfghlkfgnklgfkfgbnkkf;;;;;;;- 접속시 한글깨짐방지
        }

그리고 위에 경로를 지정했으면 windows상에서 우클릭으로 '폴더만들기'를 선택해서 다운로드 폴더를 만드세요. 다운로드 폴더 경로와 폴더명만 지정하고 폴더를 만들지 않거나 제대로 하지 않았다면 이렇게 나옵니다.

5.png
폴더를 꼭 만드세요.

경로가 지정된 nginx 폴더 안에 또 폴더를 만들면 분류하기도 편합니다. (이것은 windows 상에서 우클릭해서 폴더만들기를 하면 됩니다.)

 

출처 : http://dione6.blogspot.kr/2013/03/nginx.html

?

  1. NGXMP 16.0 버전에서 Log에 upstream timed out (10060: 연결된 구성원으로부터 응답이 없어 연결하지 못했거나, 호스트로부터 응답이 없어 연결이 끊어졌습니다) while connecting to upstream, upstream: "fastcgi://127.0.0.1:9000"

    Date2014.04.11 ByJaeSoo Views2010
    Read More
  2. 504 Gateway Time-out using Nginx

    Date2014.04.09 ByJaeSoo Views1729
    Read More
  3. Nginx, FastCGI 지시어 및 설명 (504 Gateway Time-out 관련 설정 등)

    Date2014.04.09 ByJaeSoo Views2220
    Read More
  4. Nginx Log에서 upstream timed out (110: Connection timed out) while reading response header from upstream

    Date2014.04.08 ByJaeSoo Views1497
    Read More
  5. nginx 504 gateway time-out

    Date2014.04.08 ByJaeSoo Views1540
    Read More
  6. Nginx SERverSETting

    Date2014.04.07 ByJaeSoo Views1610
    Read More
  7. Nginx에서 php 외에 추가로 여러 확장자를 처리 방법

    Date2013.06.10 ByJAESOO Views2902
    Read More
  8. Nginx 설치 (간략)

    Date2013.06.10 ByJAESOO Views1694
    Read More
  9. Apache vs Nginx 성능을 밝혀라!

    Date2013.05.28 ByJAESOO Views3637
    Read More
  10. 아파치 2.4는 러시안 강호 NGINX를 넘을 수 있는가?

    Date2013.05.28 ByJAESOO Views2792
    Read More
  11. nginx 재시작 배치파일

    Date2013.04.12 ByJaeSoo Views3211
    Read More
  12. NGINX서버를 통한 다운로드 링크 형성하기(POGOPLUG SERIES 4용)

    Date2013.04.08 ByJaeSoo Views5302
    Read More
  13. nginx 에서 htaccess 사용하기

    Date2013.04.08 ByJaeSoo Views2874
    Read More
  14. Nginx HttpRewriteModule

    Date2013.04.08 ByJaeSoo Views2794
    Read More
  15. Nginx 와 Apache 동시사용 설정 (영문)

    Date2013.04.08 ByJaeSoo Views8866
    Read More
  16. Xpress engine nginx rewrite 설정, 짧은주소 (xpressengine)

    Date2012.11.20 ByJaeSoo Views65785
    Read More
  17. NGINX 소개와 사용 현황

    Date2012.11.20 ByJaeSoo Views4819
    Read More
  18. 강력한 웹서버 NGINX

    Date2012.11.20 ByJaeSoo Views5069
    Read More
  19. Nginx 웹서버 성능분석

    Date2012.11.20 ByJaeSoo Views5734
    Read More
  20. 제로보드XE(Xpressengine) Anti-accessXE:기본설정

    Date2012.07.26 ByJaeSoo Views3922
    Read More
Board Pagination Prev 1 2 Next
/ 2

PageViews   Today : 172 Yesterday : 2394 Total : 21713830  /  Counter Status   Today : 150 Yesterday : 1232 Total : 1142292

Edited by JAESOO

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소