Difference between revisions of "Httpd"

From Colettapedia
Jump to navigation Jump to search
Line 1: Line 1:
 
==httpd.conf==
 
==httpd.conf==
 +
===Virtual Hosts===
 +
* [https://httpd.apache.org/docs/2.4/vhosts/index.html Virtual Host documentation]
 +
* [https://httpd.apache.org/docs/2.4/vhosts/examples.html Virtual Host examples]
 +
* "The term Virtual Host refers to the practice of running more than one web site (such as company1.example.com and company2.example.com) on a single machine. Virtual hosts can be "IP-based", meaning that you have a different IP address for every web site, or "name-based", meaning that you have multiple names running on each IP address. The fact that they are running on the same physical server is not apparent to the end user."
 
===Configuring reverse proxy===
 
===Configuring reverse proxy===
 
* [https://httpd.apache.org/docs/2.4/mod/mod_proxy.html mod_proxy] - Multi-protocol proxy/gateway server
 
* [https://httpd.apache.org/docs/2.4/mod/mod_proxy.html mod_proxy] - Multi-protocol proxy/gateway server

Revision as of 14:13, 17 July 2019

httpd.conf

Virtual Hosts

  • Virtual Host documentation
  • Virtual Host examples
  • "The term Virtual Host refers to the practice of running more than one web site (such as company1.example.com and company2.example.com) on a single machine. Virtual hosts can be "IP-based", meaning that you have a different IP address for every web site, or "name-based", meaning that you have multiple names running on each IP address. The fact that they are running on the same physical server is not apparent to the end user."

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>