Apache:SSL Origin Cloudflare: Difference between revisions
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 18: | Line 18: | ||
vim /etc/apache2/ssl/privkey.pem | vim /etc/apache2/ssl/privkey.pem | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[File:SSL Origin Cloudflare 2.png|center|thumb]] | [[File:SSL Origin Cloudflare 2.png|center|thumb]] | ||
*Lalu berikan izin | *Lalu berikan izin | ||
| Line 32: | Line 34: | ||
* Contoh Virtual host | * Contoh Virtual host | ||
<syntaxhighlight lang="apacheconf"> | <syntaxhighlight lang="apacheconf"> | ||
ServerAdmin webmaster@domain.com | <VirtualHost *:443> | ||
DocumentRoot /var/www/html/ | ServerAdmin webmaster@domain.com | ||
ServerName domain.com | DocumentRoot /var/www/html/ | ||
ServerAlias www.domain.com | ServerName domain.com | ||
ServerAlias www.domain.com | |||
SSLEngine on | |||
SSLCertificateFile /etc/apache2/ssl/fullchain.pem | |||
SSLCertificateKeyFile /etc/apache2/ssl/privkey.pem | |||
<Directory /var/www/html/> | |||
Options FollowSymLinks | |||
AllowOverride All | |||
Order allow,deny | |||
allow from all | |||
</Directory> | |||
ErrorLog /var/log/apache2/domain.com_error | |||
CustomLog /var/log/apache2/domain.com_access common | |||
</VirtualHost> | |||
</ | |||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Server]] | [[Category:Server]] | ||