Skip to content

Commit 5e02f9f

Browse files
committed
Remove redundant site and update readme
1 parent 3f692c2 commit 5e02f9f

File tree

3 files changed

+5
-75
lines changed

3 files changed

+5
-75
lines changed

README.md

+5-8
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,28 @@
22

33
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:
44

5-
* fastcgi-cache.com - WordPress with [FastCGI caching](https://deliciousbrains.com/hosting-wordpress-yourself-server-monitoring-caching/#page-cache)
65
* multisite-subdirectory.com - WordPress multisite install using subdirectories
76
* multisite-subdomain.com - WordPress multisite install using subdomains
87
* single-site.com - WordPress single site install
98
* single-site-with-caching.com - WordPress single site install with FastCGI caching
109
* single-site-no-ssl.com - WordPress single site install (no SSL or page caching)
1110

12-
Looking for a modern hosting environment provisioned using Ansible? Check out [WordPress Ansible](https://github.com/A5hleyRich/wordpress-ansible).
13-
1411
## Usage
1512

1613
### PHP configuration
1714

18-
The php-fpm pool configuration is located in `global/php-pool.conf` and defaults to PHP 7.1. It will need modified if you want the default php-fpm pool service to be a different PHP version. Additional PHP version upstream definitions can be added to the `/upstreams` folder (a PHP 7.0 sample is provided there). You can either use the default pool using `$upstream` in your nginx configurations or the specific upstream definition (i.e. php71, php70) setup by your custom upstream definitions.
15+
The php-fpm pool configuration is located in `global/php-pool.conf` and defaults to PHP 7.4. It will need modifying if you want the default php-fpm pool service to be a different PHP version. Additional PHP version upstream definitions can be added to the `/upstreams` folder (a PHP 7.3 sample is provided there). You can either use the default pool using `$upstream` in your nginx configurations or the specific upstream definition (i.e. php73, php72) setup by your custom upstream definitions.
1916

20-
For example, currently the nginx configuration for `singlesite.com` has the following set for php requests:
17+
For example, currently the nginx configuration for `single-site.com` has the following set for php requests:
2118

2219
```
2320
fastcgi_pass $upstream
2421
```
2522

26-
You could change that to the following to use the php 7.0 php service instead (assuming that php7.0-fpm service is running).
23+
You could change that to the following to use the php 7.3 PHP service instead (assuming that php7.3-fpm service is running).
2724

2825
```
29-
fastcgi_pass php70
26+
fastcgi_pass php73
3027
```
3128

3229
This effectively allows you to have different server blocks execute different versions of PHP if needed.
@@ -49,7 +46,7 @@ Symlink the default file from _sites-available_ to _sites-enabled_, which will s
4946

5047
Copy one of the example configurations from _sites-available_ to _sites-available/yourdomain.com_:
5148

52-
`sudo cp /etc/nginx/sites-available/singlesite.com /etc/nginx/sites-available/yourdomain.com`
49+
`sudo cp /etc/nginx/sites-available/single-site.com /etc/nginx/sites-available/yourdomain.com`
5350

5451
Edit the site accordingly, paying close attention to the server name and paths.
5552

sites-available/.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# Except
55
!.gitignore
66
!default
7-
!fastcgi-cache.com
87
!multisite-subdirectory.com
98
!multisite-subdomain.com
109
!single-site-no-ssl.com

sites-available/fastcgi-cache.com

-66
This file was deleted.

0 commit comments

Comments
 (0)