unknown directive "flv" in xx

I did, once from plugin and once from ssh.
I'll play with this issue tomorrow, on apache only for now, want to make sure those deleted files don't reappear first.
 
ok those custom files did not get recreated this time, not sure why they failed to delete for me last few times but deleting through ssh seems to have worked.

still having the issue with
nginx: [emerg] unexpected end of file, expecting ";" or "}" in /etc/nginx/directadmin-ips.conf:62

wasn't sure if this was due to nginx proxy so today I tried building as JUST nginx and same issue.


going to trry a build all from ssh and see if that works.

this is the file in error and there is no line 62 and I have tried the ./build rewrite_confs too.
I replaced leading part of my server ip with MY.IP here

# Auto generated apache config file by DirectAdmin version 1.45.4
# Modifying this file is not recommended as any changes you make will be
# overwritten when you add/remove ip's through DirectAdmin.

<VirtualHost MY.IP..115:80>
ServerName shared.domain
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /home/admin/domains/sharedip
SuexecUserGroup admin admin
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

<VirtualHost MY.IP..115:443>
SSLEngine on
SSLCertificateFile /etc/nginx/ssl.crt/server.crt
SSLCertificateKeyFile /etc/nginx/ssl.key/server.key
ServerName shared.domain
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /home/admin/domains/sharedip
SuexecUserGroup admin admin
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

<VirtualHost MY.IP..116:80>
ServerName shared.domain
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /home/admin/domains/sharedip
SuexecUserGroup admin admin
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

<VirtualHost MY.IP..116:443>
SSLEngine on
SSLCertificateFile /etc/nginx/ssl.crt/server.crt
SSLCertificateKeyFile /etc/nginx/ssl.key/server.key
ServerName shared.domain
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /home/admin/domains/sharedip
SuexecUserGroup admin admin
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

<VirtualHost MY.IP..118:80>
ServerName shared.domain
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /home/admin/domains/sharedip
SuexecUserGroup admin admin
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

<VirtualHost MY.IP..118:443>
SSLEngine on
SSLCertificateFile /etc/nginx/ssl.crt/server.crt
SSLCertificateKeyFile /etc/nginx/ssl.key/server.key
ServerName shared.domain
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /home/admin/domains/sharedip
SuexecUserGroup admin admin
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>
 
Last edited:
heres the problem, I saved files from a build last week that was ok.

today when building nginx fresh (proxy or full) this is the directadmin_ips.conf file generated

# Auto generated apache config file by DirectAdmin version 1.45.4
# Modifying this file is not recommended as any changes you make will be
# overwritten when you add/remove ip's through DirectAdmin.

<VirtualHost MY.IP.115:80>
ServerName shared.domain
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /home/admin/domains/sharedip
SuexecUserGroup admin admin
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

<VirtualHost MY.IP.115:443>
SSLEngine on
SSLCertificateFile /etc/nginx/ssl.crt/server.crt
SSLCertificateKeyFile /etc/nginx/ssl.key/server.key
ServerName shared.domain
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /home/admin/domains/sharedip
SuexecUserGroup admin admin
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

<VirtualHost MY.IP.116:80>
ServerName shared.domain
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /home/admin/domains/sharedip
SuexecUserGroup admin admin
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

<VirtualHost MY.IP.116:443>
SSLEngine on
SSLCertificateFile /etc/nginx/ssl.crt/server.crt
SSLCertificateKeyFile /etc/nginx/ssl.key/server.key
ServerName shared.domain
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /home/admin/domains/sharedip
SuexecUserGroup admin admin
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

<VirtualHost MY.IP.118:80>
ServerName shared.domain
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /home/admin/domains/sharedip
SuexecUserGroup admin admin
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

<VirtualHost MY.IP.118:443>
SSLEngine on
SSLCertificateFile /etc/nginx/ssl.crt/server.crt
SSLCertificateKeyFile /etc/nginx/ssl.key/server.key
ServerName shared.domain
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /home/admin/domains/sharedip
SuexecUserGroup admin admin
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>


however compare it to the one that the system build about 10 days ago

# Auto generated apache config file by DirectAdmin version 1.45.4
# Modifying this file is not recommended as any changes you make will be
# overwritten when you add/remove ip's through DirectAdmin.

