singlesite.com changed to single-site-no-ssl.com
This commit is contained in:
parent
33ad09793e
commit
297d184d1c
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
This repository contains the Nginx configurations used within the series [Hosting WordPress Yourself](https://deliciousbrains.com/hosting-wordpress-setup-secure-virtual-server/). It contains best practices from various sources, including the [WordPress Codex](https://codex.wordpress.org/Nginx) and [H5BP](https://github.com/h5bp/server-configs-nginx). The following example sites are included:
|
This repository contains the Nginx configurations used within the series [Hosting WordPress Yourself](https://deliciousbrains.com/hosting-wordpress-setup-secure-virtual-server/). It contains best practices from various sources, including the [WordPress Codex](https://codex.wordpress.org/Nginx) and [H5BP](https://github.com/h5bp/server-configs-nginx). The following example sites are included:
|
||||||
|
|
||||||
* singlesite.com - WordPress single site install (no SSL or page caching)
|
|
||||||
* ssl.com - WordPress on HTTPS
|
* ssl.com - WordPress on HTTPS
|
||||||
* fastcgi-cache.com - WordPress with [FastCGI caching](https://deliciousbrains.com/hosting-wordpress-yourself-server-monitoring-caching/#page-cache)
|
* fastcgi-cache.com - WordPress with [FastCGI caching](https://deliciousbrains.com/hosting-wordpress-yourself-server-monitoring-caching/#page-cache)
|
||||||
* ssl-fastcgi-cache.com - WordPress on HTTPS with FastCGI caching
|
* ssl-fastcgi-cache.com - WordPress on HTTPS with FastCGI caching
|
||||||
* multisite-subdomain.com - WordPress Multisite install using subdomains
|
* multisite-subdomain.com - WordPress Multisite install using subdomains
|
||||||
* multisite-subdirectory.com - WordPress Multisite install using subdirectories
|
* multisite-subdirectory.com - WordPress Multisite install using subdirectories
|
||||||
|
* single-site-no-ssl.com - WordPress single site install (no SSL or page caching)
|
||||||
|
|
||||||
Looking for a modern hosting environment provisioned using Ansible? Check out [WordPress Ansible](https://github.com/A5hleyRich/wordpress-ansible).
|
Looking for a modern hosting environment provisioned using Ansible? Check out [WordPress Ansible](https://github.com/A5hleyRich/wordpress-ansible).
|
||||||
|
|
||||||
|
|||||||
2
sites-available/.gitignore
vendored
2
sites-available/.gitignore
vendored
@ -7,6 +7,6 @@
|
|||||||
!fastcgi-cache.com
|
!fastcgi-cache.com
|
||||||
!multisite-subdirectory.com
|
!multisite-subdirectory.com
|
||||||
!multisite-subdomain.com
|
!multisite-subdomain.com
|
||||||
!singlesite.com
|
!single-site-no-ssl.com
|
||||||
!ssl.com
|
!ssl.com
|
||||||
!ssl-fastcgi-cache.com
|
!ssl-fastcgi-cache.com
|
||||||
@ -4,17 +4,17 @@ server {
|
|||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
|
|
||||||
# Server name to listen for
|
# Server name to listen for
|
||||||
server_name singlesite.com;
|
server_name single-site-no-ssl.com;
|
||||||
|
|
||||||
# Path to document root
|
# Path to document root
|
||||||
root /sites/singlesite.com/public;
|
root /sites/single-site-no-ssl.com/public;
|
||||||
|
|
||||||
# File to be used as index
|
# File to be used as index
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
# Overrides logs defined in nginx.conf, allows per site logs.
|
# Overrides logs defined in nginx.conf, allows per site logs.
|
||||||
access_log /sites/singlesite.com/logs/access.log;
|
access_log /sites/single-site-no-ssl.com/logs/access.log;
|
||||||
error_log /sites/singlesite.com/logs/error.log;
|
error_log /sites/single-site-no-ssl.com/logs/error.log;
|
||||||
|
|
||||||
# Default server block rules
|
# Default server block rules
|
||||||
include global/server/defaults.conf;
|
include global/server/defaults.conf;
|
||||||
@ -37,7 +37,7 @@ server {
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name www.singlesite.com;
|
server_name www.single-site-no-ssl.com;
|
||||||
|
|
||||||
return 301 $scheme://singlesite.com$request_uri;
|
return 301 $scheme://single-site-no-ssl.com$request_uri;
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user