우분투 apache2 sites-available 작성예문
페이지 정보
작성자 낙엽타는향기 댓글 0건 조회 2,571회 작성일 23-07-25 23:36본문
pcjoin_ssl.conf 예문
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
ServerName pcjoin.com
DocumentRoot /var/www/html/pcjoin/g5
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/pcjoin.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/pcjoin.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/pcjoin.com/chain.pem
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
</VirtualHost>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
ServerName www.pcjoin.com
DocumentRoot /var/www/html/pcjoin/g5
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/www.pcjoin.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.pcjoin.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/www.pcjoin.com/chain.pem
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
</VirtualHost>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
# Use name-based virtual hosting.#NameVirtualHost *:80<VirtualHost *:80>ServerName pcjoin.comServerAdmin webmaster@localhostDocumentRoot /var/www/html/pcjoin/g5# Rewrite 엔진을 켭니다.RewriteEngine onRewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]RewriteCond %{HTTPS} off</VirtualHost><VirtualHost *:80>ServerAlias www.pcjoin.comServerAdmin webmaster@localhostDocumentRoot /var/www/html/pcjoin/g5# Rewrite 엔진을 켭니다.RewriteEngine onRewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]RewriteCond %{HTTPS} off</VirtualHost>
댓글목록
등록된 댓글이 없습니다.