반응형

https://duckduckgo.com/?q=apache+exclude+html+extension&t=raspberrypi&ia=web

apache exclude html extension at DuckDuckGo

duckduckgo.com


The client can then send out bookmarks in the style mydomain.com/foo rather than mydomain.com/foo.html.

It sounds very simple, and I've used mod_rewrite happily before (say with WordPress or for redirects), but this is proving much harder to crack that I thought. Perhaps I'm missing something really obvious, but I can't find a solution anywhere and I've been at it all day!

이렇게 추가하면 된다

RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME}.html -f
RewriteRule !.*\.html$ %{REQUEST_FILENAME}.html [L]





또 다른 방법

https://m.blog.naver.com/PostView.nhn?blogId=didim365_&logNo=220315112825&proxyReferer=https%3A%2F%2Fwww.google.com%2F

 


마지막 간단 방법
MultiViews 넣기


https://qastack.kr/superuser/337626/how-is-apache-mapping-files-without-extensions

확장자가없는 Apache 맵핑 파일은 어떻게됩니까?

qastack.kr

http://httpd.apache.org/docs/2.2/content-negotiation.html#multiviews

내용협상 (Content Negotiation) - Apache HTTP Server Version 2.2

Please note This document refers to the 2.2 version of Apache httpd, which is no longer maintained. The active release is documented here. If you have not already upgraded, please follow this link for more information. You may follow this link to go to the

httpd.apache.org

반응형
반응형

맥OS에서 라즈베리파이에 사용할 MicroSD 파일에 이미지를 심는 방법은 2가지가 있습니다.

 

1. https://www.raspberrypi.org/downloads 에서 기본으로 제공하는 macOS용 Imager 파일을 사용하는 경우

- 라즈베리파이 다운로드 페이지로 이동한다.

- Raspberry Pi Imager for macOS를 클릭하여, 다운로드 받는다

- 안내에 따라 설치한다.

프로그램을 다운 받고, 실행하여 보안 설정 확인 후 설치하면 MicroSD에 이미지 파일 심기를 완료할 수 있다.

 

2. NOOBS 이미지를 다운로드 받아 수동으로 SD카드에 디스크를 밀어 넣는 경우

- 라즈베리파이 다운로드 페이지에서 NOOBS 를 선택하거나  www.raspberrypi.org/downloads/noobs/ 로 바로 이동한다.

- NOOBS 받는다, (Lite 버전은 GUI가 빠져 있는 버전이므로, NOOBS로 받는다)

- MicroSD 카드를 macOS에 연결한다.

- 터미널을 실행해서 다음과 같이 SD 디스크 위치 정보를 확인하고, unmount 하고, dd명령어로 이미지를 심어주고 완료한다.

~~~~$ diskutil list   
      (디스크 정보 확인)

~~~~$ duskutil unmountDisk /dev/disk3     
      (앞에서 확인한 디스크 정보, 또는 바탕화면이나 파인더에서 추출해도 됨)

~~~~$ sudo dd bs=4m if=NOOBS받은파일압축해제한경로와이미지명 of=/dev/disk3
      (예 sudo dd bs=4m if=NOOBS-3.4.0.img of=/dev/disk3)
      (dd는 disk dump의 약자로, bs = buffer size, if = input file, of = output file 이다)
      (2.4기가 정도 되는 파일이므로 복사하는데 10분 안팎이 걸릴 수 있으므로, 그냥 쉬다 보면 이미지 심기 완료됨)

이상입니다.

 

이제 MicroSD카드를 라즈베리파이에 삽입해서 설치할 수 있습니다.

반응형
반응형

xrdp는 mstsc 마이크로소프트터미널서비스클라이언트 프로그램을 비 윈도우 운영체제에 사용 할수 있도록 개발한 소프트웨어이다.

VNC보다 월등히 쾌적안 원격 접속 기능을 지원해준다.

1.

맥OS에는 Microsoft Remote Desktop 무료 버전을 설치해주시고,

2.

라즈베리파이에서는 다음과 같이 xrdp를 설치한다.

만약 라즈베리파이에서 어떤 다른 서비스를 돌리고 있는 것이 아닌 초기 설치 상태라고 한다면 update와 install xrdp 사이에 upgrade도 진행해줍니다.

$ sudo apt-get update    (패키지 목록을 최신으로 업데이트 한다)
$ sudo apt-get upgrade  (설치된 패키지에 서 업그레이드 가능한 목록을 모두 업그레이드 설치한다.)
$ sudo apt-get install xrdp   (xrdp를 설치한다.)

3.

맥OS에서 Microsoft Remote Desktop 설정하여 접속한다.

생각보다 어렵지 않죠?

재밌습니다.

 

반응형

+ Recent posts