Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


apache_module_mod_proxy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
apache_module_mod_proxy [2023/07/11 19:42] wikiadminapache_module_mod_proxy [2023/07/11 20:30] (current) wikiadmin
Line 14: Line 14:
 #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
 </code> </code>
 +
 +Instead, maybe enable the appropriate apache proxy modules, and restart apache server:
 +
 +<code>
 +sudo a2enmod proxy
 +
 +sudo a2enmod proxy_http
 +
 +sudo systemctl restart apache2
 +</code>
 +
  
 Example of Reverse Proxy/Gateway in apache virtual hosts file. Example of Reverse Proxy/Gateway in apache virtual hosts file.
Line 28: Line 39:
 [[https://assets.ubuntu.com/v1/09200365-ubuntu-server-guide-2023-07-11.pdf]] [[https://assets.ubuntu.com/v1/09200365-ubuntu-server-guide-2023-07-11.pdf]]
  
-<code>+
 Configure apache2 Configure apache2
 +
 Apache2 is configured by placing directives in plain text configuration files in /etc/apache2/. These directives are Apache2 is configured by placing directives in plain text configuration files in /etc/apache2/. These directives are
 +
 separated between the following files and directories: separated between the following files and directories:
-244+ 
 Files Files
 +
 • apache2.conf • apache2.conf
 The main Apache2 configuration file. Contains settings that are global to Apache2. The main Apache2 configuration file. Contains settings that are global to Apache2.
Line 40: Line 55:
 releases of Ubuntu, all configuration options have been moved to apache2.conf and the below referenced releases of Ubuntu, all configuration options have been moved to apache2.conf and the below referenced
 directories and httpd.conf no longer exists. directories and httpd.conf no longer exists.
 +
 • envvars • envvars
 File where Apache2 environment variables are set. File where Apache2 environment variables are set.
 +
 • magic • magic
 Instructions for determining MIME type based on the first few bytes of a file. Instructions for determining MIME type based on the first few bytes of a file.
 +
 • ports.conf • ports.conf
 Houses the directives that determine which TCP ports Apache2 is listening on Houses the directives that determine which TCP ports Apache2 is listening on
  
-</code>+ 
 +**Tutorial - Running a Reverse Proxy in Apache** 
 + 
 +[[http://www.apachetutor.org/admin/reverseproxies]] 
 + 
 +**Virtual Host Examples** 
 + 
 +[[https://httpd.apache.org/docs/2.4/vhosts/examples.html]]
apache_module_mod_proxy.1689104544.txt.gz · Last modified: 2023/07/11 19:42 by wikiadmin