nginx realip problem and shared ip problem

messiaah

Verified User
Joined
Jan 25, 2009
Messages
16
i have installed nginx as proxy to apache on centos directadmin server using this guide http://blog.lowkey.net.my/2011/07/directadmin-nginxreverse-proxy/
.everything works fine except real ip is not getting displayed despite installing the mod_rpaf and making the changes in apache config


another problem i have many domains sharing the same ip which used to work fine with apache but now those domains i get 403 forbidden error

and when i restart apache i get this error in ssh

Starting httpd: [warn] VirtualHost xx.xx.xx.xx:8081 overlaps with VirtualHost xx.xx.xx.xx:8081, the first has precedence, perhaps you need a NameVirtualHost directive

any help would be appreciated by looking at the configuration i have made and changes that need to be done from the nginx tutorial mentioned
 
nginx is not a supported webserver for directadmin. You will have to hire someone.
 
Hello,

Nginx, as well as nginx+apache, has not that much to do with Directadmin. Officially Directadmin does not support NGINX, as far as I know. Nevertheless I'd like to help you, so I'm available here and ready to give you a commerce service to fix your issue.

p.s. as a hint (and my guess), you might need to update /etc/httpd/conf/ips.conf
 
an update i sorted the realip problem . i know its not supported by directadmin but someone can just look at the tutorial and guide me to the solution
 
thanks a lot zeiter for the hint i sorted the problem :) .maybe i will post a step by step guide now for those who cannot afford and willing to do themselves
 
If you upgrade to Apache 2.4, you'll notice that mod_rpaf is broken. I tried fixing it - got it compile, but it was still mostly useless.

HOWEVER, note that Apache 2.4 ships with mod_remoteip, which simply does exactly the same except that it's a core Apache module now. :)
 
thanks a lot zeiter for the hint i sorted the problem :) .maybe i will post a step by step guide now for those who cannot afford and willing to do themselves

Note, you should not modify /etc/httpd/conf/ips.conf directly. You need to update it's template, and re-generate the file.
 
Back
Top