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 HTTP configuration #88

Open
noorbakerally opened this issue Dec 30, 2017 · 3 comments
Open

Apache HTTP configuration #88

noorbakerally opened this issue Dec 30, 2017 · 3 comments

Comments

@noorbakerally
Copy link

noorbakerally commented Dec 30, 2017

is it possible to provide an Apache HTTP configuration that works for a sample domain, below is my configuration:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so


<VirtualHost *:80>
        ServerName ldpgold.example.com
        SSLProxyEngine On
        RequestHeader set Front-End-Https "On"
        ProxyPassMatch ^/(.*)$ https://localhost:6511/$1
</VirtualHost>

When going on http://ldpgold.example.com, it is providing me with a response using original URLs for example, the Link header in the response is Link: <https://localhost:6511/,acl>; rel="acl", <https://localhost:6511/,meta>; rel="meta", <http://www.w3.org/ns/ldp#BasicContainer>; rel="type", <http://www.w3.org/ns/ldp#Resource>; rel="type", <https://localhost:6511/,meta>; rel="meta"

@stain
Copy link

stain commented Jan 9, 2018

I think instead of the match-all ProxyPassMatch the above should work:

ProxyPass / https://localhost:6511/
ProxyPassReverse / https://localhost:6511/

Note that ProxyPassReverse only rewrites certain HTTP headers, not the body -- not sure if Link would be included.

@melvincarvalho
Copy link
Member

FYI: some discussion here https://gitter.im/linkeddata/chat?at=5a54c72fb48e8c3566bba507

@melvincarvalho
Copy link
Member

I will update the wiki to reflect this information

https://github.com/solid/node-solid-server/wiki/Running-Solid-behind-a-reverse-proxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants