This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/source/_posts/2018-03-12-php-apps-subdirectory-nginx.md
Oliver Davies 0eae4c7ed0 Add post
2018-03-12 19:26:13 +00:00

1.1 KiB
Raw Blame History

title slug tags
How to put your PHP application in a subdirectory of another site with Nginx php-apps-subdirectory-nginx
nginx
php

{% block excerpt %} In January, Chris Fidao posted a video to Servers for Hackers showing how to put different PHP applications in different subdirectories and have them serving on different paths with Nginx. Ive had to do this a few times previously, and its 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.

https://serversforhackers.com/c/nginx-php-in-subdirectory {% endblock %}