Once Nginx support has been configured, you should be able to create virtual servers just as you would with Apache. Verify that Nginx is shown as running in the “Status” section.Go to the System Information page and click Refresh system information in the top right.If Virtualmin reports that any other features cannot be used without Apache, go back and de-select them too.Check the “Nginx website” and “Nginx SSL website” features, then click “Save”.Un-check the “Apache website”, “SSL website” and “DAV Login”, “Mailman”, “Protected web directories”, “AWstats reporting” and “Subversion repositories” features.Return to Virtualmin, and go to System Settings -> Features and Plugins.If not, click on the Module Config link and set the config and command paths correctly.Login to Virtualmin as root, and go to Webmin -> Servers -> Nginx Webserver and make sure that Nginx and its configuration files are found. Once this is done, you can configure Virtualmin to use it as follows : Install Virtualmin’s Nginx plugin with the command yum install wbm-virtualmin-nginx wbm-virtualmin-nginx-ssl (on RHEL or CentOS) or apt-get install webmin-virtualmin-nginx webmin-virtualmin-nginx-ssl (on Debian).Start the Nginx webserver with the command /etc/init.d/nginx start.Install Nginx with the command yum install nginx (on RHEL or CentOS) or apt-get install nginx (on Debian).Shut down Apache with the command /etc/init.d/httpd stop service httpd off (on RHEL or CentOS), or /etc/init.d/apache2 stop update-rc.d apache2 remove (on Debian).The steps to remove Apache and install Nginx are : Virtualmin version 3.89 or above is also required. Ideally the change should be done on a freshly installed system, running RHEL 6.0, CentOS 6.0 or Debian 6.0 or later. Switching a system from the Apache webserver (installed by default by Virtualmin) to Nginx should only be done if no virtual servers with websites have been created yet. If that is the case, then nginx is set up to run on startup, and you are all set. You may see a message like: System start/stop links for /etc/init.d/nginx already exist. Type this command into terminal: update-rc.d nginx defaults To ensure that nginx will be up after reboots, it’s best to add it to the startup. You can see a screenshot of the utilitarian nginx welcome page here When you visit your IP address page in your browser, you will see the words, “Welcome to nginx” **You can run the following command to reveal your virtual server’s IP address. You can confirm that nginx has been installed as your web server by directing your browser to your IP address. Step Three-RESULTS: Confirm That nginx Has Started To get nginx running on your VPS, type: sudo service nginx start nginx is now installed on your virtual private server. To install nginx, open terminal and type in: sudo apt-get install nginx You can see how to set that up in the Initial Server Setup Tutorial in steps 3 and 4. The steps in this tutorial require the user to have root privileges. It is suited to websites that have a large amount of static content, or virtual machines with limited memory. Nginx is a lightweight webserver that supports most of the functionality of Apache, but is faster and uses less memory.
0 Comments
Leave a Reply. |