zEitEr
Super Moderator
Right, it was my mistake in cd command, now it should be fixed.
That's a normal behavior. You removed DirectAdmin original (not customized templates) with the commands given, now you should manually update DA to get them back or install DA pre-release binariesPlease check for custom virtual_host2.conf templates in /usr/local/directadmin/data/templates/custom next time, but it seems you did not have them.
Right, it was my mistake in cd command, now it should be fixed.
There also was redefined:
port_80
in directadmin.conf from the previous customization, and now it's also fixed.
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.
Custombuild 2.x: NGINX + Apache
Run this code to build nginx + apache with custombuild:
Code:cd /usr/local/directamin/custombuild ./build update ./build update_da ./build set webserver nginx_apache ./build nginx_apache ./build rewrite_confs
That's it. Have fun with it.
Order Allow,Deny
Allow from all
Thanks. I see that Apache will patch the client_ip bug today. One step closer for the reverse_proxy to being a viable optionNot by me. But nginx is proxy only, that's apache who works with .htaccess and denies access if it's needed. You might be facing issue with Allow IP, Deny IP, because of this issue: http://forum.directadmin.com/showthread.php?t=49641
cd /usr/local/directadmin/custombuild
./build update
./build apache
2014/09/17 09:55:17 [error] 62888#0: *27919 openat() "/home/znak/domains/userdomain.com/public_html/administrator/templates/khepri/js/menu.js.gz" failed (13: Permission denied), client: 46.175.239.112, server: userdomain.com, request: "GET /administrator/templates/khepri/js/menu.js HTTP/1.1", upstream: "http://37.28.155.253:8080/administrator/templates/khepri/js/menu.js", host: "userdomain.com", referrer: "http://userdomain.com/administrator/index.php?option=com_config"
2014/09/17 09:55:17 [error] 62888#0: *27919 openat() "/home/znak/domains/userdomain.com/public_html/administrator/templates/khepri/js/menu.js" failed (13: Permission denied), client: 46.175.239.112, server: userdomain.com, request: "GET /administrator/templates/khepri/js/menu.js HTTP/1.1", upstream: "http://37.28.155.253:8080/administrator/templates/khepri/js/menu.js", host: "userdomain.com", referrer: "http://userdomain.com/administrator/index.php?option=com_config"
2014/09/17 09:55:17 [error] 62888#0: *27924 openat() "/home/znak/domains/userdomain.com/public_html/administrator/components/com_aicontactsafe/images/aicontactsafe_icon.gif.gz" failed (13: Permission denied), client: 46.175.239.112, server: userdomain.com, request: "GET /administrator/components/com_aicontactsafe/images/aicontactsafe_icon.gif HTTP/1.1", upstream: "http://37.28.155.253:8080/administrator/components/com_aicontactsafe/images/aicontactsafe_icon.gif", host: "userdomain.com", referrer: "http://userdomain.com/administrator/index.php?option=com_config"
2014/09/17 09:55:17 [error] 62888#0: *27924 openat() "/home/znak/domains/userdomain.com/public_html/administrator/components/com_aicontactsafe/images/aicontactsafe_icon.gif" failed (13: Permission denied), client: 46.175.239.112, server: userdomain.com, request: "GET /administrator/components/com_aicontactsafe/images/aicontactsafe_icon.gif HTTP/1.1", upstream: "http://37.28.155.253:8080/administrator/components/com_aicontactsafe/images/aicontactsafe_icon.gif", host: "userdomain.com", referrer: "http://userdomain.com/administrator/index.php?option=com_config"
root@server:/# ls -l /home/znak/domains/znak-osk.pl/public_html/index.php
-rw-r--r-- 1 znak znak 2052 mar 8 2012 /home/znak/domains/znak-osk.pl/public_html/index.php
root@server:/# ls -l /home/znak/domains/znak-osk.pl|grep public_html
drwxr-xr-x 17 znak znak 4096 wrz 17 09:25 public_html
root@server:/# ls -l /home/znak|grep domains
drwx--x--x 3 znak znak 4096 mar 8 2012 domains
lrwxrwxrwx 1 znak znak 33 sty 3 2014 public_html -> ./domains/znak-osk.pl/public_html