<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://wiki.webko.net.ua/index.php?action=history&amp;feed=atom&amp;title=NGINX_%2B_Apache_on_Directadmin</id>
	<title>NGINX + Apache on Directadmin - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.webko.net.ua/index.php?action=history&amp;feed=atom&amp;title=NGINX_%2B_Apache_on_Directadmin"/>
	<link rel="alternate" type="text/html" href="https://wiki.webko.net.ua/index.php?title=NGINX_%2B_Apache_on_Directadmin&amp;action=history"/>
	<updated>2026-05-21T12:52:13Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.webko.net.ua/index.php?title=NGINX_%2B_Apache_on_Directadmin&amp;diff=102&amp;oldid=prev</id>
		<title>Sol: Новая страница: «Custombuild 2 allows us to have a reverse-proxy NGINX + Apache on Directadmin powered server without a need for any 3rd party scripts or plugins, addons. That's q…»</title>
		<link rel="alternate" type="text/html" href="https://wiki.webko.net.ua/index.php?title=NGINX_%2B_Apache_on_Directadmin&amp;diff=102&amp;oldid=prev"/>
		<updated>2015-04-21T08:56:42Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «Custombuild 2 allows us to have a reverse-proxy NGINX + Apache on Directadmin powered server without a need for any 3rd party scripts or plugins, addons. That&amp;#039;s q…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Custombuild 2 allows us to have a reverse-proxy NGINX + Apache on Directadmin powered server without a need for any 3rd party scripts or plugins, addons. That's quite easy to start using it.&lt;br /&gt;
&lt;br /&gt;
== CustomBuild 2.x version ==&lt;br /&gt;
&lt;br /&gt;
First of all make sure you've got custombuild 2:&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
 cd /usr/local/directadmin/custombuild&lt;br /&gt;
 ./build version&lt;br /&gt;
&lt;br /&gt;
You should see an output similar to the following:&lt;br /&gt;
&lt;br /&gt;
 [root@server custombuild]# ./build version&lt;br /&gt;
 2.0.0-RC7 (rev: 863)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If it differes much then you've got custombuild 1.x&lt;br /&gt;
&lt;br /&gt;
== Directadmin version ==&lt;br /&gt;
&lt;br /&gt;
To check directadmin version run this code:&lt;br /&gt;
&lt;br /&gt;
 [root@server custombuild]# /usr/local/directadmin/directadmin v&lt;br /&gt;
 Version: DirectAdmin v.1.45.4&lt;br /&gt;
&lt;br /&gt;
Make sure to have version of directadmin no less than 1.45.2 otherwise the things won't work.&lt;br /&gt;
&lt;br /&gt;
== Custombuild 2.x: NGINX + Apache ==&lt;br /&gt;
&lt;br /&gt;
Run this code to build nginx + apache with custombuild:&lt;br /&gt;
&lt;br /&gt;
 cd /usr/local/directamin/custombuild&lt;br /&gt;
 ./build update&lt;br /&gt;
 ./build update_da&lt;br /&gt;
 ./build set webserver nginx_apache&lt;br /&gt;
 ./build nginx_apache&lt;br /&gt;
 ./build rewrite_confs&lt;br /&gt;
&lt;br /&gt;
That's it. Have fun with it.&lt;br /&gt;
&lt;br /&gt;
== UPDATE #1: Real IP on Apache`s server-status page (*** ACTUAL VERSION OF APACHE SHOULD HAVE IT FIXED ALREADY ***) ==&lt;br /&gt;
&lt;br /&gt;
Please do not follow this update #1 if you have the latest apache version with a patch that fixes the issue!&lt;br /&gt;
&lt;br /&gt;
Apache gets real IPs, you may see it in $_SERVER with PHP or in apache logs; but it shows incorrect IP in apache's server status.&lt;br /&gt;
&lt;br /&gt;
Before to start, please make sure to have unzip installed on your server:&lt;br /&gt;
&lt;br /&gt;
'''On RHEL/CentOS'''&lt;br /&gt;
&lt;br /&gt;
 yum install unzip&lt;br /&gt;
&lt;br /&gt;
'''On Debian/Ubuntu'''&lt;br /&gt;
&lt;br /&gt;
 apt-get install unzip&lt;br /&gt;
&lt;br /&gt;
To get real IPs instead 127.0.0.1 on Apache`s server-status page you need to install mod_rpaf, as remoteip is buggy in this case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cd /usr/local/src&lt;br /&gt;
 wget https://github.com/y-ken/mod_rpaf/archive/master.zip&lt;br /&gt;
 unzip master.zip&lt;br /&gt;
 cd mod_rpaf-master&lt;br /&gt;
 /bin/sed -i &amp;quot;s/remote_/client_/g&amp;quot; mod_rpaf-2.0.c&lt;br /&gt;
 make &amp;amp;&amp;amp; make install&lt;br /&gt;
&lt;br /&gt;
and insert following instructions:&lt;br /&gt;
&lt;br /&gt;
 LoadModule rpaf_module      /usr/lib/apache/mod_rpaf-2.0.so&lt;br /&gt;
 &amp;lt;IfModule mod_rpaf-2.0.c&amp;gt;&lt;br /&gt;
     RPAFenable On&lt;br /&gt;
     RPAFproxy_ips 127.0.0.1&lt;br /&gt;
     RPAFsethostname On&lt;br /&gt;
     RPAFheader X-Client-IP&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
into '''/etc/httpd/conf/extra/httpd-includes.conf''' and restart apache. &lt;br /&gt;
&lt;br /&gt;
[[Категория:DirectAdmin]]&lt;/div&gt;</summary>
		<author><name>Sol</name></author>
	</entry>
</feed>