https://www.woobi.net/files/attach/images/107/dbac32e14556f199365593cd3503040a.png
조회 수 202 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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

 

디렉토리 리스팅은 서버내의 디렉토리 경로를 입력하면 디렉토리내의 파일을 모두 보여준다.

 

1.jpg

 

이를 방지하기 위해서 우분투에서 다음과 같이 수정해주면 어느정도는 방지할 수 있다.

우분투의 /etc/apache2/apache2.conf 의 파일을 수정해 준다.

 

$ vi /etc/apache2/apache2.conf

 

<Directory /var/www/>

 Options Indexes FollowSymLinks

        AllowOverride None

        Require all granted

</Directory>

위 항목에서 Indexes를 삭제하고 저장해 준다. (:wq)

 

2.jpg

 

수정후

<Directory /var/www/>

        Options FollowSymLinks

        AllowOverride None

        Require all granted

</Directory>

 

3.jpg

 

apache2를 재시작 한다.

$ /etc/init.d/apache2 restart
 

 

www.woobi.net

welcome

TAG •
?

  1. 우분투(Ubuntu) 라이믹스(Rhymix) 백업및 복원

    1. 백업 1-1. 디렉토리 백업 $ cd /var/www (우분투에서 Rhymix가 설치된 폴더로 이동) $ tar -cvf backup.tar ./html (html디렉토리를 backup.tar 파일로 압축) (%:우분투에서 웹서버는 html 디렉토리에 설치된다.) 1-2. mysql 데이터베이스(DB) 백업 $ mysql...
    Date2022.05.10 Bywoobi Views243 file
    Read More
  2. 우분투(Ubuntu) mod_rewrite (짧은 주소)활성화 하기.

    1. mod_rewrite 설치 $ sudo a2enmod rewrite 2. etc/apache2/apache2.conf 파일 수정 $ vi etc/apache2/apache2.conf <Directory /var/www/html> Options FollowSymLinks MultiViews AllowOverride All Require all granted </Directory> 을 추가로 입력하고 ...
    Date2022.05.10 Bywoobi Views421 file
    Read More
  3. 우분투(Ubuntu) Let’s Encrypt SSL 인증서 만료일자 확인 및 자동 갱신

    1. 만료 일자 확인 $ echo | openssl s_client -connect ww2.woobi.net:443 2>/dev/null | openssl x509 -noout -dates notBefore=May 9 23:47:37 2022 GMT <===인증서 시작 날짜 notAfter=Aug 7 23:47:36 2022 GMT <===인증서 만료 날짜 2. 자동 갱신 설정 $ ...
    Date2022.05.10 Bywoobi Views552 file
    Read More
  4. 우분투(Ubuntu) Let’s Encrypt SSL 인증서 설치하기

    1. certbot 설치 $ sudo snap install --classic certbot 2. 인증서 받기 $ sudo certbot --apache -d ww2.woobi.net -d ww3.woobi.net 받고자 하는 도메인을 -d 도메인 식으로 추가하여 입력한다.(ex: -d ww2.woobi.net -d ww3.woobi.net) 3. 항목 입력 Enter...
    Date2022.05.10 Bywoobi Views831 file
    Read More
  5. 우분투(Ubuntu) 디렉토리 리스팅(Directory Traversal) 막기

    디렉토리 리스팅은 서버내의 디렉토리 경로를 입력하면 디렉토리내의 파일을 모두 보여준다. 이를 방지하기 위해서 우분투에서 다음과 같이 수정해주면 어느정도는 방지할 수 있다. 우분투의 /etc/apache2/apache2.conf 의 파일을 수정해 준다. $ vi /etc/apac...
    Date2022.05.10 Bywoobi Views202 file
    Read More
  6. 우분투(Ubuntu) fail2ban 이용 접속시도 IP차단

    1. fail2ban 설치 $ sudo apt-get install fail2ban 2. vi명령어를 이용한 /etc/fail2ban 에 위치한 jail.conf 설정파일 수정 $ sudo vi /etc/fail2ban/jail.conf 다음의 부분을 찾아서 수정한다. ignoreip = 127.0.0.1/8 : 로컬접속은 ban 시키지 않는다 bant...
    Date2022.05.10 Bywoobi Views305 file
    Read More
  7. 우분투(Ubuntu) Transmission 설치(토렌트,torrent)

    1. Transmission 설치 $ sudo apt-get install transmission-daemon 2. Transmission 설정 $ sudo service transmission-daemon stop $ sudo vi /etc/transmission-daemon/settings.json 3. settings.json 의 다음 부분을 수정. "download-dir": "다운완료된 ...
    Date2022.05.09 Bywoobi Views1123 file
    Read More
  8. 우분투(Ubuntu) FTP 서버 설치 및 포트 변경

    1. FTP 설치 $ sudo apt-get install vsftpd 2. FTP 설정 $ sudo vi /etc/vsftpd.conf #write_enable=YES #local_umask=002 의 # 을 지워 준다. 3. FTP 재시작 $ sudo service vsftpd restart % FTP 포트 변경하기 FTP의 기본 포트 21을 임의의 포트로 변경하...
    Date2022.05.09 Bywoobi Views1025 file
    Read More
  9. 우분투(Ubuntu) cmake설치

    1. cmake 설치 확인 $ cmake -v 2. cmake 설치 $ sudo apt-get install cmake
    Date2022.05.09 Bywoobi Views623 file
    Read More
  10. 우분투(Ubuntu) make 설치

    1. make 설치 확인 $ make -v 2. make 설치 $ sudo apt-get install make
    Date2022.05.09 Bywoobi Views1127 file
    Read More
  11. 우분투(Ubuntu) gcc, g++설치

    1. gcc 설치 $ sudo apt-get install gcc 2. g++ 설치 $ sudo apt-get install g++ 3 설치확인 $ gcc -v
    Date2022.05.09 Bywoobi Views329 file
    Read More
  12. 우분투(Ubuntu) phpMyAdmin 설치 및 접속오류 해결

    1. phpMyAdmin 관련 패키지 설치 $ sudo apt install php-curl php-gd php-zip php-mcrypt Do you want to contiune? [Y/n] y 2. phpMyAdmin 설치 $ sudo apt-get install phpmyadmin Do you want to contiune? [Y/n] y apache2 선택 phpmyadmin의 데이터베이...
    Date2022.05.03 Bywoobi Views1358 file
    Read More
  13. 우분투(Ubuntu) apache, MariaDB, php8.1, 설치

    1.apache2 설치 $ sudo apt-get install apache2 Do you wnat to continue? [Y/n] y 2. MariaDB 설치 2-1 저장소 추가 $ sudo apt-get install software-properties-common dirmngr apt-transport-https $ sudo apt-key adv --fetch-keys 'https://mariadb.org...
    Date2022.05.03 Bywoobi Views573 file
    Read More
  14. 우분투(Ubuntu) dash 대신 bash로 설정 하기

    1. 우분투(Ubuntu) 서버의 쉘 확인하기 $ ls -al /bin/sh 2. dash 대신 bash로 기본 쉘을 바꾸기 $ sudo dpkg-reconfigure dash 입력후 "No" 선택 3. 변경 확인 $ ls -al /bin/sh
    Date2022.05.02 Bywoobi Views413 file
    Read More
  15. 우분투(Ubuntu) 서버 root(관리자)계정 ssh에서 사용하기

    1. root 계정 암호 설정 $ sudo passwd root 를 입력하고 설정할 암호를 입력하고 확인 입력까지 한다. 2. root 계정으로 변환 $ su 3. 접속시 root 계정을 사용하기 3-1 우분투(Ubuntu) 서버에 openssh가 설치되어 있지 않다면 설치한다. $ apt-get install o...
    Date2022.05.02 Bywoobi Views326 file
    Read More
Board Pagination Prev 1 2 Next
/ 2