I compiled Nginx with the RTMP module on a Debian system and installed webmin-virtualmin-nginx and webmin-virtualmin-nginx-ssl.
Removed Apache from System Settings > Features and Plugins, and selected Nginx.
The compiled Nginx gets created in /usr/local/nginx/conf/nginx.conf and /usr/local/nginx/sbin/nginx so I changed the default /etc/nginx directories. Had to created a nginx.service in /lib/systemd/system/nginx.service with the appropriate directories.
But I didn’t know what to do about the nginx/sites-available and nginx/sites-enabled. Are they under /home/virtual-server/? or?
In any case, does anyone know how and where do I modify the directories that I missed?
File or directory for new virtual hosts |None (add to main config file) * /etc/nginx/sites-available| Directory for links to new virtual host files |None * /etc/nginx/sites-enabled|
Setting up spam filtering …
… Spam filtering failed! : Failed to open /etc/nginx/sites-available for writing : No such file or directory at /usr/share/webmin/web-lib-funcs.pl line 1496.
Setting up virus filtering …
… Virus filtering failed! : Failed to open /etc/nginx/sites-available for writing : No such file or directory at /usr/share/webmin/web-lib-funcs.pl line 1496.
Creating SSL certificate and private key …
Adding SSL to Nginx virtual host …
… Nginx SSL website failed! : virtualmin-nginx-ssl::feature_setup failed : flush_file_lines called on non-loaded file /usr/local/nginx/conf/nginx.conf at /usr/share/webmin/web-lib-funcs.pl line 1496.