mirror of
https://github.com/YGGverse/YGGbro.git
synced 2026-03-31 17:45:36 +00:00
update installation options
This commit is contained in:
parent
1c676a6f1a
commit
7df6e09da4
1 changed files with 24 additions and 0 deletions
|
|
@ -19,13 +19,37 @@ Current implementation forward subdomains to following proxy locations:
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
|
This is subfolder configuration, use `server.conf` preset only when `default_server` not defined in your system:
|
||||||
|
|
||||||
* `ln -s /etc/yggbro/nginx/opennet.ru/yggbro/opennet.ru/server.conf /etc/nginx/sites-enabled/yggbro.opennet.ru.yggbro.opennet.ru.conf`
|
* `ln -s /etc/yggbro/nginx/opennet.ru/yggbro/opennet.ru/server.conf /etc/nginx/sites-enabled/yggbro.opennet.ru.yggbro.opennet.ru.conf`
|
||||||
|
|
||||||
|
Alternatively, add following requirements to existing `default_server`:
|
||||||
|
|
||||||
|
```
|
||||||
|
include /etc/yggbro/nginx/opennet.ru/yggbro/opennet.ru/handles/redirect.conf;
|
||||||
|
include /etc/yggbro/nginx/opennet.ru/yggbro/opennet.ru/locations.conf;
|
||||||
|
```
|
||||||
|
|
||||||
|
Test configuration and apply changes
|
||||||
|
|
||||||
* `nginx -t`
|
* `nginx -t`
|
||||||
* `service nginx reload`
|
* `service nginx reload`
|
||||||
|
|
||||||
## Uninstall
|
## Uninstall
|
||||||
|
|
||||||
|
Remove following requirements from existing `default_server`:
|
||||||
|
|
||||||
|
```
|
||||||
|
include /etc/yggbro/nginx/opennet.ru/yggbro/opennet.ru/handles/redirect.conf;
|
||||||
|
include /etc/yggbro/nginx/opennet.ru/yggbro/opennet.ru/locations.conf;
|
||||||
|
```
|
||||||
|
|
||||||
|
Remove symlink if added before:
|
||||||
|
|
||||||
* `rm /etc/nginx/sites-enabled/yggbro.opennet.ru.yggbro.opennet.ru.conf`
|
* `rm /etc/nginx/sites-enabled/yggbro.opennet.ru.yggbro.opennet.ru.conf`
|
||||||
|
|
||||||
|
Test configuration and apply changes
|
||||||
|
|
||||||
* `nginx -t`
|
* `nginx -t`
|
||||||
* `service nginx reload`
|
* `service nginx reload`
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue