-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE]How to configure https? #196
Comments
@qhtml5 here should be the first step a good implementation to handle the dns request properly without any /etc/hosts adjustments here we can take a look at dnsmasq when this is implemented correctly you can create ssl certificates properly (without any ssl warnings) |
Hi all, |
@MrOffline77 in my opinion a local dev en should be as close to an production environment so you can test you applications with ask enabled |
Hi, @MrOffline77 since i dit not received any feedback i have made an implementation of this that is workable with dnsmasq active your local system wil listen on the *.test TLD without any need of changing /etc/hosts |
For me I do a lot of API integrations for work and when testing integrations I can use
I found that this desire has been around for a while in #40 and #68 but it appears it has been abandoned. I plan to modify my local LAMP stack (built with this repo) using, Setup an Apache, PHP, and HTTPS development environment with Docker, for now. I think it would be a great addition to have this feature built-in to the LAMP stack. |
@blizzardengle to implement https good you can take a look at dnsmask this will allow you to use a TLD like yourapplication.test with this implemented you can easy integrate https to your project |
@alainseys thank you for the suggestion. I followed Setup an Apache, PHP, and HTTPS development environment with Docker (with several modifications) and got I personally prefer this method because adding a new TLD like I'll post a new comment here soon with a link to a PR that adds this feature to sprintcube's |
@alainseys just created the PR, see above comment. Since there is a little configuration involved here is a copy of the PR message: This PR ( #208 ) adds support for SSL (HTTPS) in the LAMP server. It was designed to add simple HTTPS on LocalhostTo use
HTTPS with any Domain
Notable Additions by this PR
|
Speaking for myself, I added support for this with PR #208 because I need it for work. I do a lot of integrations and a big requirement is an This also allows me to test applications locally closer to what their production deployments would be like. I will admit that some services block Since adding support for any domain name besides For anyone following this or stumbling on this later, here is a summary of what was added: SSL (HTTPS)Support for Notice: For every non-localhost domain name you wish to use 1) HTTPS on LocalhostTo enable
Done. Now any time you turn on your LAMP container 2) HTTPS on many Domains with a Single CertificateIf you would like to use normal domain names for local testing, and need
Done. Since you combined all the domain names into a single certificate, the vhost file will support your setup without needing to modify it further. You could add domain specific rules if you wish however. Now any time you turn on your LAMP container 3) HTTPS on many Domain with Multiple CertificatesIf you would like your local testing environment to exactly match your production, and need
Done. The LAMP container will auto pull in any SSL certificates in |
@blizzardengle |
https how to configure certs location settings
The text was updated successfully, but these errors were encountered: