<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Reverse_proxy_frontend</id>
	<title>Reverse proxy frontend - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Reverse_proxy_frontend"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Reverse_proxy_frontend&amp;action=history"/>
	<updated>2026-05-06T19:49:06Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Reverse_proxy_frontend&amp;diff=5203&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Reverse_proxy_frontend&amp;diff=5203&amp;oldid=prev"/>
		<updated>2024-10-18T06:44:49Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:44, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Reverse_proxy_frontend&amp;diff=5202&amp;oldid=prev</id>
		<title>1&gt;Nadavkav: /* The tricky part */ deprecated in Moodle 3.3</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Reverse_proxy_frontend&amp;diff=5202&amp;oldid=prev"/>
		<updated>2023-05-16T09:48:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;The tricky part: &lt;/span&gt; deprecated in Moodle 3.3&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Update}} &lt;br /&gt;
A [http://en.wikipedia.org/wiki/Reverse_proxy reverse proxy] or surrogate is a proxy server that is installed in a server network. Typically, reverse proxies are used in front of Web servers. All connections coming from the Internet addressed to one of the Web servers are routed through the proxy server, which may either deal with the request itself or pass the request wholly or partially to the main web servers.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
* You need ssl for authentication.&lt;br /&gt;
* You run Apache 2.2 both in the backend and the frontend.&lt;br /&gt;
* You run RHEL 5.2 Application stack 2 in the backend (php 5.2.6 + mysql 5 + apache 2.2.10).&lt;br /&gt;
* You run Apache 2.2 as the frontend in any modern OS using trainer.moodle.org as url (My frontend apache runs on Windows 2003).&lt;br /&gt;
* You installed moodle 1.9 to run from &amp;quot;/&amp;quot; the internal http server with SSL support on 10.1.1.24.&lt;br /&gt;
* You have an external facing apache using SSL.&lt;br /&gt;
== Configuration for the external server ==&lt;br /&gt;
http.conf&lt;br /&gt;
 (snip)&lt;br /&gt;
 ProxyPass / http://10.1.1.24/&lt;br /&gt;
 ProxyPassReverse / http://10.1.1.24/&lt;br /&gt;
 ProxyPreserveHost On&lt;br /&gt;
 (snip)&lt;br /&gt;
 Include conf/http-ssl.conf&lt;br /&gt;
&lt;br /&gt;
http-ssl.conf&lt;br /&gt;
 (snip)&lt;br /&gt;
 ProxyPass / http://10.1.1.24/&lt;br /&gt;
 ProxyPassReverse / http://10.1.1.24/&lt;br /&gt;
 (snip)&lt;br /&gt;
== config.php ==&lt;br /&gt;
 &amp;lt;?php  /// Moodle Configuration File &lt;br /&gt;
 &lt;br /&gt;
 unset($CFG);&lt;br /&gt;
 &lt;br /&gt;
 $CFG-&amp;gt;dbtype    = &amp;#039;mysql&amp;#039;;&lt;br /&gt;
 $CFG-&amp;gt;dbhost    = &amp;#039;localhost&amp;#039;;&lt;br /&gt;
 $CFG-&amp;gt;dbname    = &amp;#039;moodle&amp;#039;;&lt;br /&gt;
 $CFG-&amp;gt;dbuser    = &amp;#039;moodleuser&amp;#039;;&lt;br /&gt;
 $CFG-&amp;gt;dbpass    = &amp;#039;XXXXXXXX&amp;#039;;&lt;br /&gt;
 $CFG-&amp;gt;dbpersist =  false;&lt;br /&gt;
 $CFG-&amp;gt;prefix    = &amp;#039;mdl_&amp;#039;;&lt;br /&gt;
 &lt;br /&gt;
 $CFG-&amp;gt;wwwroot   = &amp;#039;http://trainer.moodle.org&amp;#039;;&lt;br /&gt;
 $CFG-&amp;gt;dirroot   = &amp;#039;/var/www/moodle&amp;#039;;&lt;br /&gt;
 $CFG-&amp;gt;dataroot  = &amp;#039;/opt/moodle_data&amp;#039;;&lt;br /&gt;
 $CFG-&amp;gt;admin     = &amp;#039;admin&amp;#039;;&lt;br /&gt;
 $CFG-&amp;gt;reverseproxy = true;&lt;br /&gt;
 $CFG-&amp;gt;sslproxy  = 1;&lt;br /&gt;
&lt;br /&gt;
 $CFG-&amp;gt;directorypermissions = 00777;  // try 02777 on a server in Safe Mode&lt;br /&gt;
 &lt;br /&gt;
 require_once(&amp;quot;$CFG-&amp;gt;dirroot/lib/setup.php&amp;quot;);&lt;br /&gt;
 // MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,&lt;br /&gt;
 // RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.&lt;br /&gt;
 ?&amp;gt;&lt;/div&gt;</summary>
		<author><name>1&gt;Nadavkav</name></author>
	</entry>
</feed>