This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
##### this section is for redirecting any non-SSL request to SSL | |
listen 80; | |
server_name www.example.com example.com; | |
return 301 https://www.example.com$request_uri; | |
} | |
server { | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########### | |
paste this inside virtual host file /etc/nginx/sites-available/<YOUR CONFIG FILE> | |
########### | |
server { | |
listen 80; | |
server_name <DOMAIN_OR_HOST_NAME>; | |
root /var/www/html/<FOLDER_NAME>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is VCL file for Varnish 4.0.2 & Wordpress 4.0 | |
# | |
# ASSUME The builtin VCL is called afterwards. | |
# | |
# Specify VCL new 4.0 format. | |
vcl 4.0; | |
# Imports | |
import std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* General Configuration | |
* | |
* All of your system's general configuration settings go in here. | |
* You can see a list of the default settings in craft/app/etc/config/defaults/general.php | |
*/ | |
return array( |