We can run both the apps by configuring the virtual host files. You can find the settings i used for Apache and Nginx below. Make sure you have both of your apps ready by going over the prerequisites. In my case the wordpress blog is running in PHP while the rest of the site is running on NodeJS.
What are Webservers?
A web server is a computer that runs websites. It’s a computer program that distributes web pages as they are requested by a browser. The basic objective of the web server is to store, process and deliver web pages to the users. This intercommunication is done using Hypertext Transfer Protocol (HTTP) and Hypertext Transfer Protocol Secure (HTTPS). Here are some examples of some leading Web servers.
- Apache Server
- Microsoft Internet Information Services IIS
- Lighttpd
- Nginx Web Server
- Sun Java System Web Server
- Tomcat Server
What is Apache or Apache2?
Apache is the most widely used web server software. Developed and maintained by Apache Software Foundation, Apache is an open source software available for free. It runs on 67% of all web servers in the world. It is fast, reliable, and secure. It can be highly customized to meet the needs of many different environments by using extensions and modules. Most WordPress hosting providers use Apache as their web server software.
What is Nginx?
NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. In addition to its HTTP server capabilities, NGINX can also function as a proxy server for email (IMAP, POP3, and SMTP) and a reverse proxy and load balancer for HTTP, TCP, and UDP servers.