Submitted by kindnation on Wed, 05/28/2014 - 06:29
Under Server Templates > Virtual Server Creation > Automatically create alias domain, I tried creating a virtual server, but it's not creating the alias domain. Any chance of supporting Nginx?
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Wed, 05/28/2014 - 12:53 Comment #1
That should just work - does it shown any error, or does the alias domain just not get created? Or does it get created, but without Nginx enabled?
Submitted by kindnation on Wed, 05/28/2014 - 23:43 Comment #2
Hi Jamie,
The alias domain does not get created and there's also no virtual hosts created under Nginx. Below is the example output during creation:
Creating administration group wptraveler.com ..
.. done
Creating administration user wptraveler.com ..
.. done
Creating aliases for administration user ..
.. done
Adding administration user to groups ..
.. done
Creating home directory ..
.. done
Creating mailbox for administration user ..
.. done
Adding to email domains list ..
.. done
Adding default mail aliases ..
.. done
Creating Nginx virtual host ..
.. done
Starting PHP FastCGI server ..
.. done
Adding webserver user www-data to server's group ..
.. done
Creating MySQL login ..
.. done
Creating MySQL database wptraveler_com ..
.. done
Setting up spam filtering ..
.. done
Setting up virus filtering ..
.. done
Creating Webmin user ..
.. done
Applying Nginx configuration ..
.. done
Re-loading Webmin ..
.. done
Saving server details ..
.. done
Creating alias server wptraveler.com.chumsai.net ..
Adding to email domains list ..
.. done
Saving server details ..
.. done
Updating Webmin user ..
.. done
Re-loading Webmin ..
.. done
Post-creation command failed : sed: can't read /etc/nginx/sites-available/wptraveler.com.chumsai.net: No such file or directory
.. done
Installing third-party scripts ..
Installing chumsaipress version 3.9.1 ..
Configuring webserver PHP settings ..
.. already done.
Creating MySQL database wptraveler.com_wp ..
.. done
.. done. WordPress installation complete. It can be accessed at http://wptraveler.com/wp-admin/install.php.
.. done
Applying Nginx configuration ..
.. done
You can see the "Post-creation command failed : sed: can't read /etc/nginx/sites-available/wptraveler.com.chumsai.net: No such file or directory" failed because the alias server never gets created.
Do you want root access to take a look?
Submitted by JamieCameron on Thu, 05/29/2014 - 01:30 Comment #3
Ok, I see the bug now - this will be fixed in the next Virtualmin release.
Submitted by kindnation on Thu, 05/29/2014 - 01:51 Comment #4
thanks Jamie
Submitted by ichi on Fri, 01/31/2020 - 14:15 Comment #5
So sorry, I just move on Nginx from Apache. I encountered several troubles for Drupal sites, but the main issue is the creation alias domain that gives "404 Not Found nginx/1.14.2" So this is not exactly the issue reported in the thread because the alias domain is created but it doesn't show up. Also when running sudo certbot --nginx There is :Detail: Invalid response from http://ALIAS-DOMAIN/.well-known/acme-challenge/" Is there an issue ? Thanks ;-)