ssl.com changed to single-site.com
This commit is contained in:
parent
c7ade05f3b
commit
5779b81bfd
@ -2,10 +2,10 @@
|
||||
|
||||
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:
|
||||
|
||||
* ssl.com - WordPress on HTTPS
|
||||
* fastcgi-cache.com - WordPress with [FastCGI caching](https://deliciousbrains.com/hosting-wordpress-yourself-server-monitoring-caching/#page-cache)
|
||||
* multisite-subdomain.com - WordPress Multisite install using subdomains
|
||||
* multisite-subdirectory.com - WordPress Multisite install using subdirectories
|
||||
* single-site.com - WordPress single site install
|
||||
* single-site-with-caching.com - WordPress single site install with FastCGI caching
|
||||
* single-site-no-ssl.com - WordPress single site install (no SSL or page caching)
|
||||
|
||||
|
||||
2
sites-available/.gitignore
vendored
2
sites-available/.gitignore
vendored
@ -8,5 +8,5 @@
|
||||
!multisite-subdirectory.com
|
||||
!multisite-subdomain.com
|
||||
!single-site-no-ssl.com
|
||||
!ssl.com
|
||||
!single-site.com
|
||||
!single-site-with-caching.com
|
||||
@ -4,21 +4,21 @@ server {
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
# Server name to listen for
|
||||
server_name ssl.com;
|
||||
server_name single-site.com;
|
||||
|
||||
# Path to document root
|
||||
root /sites/ssl.com/public;
|
||||
root /sites/single-site.com/public;
|
||||
|
||||
# Paths to certificate files.
|
||||
ssl_certificate /etc/letsencrypt/live/ssl.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/ssl.com/privkey.pem;
|
||||
ssl_certificate /etc/letsencrypt/live/single-site.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/single-site.com/privkey.pem;
|
||||
|
||||
# File to be used as index
|
||||
index index.php;
|
||||
|
||||
# Overrides logs defined in nginx.conf, allows per site logs.
|
||||
access_log /sites/ssl.com/logs/access.log;
|
||||
error_log /sites/ssl.com/logs/error.log;
|
||||
access_log /sites/single-site.com/logs/access.log;
|
||||
error_log /sites/single-site.com/logs/error.log;
|
||||
|
||||
# Default server block rules
|
||||
include global/server/defaults.conf;
|
||||
@ -44,16 +44,16 @@ server {
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name ssl.com www.ssl.com;
|
||||
server_name single-site.com www.single-site.com;
|
||||
|
||||
return 301 https://ssl.com$request_uri;
|
||||
return 301 https://single-site.com$request_uri;
|
||||
}
|
||||
|
||||
# Redirect www to non-www
|
||||
server {
|
||||
listen 443;
|
||||
listen [::]:443;
|
||||
server_name www.ssl.com;
|
||||
server_name www.single-site.com;
|
||||
|
||||
return 301 https://ssl.com$request_uri;
|
||||
return 301 https://single-site.com$request_uri;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user