martexx
Verified User
How does your nginx.conf for the domain look like? Post it here.
I dont have that anymore, after my solution i removed any reference to DA>nginx to prevent problems.
How does your nginx.conf for the domain look like? Post it here.
Did you remove all the files manually?
And /usr/local/directadmin/data/users/<username>/nginx.conf ?
cd /usr/local/directadmin/custombuild
./build update
./build update_da
./build set webserver nginx_apache
./build nginx_apache
./build rewrite_confs
Hello,
I have a question. I have not much experience, so maybe my question looks really stupid.
Right now I have a VPS with Centos and directadmin with appr. 25 websites (wordpress & html). Is it possible with custombuild to set NGINX as reverse-proxy by
Code:cd /usr/local/directadmin/custombuild ./build update ./build update_da ./build set webserver nginx_apache ./build nginx_apache ./build rewrite_confs
Is it possible or do I have to put manual .conf. files in each webdirectory to keep the websites running? Or would it hurt all former installations?
Thanks
cd /usr/local/directadmin/custombuild
./build update
./build update_da
./build set webserver apache
./build apache
./build rewrite_confs
Thank you very much for your answer!!
As I have not much experience, do you mean that when it goes wrong for some reason, with the code you give I go back to the original configuration and there is no chance to loose something (All the websites are online).
Kind Regards
Wow, it seems to work!! Thank you very much for your time!
All the websites seems fine, but how can I check (is there a command) if it really works as it has to?
When I type my ip the browser says: Nginx is functioning normally
Kind regards,
this problem occurs also, with relative or complete URLopenat() "/var/www/html/themes/style.css" failed (2: No such file or directory), client: 52.25.40.122, server: myserver.fr, request: "GET /themes/style.css HTTP/1.1", host: "wildcard.mydomain.com", referrer: "http://referer.fr/page.php"
2015/08/18 21:56:21 [error] 29823#0: *1568 openat() "/var/www/html/folder/logo.png" failed (2: No such file or directory), client: 81.48.162.60, server: ns1crea.hb50.fr, request: "GET /folder/logo.png HTTP/1.1", upstream: "http://87.98.217.57:8080/folder/logo.png", host: "wyz.echecs.ovh", referrer: "http://wyz.echecs.ovh/"
2015/08/18 21:56:25 [error] 29823#0: *1574 openat() "/var/www/html/folder/logo.png" failed (2: No such file or directory), client: 81.48.162.60, server: ns1crea.hb50.fr, request: "GET /folder/logo.png HTTP/1.1", upstream: "http://87.98.217.57:8080/folder/logo.png", host: "wyz.echecs.ovh"
2015/08/18 22:20:06 [error] 29819#0: *3045 openat() "/var/www/html/folder/logo.png" failed (2: No such file or directory), client: 81.48.162.60, server: ns1crea.hb50.fr, request: "GET /folder/logo.png HTTP/1.1", upstream: "http://87.98.217.57:8080/folder/logo.png", host: "wyz.echecs.ovh", referrer: "http://wyz.echecs.ovh/"
Custombuild 2.x: NGINX + Apache
Run this code to build nginx + apache with custombuild:
Code:cd /usr/local/directadmin/custombuild ./build update ./build update_da ./build set webserver nginx_apache ./build nginx_apache ./build rewrite_confs
That's it. Have fun with it.
#PHP Settings
php1_release=5.5
php1_mode=mod_php
php2_release=no
php2_mode=php-fpm
opcache=no
htscanner=no
php_ini=no
php_timezone=Asia/Tehran
php_ini_type=production
ioncube=no
zend=no
suhosin=no
x_mail_header=yes
.
.
.
.
#WEB Server Settings
webserver=nginx_apache
litespeed_serialno=trial
modsecurity=no
modsecurity_ruleset=comodo
apache_ver=2.4
apache_mpm=auto
mod_ruid2=yes
harden_symlinks_patch=yes
use_hostname_for_alias=no
redirect_host=server.riranet.com
redirect_host_https=no
Nope, same problem.
Thanks for your helpful guide. I have a question, these steps are enough to config Nginx as reverse proxy for apache?
I mean we don't need to change "php1_mode" or other options?
this is my options.confs, these setting are correct?