SlideShare a Scribd company logo
Vmoksha Technologies
Commit-Deliver –Excel
“ Instructional Guide to Virtual Hosting
using Nginx Server ’’
Vmoksha Technologies Pvt. Ltd.
Nginx is a web server, which can also act as a reverse proxy, HTTP server, IMAP/POP3 proxy server as
well as a load balancer. It is well known for its stability, high performance, simple configuration, rich feature
set, and low resource consumption. So, we can deploy our web applications like HTML pages and PHP-
related applications into this server directly.
Introduction
Vmoksha Technologies Pvt. Ltd.
Let’s see How to Configure the Nginx as a Reverse Proxy/Virtual Hosting Purpose –
#1. Deploy the nginx application in any server (I am taking Ubuntu System).
#2. Choose any domain/sub-domain name, and do the C-name configuring that domain name to nginx server
(Ubuntu System Port 80).
Note: Port 80 is the default port for nginx. If you change the port, you need to map the C-name according to that.
#3. Once C-name and nginx applications are ready, create a conf.d folder inside the nginx.
#4. Create a configuration file with the name of domain/sub-domain along with the .conf extension.
For example, if you want the application should work on ‘abc.mycompany.com,’ you have to create a configuration
file with the name of ‘abc.mycompany.com.conf,’ and copy the code present in the next slide and save the file.
Process
Process - Continued
server {
listen 80;
server_name abc.mycompany.com;
location / {
proxy_pass http://10.10.10.10:portnumber/;
proxy_http_version 1.1;
proxy_read_timeout 300000;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
#5. Restart/reload the Nginx.
Now your application will work with the domain name based on your
configuration.
Vmoksha Technologies Pvt. Ltd.
 Listen – Nginx port listener
 Server_name – Domain name
 Proxy_pass – Actual running application URL (domain name indirectly calls this URL)
 Proxy_read_timeout – For long connection establishment (optional)
 Nginx default connection timeout – 600 m.sec
Glossary
Vmoksha Technologies Pvt. Ltd.
Thank You….
Our Official Website - www.vmokshagroup.com
Facebook Page - https://www.facebook.com/Vmokshagroup
Google + Page - https://plus.google.com/+VmokshaTechnologies
Twitter Page - https://twitter.com/InfoVmoksha
Pinterest Page - https://in.pinterest.com/vmokshagroup/
LinkedIn Page - https://www.linkedin.com/company/vmoksha-technologies
Instagram Page- https://www.instagram.com/vmoksha.technologies/
Contact Us - 080 4137 6300
Address - 2799 & 2800, Srinidhi, Sector-1, 27th Main, HSR Layout, Bengaluru, Karnataka 560102.
Vmoksha Technologies Pvt. Ltd.

More Related Content

PDF
Composite Source With Mule ESB
TXT
Powershell direct
PPT
5-WebServers.ppt
PDF
Caching for Cash: Caching
PDF
Caching for Cash: Benchmarking and Profiling
PPT
PPT
Load Balanced DNS Server A server which cycles through IP ...
DOCX
How to install and configure LEMP stack
Composite Source With Mule ESB
Powershell direct
5-WebServers.ppt
Caching for Cash: Caching
Caching for Cash: Benchmarking and Profiling
Load Balanced DNS Server A server which cycles through IP ...
How to install and configure LEMP stack

What's hot (18)

PPT
TOMCAT WEB SERVER TECHNICAL BY SAIKIRAN PANJALA
PDF
Webmin configuration in Linux
PPT
Tomcat Server
PPTX
Activemq installation and master slave setup using shared broker data
PDF
Weblogic as a windows service
DOCX
Connect sql-using-perl-from-linux
PPT
Apache Presentation
PPTX
Optimize the obvious
PDF
How to turn any dynamic website into a static site | 24.01.2018 | Artem Danil...
PPTX
Groovy in Mule
PPT
Apache Ppt
PPT
Auxiliary : Tomcat
ODP
IT Operations for Web Developers
PDF
Weblogic monitoring
DOCX
Build your own secure mail server on the cloud using Amazon Web Services
PPTX
Apache web server
DOCX
How to install wordpress on wampserver
PDF
Apache Server Tutorial
TOMCAT WEB SERVER TECHNICAL BY SAIKIRAN PANJALA
Webmin configuration in Linux
Tomcat Server
Activemq installation and master slave setup using shared broker data
Weblogic as a windows service
Connect sql-using-perl-from-linux
Apache Presentation
Optimize the obvious
How to turn any dynamic website into a static site | 24.01.2018 | Artem Danil...
Groovy in Mule
Apache Ppt
Auxiliary : Tomcat
IT Operations for Web Developers
Weblogic monitoring
Build your own secure mail server on the cloud using Amazon Web Services
Apache web server
How to install wordpress on wampserver
Apache Server Tutorial
Ad

Viewers also liked (7)

PDF
To do list
PDF
SaturdayhackParticipants2015
PDF
بروشور أصل المشاريع
PPTX
"Voice conservation & recognition filters" by arfeen ahmed ali
PDF
Media Kit - Working
PPT
Ambientes colaborativos
PDF
Emani retailing training
To do list
SaturdayhackParticipants2015
بروشور أصل المشاريع
"Voice conservation & recognition filters" by arfeen ahmed ali
Media Kit - Working
Ambientes colaborativos
Emani retailing training
Ad

Similar to Virtual hosting using nginx (20)

DOCX
Installing lemp with ssl and varnish on Debian 9
PPTX
Nginx A High Performance Load Balancer, Web Server & Reverse Proxy
PDF
Practical solutions for connections administrators
DOCX
MCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen
DOCX
MCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen.docx
PDF
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
KEY
Nginx - Tips and Tricks.
PDF
Introduction to Node JS1.pdf
PPT
FMS Administration Seminar
PDF
NGINX Can Do That? Test Drive Your Config File!
PPT
21 Www Web Services
PDF
Using aphace-as-proxy-server
PPTX
Open Stack compute-service-nova
PPTX
Cloud Foundry a Developer's Perspective
PDF
dachnug51 - HCL Sametime 12 as a Software Appliance.pdf
PDF
Docker for developers on mac and windows
PPT
Ch 22: Web Hosting and Internet Servers
PDF
How to Set Up Nginx Server Blocks on Ubuntu 2404.pdf
PPT
Web servers
PDF
NGINX ADC: Basics and Best Practices – EMEA
Installing lemp with ssl and varnish on Debian 9
Nginx A High Performance Load Balancer, Web Server & Reverse Proxy
Practical solutions for connections administrators
MCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen
MCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen.docx
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
Nginx - Tips and Tricks.
Introduction to Node JS1.pdf
FMS Administration Seminar
NGINX Can Do That? Test Drive Your Config File!
21 Www Web Services
Using aphace-as-proxy-server
Open Stack compute-service-nova
Cloud Foundry a Developer's Perspective
dachnug51 - HCL Sametime 12 as a Software Appliance.pdf
Docker for developers on mac and windows
Ch 22: Web Hosting and Internet Servers
How to Set Up Nginx Server Blocks on Ubuntu 2404.pdf
Web servers
NGINX ADC: Basics and Best Practices – EMEA

More from Vmoksha Admin (10)

PPTX
AWS SES
PPTX
Material design for android
PPTX
Saa s edited
PPTX
Moving to the cloud edited
PPTX
Microsoft azure edited
PPTX
6 mobile app trends that are expected to rule in 2016 (vmoksha technologies p...
PPTX
Setting up an email engine using amazon ses (vmokhsa technologies pvt. ltd.)
PPTX
Vmoksha Technologies competencies
PPTX
Mobility
PPTX
Mobility
AWS SES
Material design for android
Saa s edited
Moving to the cloud edited
Microsoft azure edited
6 mobile app trends that are expected to rule in 2016 (vmoksha technologies p...
Setting up an email engine using amazon ses (vmokhsa technologies pvt. ltd.)
Vmoksha Technologies competencies
Mobility
Mobility

Recently uploaded (20)

PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Cloud computing and distributed systems.
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Machine Learning_overview_presentation.pptx
PPT
Teaching material agriculture food technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Machine learning based COVID-19 study performance prediction
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
MYSQL Presentation for SQL database connectivity
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Encapsulation theory and applications.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
Chapter 3 Spatial Domain Image Processing.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Spectroscopy.pptx food analysis technology
Digital-Transformation-Roadmap-for-Companies.pptx
Cloud computing and distributed systems.
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
The AUB Centre for AI in Media Proposal.docx
Machine Learning_overview_presentation.pptx
Teaching material agriculture food technology
Per capita expenditure prediction using model stacking based on satellite ima...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Machine learning based COVID-19 study performance prediction
Assigned Numbers - 2025 - Bluetooth® Document
“AI and Expert System Decision Support & Business Intelligence Systems”
MYSQL Presentation for SQL database connectivity
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Spectral efficient network and resource selection model in 5G networks
Encapsulation theory and applications.pdf
Review of recent advances in non-invasive hemoglobin estimation

Virtual hosting using nginx

  • 1. Vmoksha Technologies Commit-Deliver –Excel “ Instructional Guide to Virtual Hosting using Nginx Server ’’
  • 2. Vmoksha Technologies Pvt. Ltd. Nginx is a web server, which can also act as a reverse proxy, HTTP server, IMAP/POP3 proxy server as well as a load balancer. It is well known for its stability, high performance, simple configuration, rich feature set, and low resource consumption. So, we can deploy our web applications like HTML pages and PHP- related applications into this server directly. Introduction
  • 3. Vmoksha Technologies Pvt. Ltd. Let’s see How to Configure the Nginx as a Reverse Proxy/Virtual Hosting Purpose – #1. Deploy the nginx application in any server (I am taking Ubuntu System). #2. Choose any domain/sub-domain name, and do the C-name configuring that domain name to nginx server (Ubuntu System Port 80). Note: Port 80 is the default port for nginx. If you change the port, you need to map the C-name according to that. #3. Once C-name and nginx applications are ready, create a conf.d folder inside the nginx. #4. Create a configuration file with the name of domain/sub-domain along with the .conf extension. For example, if you want the application should work on ‘abc.mycompany.com,’ you have to create a configuration file with the name of ‘abc.mycompany.com.conf,’ and copy the code present in the next slide and save the file. Process
  • 4. Process - Continued server { listen 80; server_name abc.mycompany.com; location / { proxy_pass http://10.10.10.10:portnumber/; proxy_http_version 1.1; proxy_read_timeout 300000; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } } #5. Restart/reload the Nginx. Now your application will work with the domain name based on your configuration. Vmoksha Technologies Pvt. Ltd.
  • 5.  Listen – Nginx port listener  Server_name – Domain name  Proxy_pass – Actual running application URL (domain name indirectly calls this URL)  Proxy_read_timeout – For long connection establishment (optional)  Nginx default connection timeout – 600 m.sec Glossary Vmoksha Technologies Pvt. Ltd.
  • 6. Thank You…. Our Official Website - www.vmokshagroup.com Facebook Page - https://www.facebook.com/Vmokshagroup Google + Page - https://plus.google.com/+VmokshaTechnologies Twitter Page - https://twitter.com/InfoVmoksha Pinterest Page - https://in.pinterest.com/vmokshagroup/ LinkedIn Page - https://www.linkedin.com/company/vmoksha-technologies Instagram Page- https://www.instagram.com/vmoksha.technologies/ Contact Us - 080 4137 6300 Address - 2799 & 2800, Srinidhi, Sector-1, 27th Main, HSR Layout, Bengaluru, Karnataka 560102. Vmoksha Technologies Pvt. Ltd.