Difference between revisions of "Httpd"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
==httpd.conf== | ==httpd.conf== | ||
− | + | ===Configuring reverse proxy=== | |
− | + | * [https://httpd.apache.org/docs/2.4/mod/mod_proxy.html mod_proxy] - Multi-protocol proxy/gateway server | |
− | + | * rstudio.conf:<pre> | |
− | + | <VirtualHost *:80> | |
− | + | ||
− | + | <Proxy *> | |
− | + | Allow from localhost | |
− | + | </Proxy> | |
− | + | ||
− | + | ProxyPass /rstudio/ http://localhost:8787/ | |
− | + | ProxyPassReverse /rstudio/ http://localhost:8787/ | |
− | + | RedirectMatch permanent ^/rstudio$ /rstudio/ | |
− | + | ||
− | + | </VirtualHost> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | > | ||
− | |||
− | |||
− | |||
− | < | ||
− | |||
− | |||
− | |||
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> |
Revision as of 14:10, 17 July 2019
httpd.conf
Configuring reverse proxy
- mod_proxy - Multi-protocol proxy/gateway server
- rstudio.conf:
<VirtualHost *:80> <Proxy *> Allow from localhost </Proxy> ProxyPass /rstudio/ http://localhost:8787/ ProxyPassReverse /rstudio/ http://localhost:8787/ RedirectMatch permanent ^/rstudio$ /rstudio/ </VirtualHost>