server {
listen MY.IP.115:80 default_server;
server_name _;
root /home/admin/domains/sharedip;
index index.html index.htm index.php;

include /usr/local/directadmin/data/users/admin/nginx_php.conf;

# deny access to apache .htaccess files
location ~ /\.ht
{
deny all;
}

include /etc/nginx/webapps.conf;
}

server {
listen MY.IP.115:443 default_server;
server_name _;

ssl on;
ssl_certificate /etc/nginx/ssl.crt/server.crt.combined;
ssl_certificate_key /etc/nginx/ssl.key/server.key;

ssl_session_cache shared:SSL:10m;
ssl_session_timeout 5m;

ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

root /home/admin/domains/sharedip;
index index.html index.htm index.php;

include /usr/local/directadmin/data/users/admin/nginx_php.conf;

# deny access to apache .htaccess files
location ~ /\.ht
{
deny all;
}

include /etc/nginx/webapps.conf;
}




server {
listen MY.IP.116:80 default_server;
server_name _;
root /home/admin/domains/sharedip;
index index.html index.htm index.php;

include /usr/local/directadmin/data/users/admin/nginx_php.conf;

# deny access to apache .htaccess files
location ~ /\.ht
{
deny all;
}

include /etc/nginx/webapps.conf;
}

server {
listen MY.IP.116:443 default_server;
server_name _;

ssl on;
ssl_certificate /etc/nginx/ssl.crt/server.crt.combined;
ssl_certificate_key /etc/nginx/ssl.key/server.key;

ssl_session_cache shared:SSL:10m;
ssl_session_timeout 5m;

ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

root /home/admin/domains/sharedip;
index index.html index.htm index.php;

include /usr/local/directadmin/data/users/admin/nginx_php.conf;

# deny access to apache .htaccess files
location ~ /\.ht
{
deny all;
}

include /etc/nginx/webapps.conf;
}




server {
listen MY.IP.118:80 default_server;
server_name _;
root /home/admin/domains/sharedip;
index index.html index.htm index.php;

include /usr/local/directadmin/data/users/admin/nginx_php.conf;

# deny access to apache .htaccess files
location ~ /\.ht
{
deny all;
}

include /etc/nginx/webapps.conf;
}

server {
listen MY.IP.118:443 default_server;
server_name _;

ssl on;
ssl_certificate /etc/nginx/ssl.crt/server.crt.combined;
ssl_certificate_key /etc/nginx/ssl.key/server.key;

ssl_session_cache shared:SSL:10m;
ssl_session_timeout 5m;

ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

root /home/admin/domains/sharedip;
index index.html index.htm index.php;

include /usr/local/directadmin/data/users/admin/nginx_php.conf;

# deny access to apache .htaccess files
location ~ /\.ht
{
deny all;
}

include /etc/nginx/webapps.conf;
}

theres a lot of differences.
the new file is using <VirtualHost blocks while older one used server { blocks

presently it looks like ngix is trying to use httpd terminology on the conf file
 
Now your directadmin_ips.conf looks like Apache's config not nginx's one.

Probably remove all nginx/apache templates from /usr/local/directadmin/data/templates and /usr/local/directadmin/data/templates/custom? remove /usr/local/directadmin/custombuild/ ? And reinstall CustomBuild and Directadmin templates?
 
already did all that.
before I started today I deleted every nginx item from server.
thinking this may be a directadmin RC1 bug so reported in thread. looks like it may be issue with ability to add custom nginx edits when running nginx as proxy.
 
will be sending John access info today to see whats happening, really odd.
suspect its related to the last DA update, hope to know fir sure sometime today.
 
I was able to do the ./build rewrite_confs with nginx, and did get the same result.
The binaries were from August 31st.
I updated to the latest pre-release binaries, and ./build rewrite_confs no longer did the same thing.
So.. I'm assuming I've already fixed whatever it was that was wrong.. or the pre-release update overwrote something that was not correct... not sure.

If you run into the same issue again, let us know.

John
 
Thanks John,
I wondered about that but figured safest thing was to let you see what i was seeing.
appreciate the help everyone.
 
Back
Top