...
Under the hood the plugin checks X-Forwarded-Host
header to determine if request made through pages domain.
Apache example configuration:
Here is example of virtual host configuration for the Apache http server:
Code Block | ||
---|---|---|
| ||
<VirtualHost *:80> ServerName bitbucket-pages.local ProxyRequests Off ProxyVia Off <Proxy *> Require all granted </Proxy> ProxyPass /pages http://localhost:7990/bitbucket/pages ProxyPassReverse /pages http://localhost:7990/bitbucket/pages </VirtualHost> |
Nginx example configuration:
Code Block |
---|
worker_processes 1; events { worker_connections 1024; } http { server { listen 8080; server_name bitbucket-pages.local; location /pages/ { proxy_pass http://localhost:7990/bitbucket/pages/; proxy_set_header X-Forwarded-Host $host; } } } |