아마존 라이트세일 아파치 리다이렉션 설정 방법 간단하게 남깁니다. 사실 제가 보려고 기록 남겨요 ^^ 내용은 간단합니다. 라이트세일 아파치 설정을 수정해서 리다이렉션을 구성하고 아파치를 재시작 하는 방법입니다.
리다이렉션이 필요한 상황
아마존 라이트세일에서 워드프레스 첫 세팅 후 도메인을 설정했습니다. 그랬더니 처음 설치한 공인IP 3.*.63.177가 계속 남아 http://3.*.63.177로 접속이 가능했습니다.
아마존 라이트세일에서 로드밸런서는 유료라서 아래와 같이 아파치 설정을 통해 IP 3.*.63.177로 접속하면 https://www.klog.kr로 리다이렉션 이동하도록 설정했습니다.
아파치 리다이렉션 설정
sudo vi /opt/bitnami/apache/conf/vhosts/wordpress-vhost.conf 와 sudo vi /opt/bitnami/apache/conf/vhosts/wordpress-https-vhost.conf를 각각 실행하고 아래 코드를 추가한다.
# BEGIN: klog
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(3.*.63.177)
RewriteRule (.*) https://www.klog.kr/$1 [R=301,L]
# END: klog
참고로 라이트세일 아파치 설정 문제인지 .htaccess 파일에서 리다이렉션이 안 먹힌다. (내가 뭘 잘 못했는지 모르겠지만…)
아파치 서버 재시작
sudo /opt/bitnami/ctlscript.sh restart apache
이상입니다.
[더 알아보기]
Психолог (др.-греч. ψυχή — душа; λόγος —
знание) — специалист, занимающийся изучением проявлений, способов и
форм организации психических явлений личности в различных областях человеческой деятельности для решения
научно-исследовательских и прикладных
задач, а также с целью оказания психологической помощи, поддержки и сопровождения.
Психическое здоровье включает в себя наше эмоциональное, психологическое и социальное благополучие.
Это влияет на то, как мы думаем, чувствуем и действуем.
Оно также помогает определить, как
мы справляемся со стрессом, относимся к другим и делаем здоровый выбор.
Психическое здоровье важно на каждом этапе жизни:
с детства и подросткового возраста до взрослой
жизни.ние) — специалист, занимающийся изучением проявлений, способов и форм организации психических явлений
личности в различных областях человеческой деятельности для
решения научно-исследовательских
и прикладных задач, а также с целью оказания психологической помощи, поддержки и сопровождения.
Hello to every one, because I am in fact keen of
reading this website’s post to be updated daily. It carries nice data.
That is a good tip especially to those fresh to the blogosphere.
Short but very accurate info… Thanks for sharing this one.
A must read post!
Hi everybody, here every one is sharing such knowledge, thus it’s fastidious to read this blog, and I used to visit this blog all the time.
Very soon this web page will be famous amid all blogging people, due to it’s
nice articles
I’ve been browsing online more than three hours today,
but I by no means found any fascinating article like yours.
It is beautiful price sufficient for me. In my view, if all
site owners and bloggers made just right content material
as you probably did, the internet can be a lot more
helpful than ever before.
If some one wishes to be updated with hottest technologies afterward he must be visit this
website and be up to date daily.
Wow, this post is pleasant, my sister is analyzing such things, thus I am going to convey her.
Unquestionably imagine that that you said. Your favorite reason appeared to be at the net the
simplest thing to keep in mind of. I say to you, I definitely
get irked whilst people think about issues that
they just do not understand about. You controlled to hit the nail upon the top as smartly as outlined out the entire thing with no need side
effect , people could take a signal. Will probably be again to get more.
Thanks
Ridiculous story there. What happened after? Thanks!
Very great post. I simply stumbled upon your blog and wanted to say that I’ve really enjoyed browsing
your blog posts. In any case I’ll be subscribing on your
rss feed and I’m hoping you write once more very soon!
Aw, this was an exceptionally nice post. Taking the time and actual
effort to generate a top notch article… but what can I
say… I put things off a lot and never seem to get anything done.
Write more, thats all I have to say. Literally, it seems
as though you relied on the video to make your point.
You definitely know what youre talking about, why throw
away your intelligence on just posting videos to your site when you could
be giving us something enlightening to read?
Hello, im noob 🙂