Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ASoTNetworks authored Aug 12, 2020
1 parent c142b48 commit 670fe6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A small PHP script that redirects to a URL based on a keyword matched against a

### NGINX

Since NGINX does not read `.htaccess` you must add a redirect into the config.
Since NGINX does not read `.htaccess` you must add a redirect into the config. (This is done for you when deploying with this [Ansible playbook](https://github.com/hyphacoop/ansibles/blob/master/deploy-hypha-sites/deploy-site-link.hypha.coop.yml))

To do so add `rewrite ^/(.*)$ /index.php?link=$1 last;` at the last line of the `location / {` block. For example:

Expand All @@ -36,7 +36,7 @@ Browse to:
> https://`link.hypha.coop`/`keyword`
## Deploying
We use this Ansible playbook to configure our reverse proxy and web server vhosts which also creates the directory to store the site files.
We use this [Ansible playbook](https://github.com/hyphacoop/ansibles/blob/master/deploy-hypha-sites/deploy-site-link.hypha.coop.yml) to configure our reverse proxy and web server vhosts which also creates the directory to store the site files.

Once the playbook is done we can now deploy the site files using Travis CI with the `deploy` user's SSH key.

Expand Down

0 comments on commit 670fe6e

Please sign in to comment.