Instaling nginx what did i miss?

eka

Verified User
Joined
Apr 9, 2015
Messages
22
Installing Centos 6 + Directadmin 1.6 provided by my host

changing direct admin to custom build 2.
http://help.directadmin.com/item.php?id=555

# cd /usr/local/directadmin
# mv custombuild custombuild_1.x
# wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
# tar xvzf custombuild.tar.gz
# cd custombuild
# ./build

# ./build all d
# ./build rewrite_confs

Connecting to DirectAdmin by admin acc
User Level>Domain Administration>Add Another Domain

adding domain
message get:

Details

User added to named.conf file successfully
Added record server.mydomain.com. A MYIP to satisfy mydomain.com. NS server.mydomain.com.
Please check the zone for mydomain.com to ensure the nameserver A records are correct.

Domain Created Successfully

testing on a browser: opening website http://mydomain.com

Welcome to the home of mydomain.com
To change this page, upload your website into the public_html directory

all good.

Next step installing NginX
http://help.directadmin.com/item.php?id=556

# ./build set webserver nginx
# ./build set php1_mode php-fpm
# ./build update
# ./build all d
# ./build rewrite_confs

Affter all installs restarting server.
Directadmin>Admin Level>System Information:

DirectAdmin 1.47.0 Running
Exim 4.82.1 Running
MySQL 5.6.22 Running
Named 9.8.2rc1 Running
sshd Running
Nginx Running
dovecot 2.2.16 Running
pure-ftpd 1.0.37 Running
Php 5.5.23 Installed

testing on a browser: opening website http://mydomain.com
Nginx is functioning normally

And from here i dont know what to do...
 
Ok by this tutorial

http://help.directadmin.com/item.php?id=558

in folder
/usr/local/directadmin/data/templates

should be file(s)
nginx_*.conf

but what if there is none?
by doing this:
# cd /usr/local/directadmin/data/templates/custom
# cp ../nginx_*.conf .
answer: cp: cannot stat `../nginx_*.conf': No such file or directory

Directadmin now comes to a directory: /var/www/html/

I could change it to /home/|USER|/domains/|DOMAIN|/public_html

But there is no file nginx.*.conf

what do i miss here?
 
Back
Top