xn--220b31d95hq8o.xn--3e0b707e/
내도메인.한국 - 한글 무료 도메인 등록센터
한글 무료 도메인 내도메인.한국, 웹포워딩, DNS 등 무료 도메인 기능 제공
xn--220b31d95hq8o.xn--3e0b707e
내도메인 한국에서 무료로 도메인 등록이 가능합니다.
사용하실 도메인 등록을 한 후 도메인 수정에 가셔서
IP연결(A) 에 사용하실 도메인.com , www.도메인.com 을 등록하시면 됩니다
letsencrypt을 사용하시면 일단
2020/12/29 - [Web/Server] - [서버 구축] Ubuntu + Nginx + MariaDB + Laravel 설치하기 - 마지막
[서버 구축] Ubuntu + Nginx + MariaDB + Laravel 설치하기 - 마지막
이전 글 이어서 포스팅 하겠습니다. 아마 제가 작성한 글대로 서버를 구축하시면 오류가 뜨실겁니다. 그이유는 바로 권한 설정이 되어있지 않아서 그러실텐데요. 다음과 같이 명령어를 실행해
parase.tistory.com
에 있는 web.conf을 수정하셔야 합니다.
server {
listen 80 default_server;
server_name 도메인.com;
index server.php;
root /var/www/laravel;
location @rewrite {
rewrite ^/(.*)$ /server.php?_url=/$1;
}
location / {
try_files $uri $uri/ /server.php?$query_string;
}
location ~ \.php$ {
fastcgi_split_path_info %(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_index server.php;
fastcgi_param SCRIPT_FILLENAME /avr/www/web/$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgI_script_name;
include fastcgi_params;
}
}
이렇게 변경해주시고
$ sudo apt update
$ sudo apt install software-properties-common
$ sudo add-apt-repository universe
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt update
$ sudo apt install certbot python3-certbot-nginx
$ sudo certbot --nginx
이 명령어들을 순차적으로 실행시켜주시면 되겠습니다.
'Web > Server' 카테고리의 다른 글
[Nginx] Laravel + Create-react-app (0) | 2021.06.01 |
---|---|
[Laravel] Json 데이터 통신으로 회원가입 구현 -(2) (0) | 2021.03.12 |
[중요][LEMP]Laravel 설치 후 Blank Page 출력문제 (0) | 2021.01.10 |
[서버구축] ssh root 로그인 수정하기 (0) | 2020.12.31 |
[서버 구축] Ubuntu + Nginx + MariaDB + Laravel 설치하기 - 마지막 (0) | 2020.12.29 |
최근댓글