I think mitmproxy can do this for you, at least on linux and os-x. I have not tried it myself, but this question seems to show how this is done. However, this is not a trivial program.
However, there are other approaches that I have used:
The first one is the easiest, create a DNS record for development.mydomain.com that points to 127.0.0.1 and one certificate for the (sub) domain in which you manage DNS. Distribute this certificate to all your developers. They still need to configure SSL, but they no longer need to create certificates. This has the added benefit that everyone develops against https://develop.mydomain.com , which allows them to share the configuration. For bonus points, create a DNS record for * .develop.mydomain.com and a wildcard certificate, and your developers may have different sites (for example, https://project1.develop.mydomain.com and https: //project2.develop.mydomain. com ) on the local computer. (Unlike what the Internet sometimes tells you, name-based virtual hosting works fine with SSL, as long as the certificate is valid for all named hosts). Since the domain is the same for everyone, you might consider getting a valid wildcard certificate to get rid of the warnings.
Unlike the solutions below, it works even outside the office network, which can make a difference when people work from home or at the client.
Based on this, you can also create DNS records for the internal IP code of the development machines (if fixed). This adds some work, but it means that the current work of the developer can be achieved by other users on the local network, which can be very convenient for demonstration, testing on mobile devices, etc.
Another option is to configure one machine on a proxy for all your developers. Create a DNS record pointing to the internal IP of this field, to something like * .develop.mydomain.com, the corresponding wildcard certificate, and configure this field once with the correct certificate. Now you can create a virtual host for each proxy server, and again all sites will be accessible throughout the local network, but this requires the developer to have fixed IP addresses (or host names added to DNS via DHCP). Combined with the ability of apache to include all files in a directory, the configuration makes it trivial to create a script that adds a new site based on the template. All you have to do is write a new file based on the requested subdomain plus destination and reload the apache configuration. This means that something like a simple PHP script can do what you want to do.