linux - edit path for default errors, ignore comments in variables.env, install/prepare certbot
This commit is contained in:
24
examples/basic-website-with-php/README.md
Normal file
24
examples/basic-website-with-php/README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Basic website with PHP
|
||||
|
||||
This is a basic example for a typical PHP website/app.
|
||||
|
||||
## Docker
|
||||
|
||||
```shell
|
||||
$ mkdir letsencrypt
|
||||
$ chown root:101 letsencrypt
|
||||
$ chmod 770 letsencrypt
|
||||
$ chmod 755 web-files
|
||||
$ chmod -R 744 web-files/*
|
||||
$ docker-compose up
|
||||
```
|
||||
|
||||
## Linux
|
||||
|
||||
```shell
|
||||
$ cp variables.env /opt/bunkerized-nginx/variables.env
|
||||
$ cp web-files/* /opt/bunkerized-nginx/www
|
||||
$ chown -R www-data:www-data /opt/bunkerized-nginx/www/*
|
||||
$ chmod -R 774 /opt/bunkerized-nginx/www/*
|
||||
$ bunkerized-nginx
|
||||
```
|
||||
10
examples/basic-website-with-php/variables.env
Normal file
10
examples/basic-website-with-php/variables.env
Normal file
@@ -0,0 +1,10 @@
|
||||
HTTP_PORT=80
|
||||
HTTPS_PORT=443
|
||||
SERVER_NAME=www.website.com
|
||||
AUTO_LETS_ENCRYPT=yes
|
||||
REDIRECT_HTTP_TO_HTTPS=yes
|
||||
DISABLE_DEFAULT_SERVER=yes
|
||||
USE_CLIENT_CACHE=yes
|
||||
USE_GZIP=yes
|
||||
REMOTE_PHP=myphp
|
||||
REMOTE_PHP_PATH=/app
|
||||
Reference in New Issue
Block a user