Skip to content
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

Apache proxy configuration #51

Open
Ludovicis opened this issue Feb 16, 2021 · 1 comment
Open

Apache proxy configuration #51

Ludovicis opened this issue Feb 16, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@Ludovicis
Copy link

Hello,

in the readme we have only an nginx configuration for the proxy.
Can you add, please, an apache configuration for the proxy also ?

Thanks,

@makuser
Copy link

makuser commented Apr 23, 2021

<IfModule mod_ssl.c>
<VirtualHost *:443>
    ServerName fhir.domain.tld
    # This folder exists just for certbot(You may have to create it, chown and chmod it to give apache permission to read it)
    DocumentRoot /var/www/html/fhir

    ProxyPreserveHost On

    # Letsencrypt's certbot will place a file in this folder when updating/verifying certs
    # This line will tell apache to not to use the proxy for this folder.
    ProxyPass /.well_known/ !

    RequestHeader set X-Forwarded-Port "443"
    RequestHeader set X-Forwarded-Proto "https"
    ProxyPass "/" "http://127.0.0.1:9080/"
    ProxyPassReverse "/" "http://127.0.0.1:9080/"

SSLCertificateFile /etc/letsencrypt/live/fhir.domain.tld/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/fhir.domain.tld/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

@ayselafsar ayselafsar added enhancement New feature or request documentation Improvements or additions to documentation labels Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants