[XAMPP] 로컬 아파치 서버 / https 사용하기

강상훈·2023년 2월 23일
0

Settings

목록 보기
3/5

XAMPP

  1. XAMPP 설치
  1. httpd.conf 파일 수정
    • XAMPP 실행
    • 탭 이동
    • 오른쪽 Configure 버튼 → “Open Conf File” 클릭
    • httpd.conf 수정 ~~~ 하단에 아래 코드 추가
# This configuration file should be uploaded to the server as "<Application Folder>/Build/.htaccess"# NOTE: "mod_mime" Apache module must be enabled for this configuration to work.<IfModule mod_mime.c>
# The following lines are required for builds without decompression fallback, compressed with gzipRemoveType .gzAddEncoding gzip .gzAddType application/octet-stream .data.gzAddType application/wasm .wasm.gzAddType application/javascript .js.gzAddType application/octet-stream .symbols.json.gz
# The following lines are required for builds without decompression fallback, compressed with Brotli
RemoveType .br
RemoveLanguage .br
AddEncoding br .br
AddType application/octet-stream .data.br
AddType application/wasm .wasm.br
AddType application/javascript .js.br
AddType application/octet-stream .symbols.json.br

# The following line improves loading performance for uncompressed builds
AddType application/wasm .wasm
# Uncomment the following line to improve loading performance for gzip-compressed builds with decompression fallback

# AddEncoding gzip .unityweb
# Uncomment the following line to improve loading performance for brotli-compressed builds with decompression fallback
# AddEncoding br .unityweb
</IfModule>

로컬호스트에서 Https 사용하기(MAC)

  • brew install minica
  • minica -ip-addresses 127.0.0.1
    - minica-key.pem
    - minica.pem 파일 생성됨.

두 파일을

"/Applications/XAMPP/xamppfiles/etc/myCert"에 복사(myCert 폴더 생성)

XAMPP(7.2.34) -> xamppfiles -> etc -> extra -> httpd-ssl.conf를 텍스트 편집기로 실행

SSLCertificateFile "/Applications/XAMPP/xamppfiles/etc/ssl.crt/server.crt"

SSLCertificateKeyFile "/Applications/XAMPP/xamppfiles/etc/ssl.key/server.key"

SSLCertificateFile "/Applications/XAMPP/xamppfiles/etc/myCert/minica.pem"

SSLCertificateKeyFile "/Applications/XAMPP/xamppfiles/etc/myCert/minica-key.pem"

로 수정

Usage

https://localhost/project로 들어가면 VR버튼 활성화됨.

Quest의 경우,

terminal -> ifconfig -> CSUM> 아래에 ip 192.168.1.xx

https://192.168.1.xx/project로 접속

[References]

https://brewagebear.github.io/https-apply-localhost/
https://marobiana.tistory.com/151

profile
https://totohoon01.tistory.com/

0개의 댓글