From 0eae4c7ed0bde31e8fcecbbb499c3b7e178ab8c4 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 12 Mar 2018 19:26:13 +0000 Subject: [PATCH] Add post --- .../2018-03-12-php-apps-subdirectory-nginx.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 source/_posts/2018-03-12-php-apps-subdirectory-nginx.md diff --git a/source/_posts/2018-03-12-php-apps-subdirectory-nginx.md b/source/_posts/2018-03-12-php-apps-subdirectory-nginx.md new file mode 100644 index 00000000..2e46a885 --- /dev/null +++ b/source/_posts/2018-03-12-php-apps-subdirectory-nginx.md @@ -0,0 +1,23 @@ +--- +title: How to put your PHP application in a subdirectory of another site with Nginx +slug: php-apps-subdirectory-nginx +tags: + - nginx + - php +--- +{% block excerpt %} +In January, [Chris Fidao][0] posted a video to [Servers for Hackers][1] showing how to put different PHP applications in different subdirectories and have them serving on different paths with Nginx. I’ve had to do this a few times previously, and it’s great to have this video as a reference. +{% endblock %} + +{% block content %} +> In this video, we work through how to put your PHP application in a subdirectory of another site. +> +> For example, we may have an application running at example.org but need a second application running at example.org/blog. +> +> This feels like it should be simple, but it turns out to be more complex and fraught with confusing Nginx configurations! To make matter worse (or, perhaps, to illustrate this point), a quick Google search reveals a TON of confusing, non-working examples. + + +{% endblock %} + +[0]: https://twitter.com/fideloper +[1]: https://serversforhackers.com