Include ProxyPreserveHost directive in Apache's proxy doc
This commit is contained in:
parent
edb4a4d9c9
commit
e7f4a03d24
1 changed files with 4 additions and 1 deletions
|
@ -19,6 +19,8 @@ The following HTTP headers are set by using the `ProxyPass` directive:
|
||||||
- `X-Forwarded-Host`
|
- `X-Forwarded-Host`
|
||||||
- `X-Forwarded-Server`
|
- `X-Forwarded-Server`
|
||||||
|
|
||||||
|
The original `SERVER_NAME` can be send to the proxied host using the `ProxyPreserveHost` directive.
|
||||||
|
|
||||||
```apache
|
```apache
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName shaarli.domain.tld
|
ServerName shaarli.domain.tld
|
||||||
|
@ -37,7 +39,8 @@ The following HTTP headers are set by using the `ProxyPass` directive:
|
||||||
CustomLog /var/log/apache2/shaarli-access.log combined
|
CustomLog /var/log/apache2/shaarli-access.log combined
|
||||||
|
|
||||||
RequestHeader set X-Forwarded-Proto "https"
|
RequestHeader set X-Forwarded-Proto "https"
|
||||||
|
ProxyPreserveHost On
|
||||||
|
|
||||||
ProxyPass / http://127.0.0.1:10080/
|
ProxyPass / http://127.0.0.1:10080/
|
||||||
ProxyPassReverse / http://127.0.0.1:10080/
|
ProxyPassReverse / http://127.0.0.1:10080/
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
Loading…
Reference in a new issue