Host your websites. The process to host a single website is different from having multiple sites.



Similar documents
Setup a Virtual Host/Website

Web Server using Apache. Heng Sovannarith

Lets Get Started In this tutorial, I will be migrating a Drupal CMS using FTP. The steps should be relatively similar for any other website.

Virtual Host Continue

Linux VPS with cpanel. Getting Started Guide

User s guide. APACHE SSL Linux. Using non-qualified certificates with APACHE SSL Linux. version 1.3 UNIZETO TECHNOLOGIES S.A.

How To Set Up A Virtual Host In Apa On A Linux Box On A Windows Xp Or Ipa On An Ubuntu Box On An Ipa (Windows) Or Ipo (Windows Xp) On A Ubora Box On Your Ubora

Virtual Host (Web Server)

How to: Install an SSL certificate

Creating Custom Nameservers Contents

LAMP Quickstart for Red Hat Enterprise Linux 4

CO Web Server Administration and Security. By: Szymon Machajewski

Getting Started Guide for FTP

Apache and Virtual Hosts Exercises

GlobalSign Solutions

Asia Web Services Ltd. (vpshosting.com.hk)

Fasthosts Internet Parallels Plesk 10 Manual

Running Secure & Reliable Web/Mail/other Services from Home Part-II: Setting Up A SOHO Linux Web and Server

Moving Drupal to the Cloud: A step-by-step guide and reference document for hosting a Drupal web site on Amazon Web Services

CentOS. Apache. 1 de 8. Pricing Features Customers Help & Community. Sign Up Login Help & Community. Articles & Tutorials. Questions. Chat.

IIS, FTP Server and Windows

Livezilla How to Install on Shared Hosting By: Jon Manning

Setting up a Web Server using Raspbian Wheezy on the Raspberry Pi ( Kenneth A Spencer)

1. If there is a temporary SSL certificate in your /ServerRoot/ssl/certs/ directory, move or delete it. 2. Run the following command:

NAS 206 Using NAS with Windows Active Directory

SIMIAN systems. Setting up a Sitellite development environment on Mac OS X. Sitellite Content Management System

How to Configure edgebox as a Web Server

imhosted Web Hosting Knowledge Base

Installing an SSL certificate on the InfoVaultz Cloud Appliance

WHM Administrator s Guide

SSL Installing your new Certificate

1. Configuring Apache2 Load Balancer with failover mechanism

SSH and Basic Commands

Created by : Ashish Shah, J.M. PATEL COLLEGE UNIT-5 CHAP-1 CONFIGURING WEB SERVER

Create a New Account Contents

FTP Accounts Contents

Apache Server Implementation Guide

NAS 109 Using NAS with Linux

Manage a Firewall Using your Plesk Control Panel Contents

Configure Wildcard-Based Subdomains

Customer Control Panel Manual

Using Internet or Windows Explorer to Upload Your Site

Configuring Content Switching Feature

owncloud 8 and DigitalOcean Matthew Davidson Bluegrass Linux User Group 03/09/2015

Apache Configuration

Setting Up Your FTP Server

Parallels Plesk Panel

Wazza s QuickStart 17. Leopard Server - Blogs & Wikis

Installing buzztouch Self Hosted

Parallels Plesk Panel User Guide

APACHE HTTP SERVER 2.2.8

Semantic based Web Application Firewall (SWAF - V 1.6)

Configuring Apache and IIS for High Availability Web Server Clustering

Guide to the Configuration and Use of SFTP Clients for Uploading Digital Treatment Planning Data to IROC RI

Installing WordPress MU

Parallels. for your Linux or Windows Server. Small Business Panel. Getting Started Guide. Parallels Small Business Panel // Linux & Windows Server

Installing Booked scheduler on CentOS 6.5

Copyright Notice. Parallels IP Holdings GmbH Vordergasse 59 CH-Schaffhausen Switzerland Phone: Fax:

A Beginner's Guide to Setting Up A Web Hosting System (Or, the design and implementation of a system for the worldwide distribution of pictures of

Introduction Connecting Via FTP Where do I upload my website? What to call your home page? Troubleshooting FTP...

freesshd SFTP Server on Windows

Connecting to the School of Computing Servers and Transferring Files

Apache Usage. Apache is used to serve static and dynamic content

About This Document 3. Integration Overview 4. Prerequisites and Requirements 6

Getting Started With Your Virtual Dedicated Server. Getting Started Guide

HW9 WordPress & Google Analytics

Apache 2.2 on QNX Neutrino 6.4.x OS Step-by-step installation manual

Transferring Your Hosting Account

1. Please login to the Own Web Now Support Portal ( with your address and a password.

Content Management System

SecuritySpy Setting Up SecuritySpy Over SSL

Configuring an External Domain

Experimental Techniques 8

Talk Internet User Guides Controlgate Administrative User Guide

Quick Start Guide. Hosting Your Domain

Rensselaer Union Club Webhosting CPanel Guide

How to setup HTTP & HTTPS Load balancer for Mediator

Dataworks System Services Guide

Guide to the Configuration and Use of SFTP Clients for Uploading Digital Treatment Planning Data to ITC

DESLock+ Basic Setup Guide Version 1.20, rev: June 9th 2014

Services: Apache a patchy web server

SUSE Manager in the Public Cloud. SUSE Manager Server in the Public Cloud

Using Symantec NetBackup with Symantec Security Information Manager 4.5

1 Introduction. Ubuntu Linux Server & Client and Active Directory. Page 1 of 14

About this Guide Web Hosting...6 Concepts... 6

Laboration 3 - Administration

Setting up VNC, SAMBA and SSH on Ubuntu Linux PCs Getting More Benefit out of Your Local Area Network

FireBLAST Marketing Solution v2

Sentral servers provide a wide range of services to school networks.

Snapt Redundancy Manual

FTP, IIS, and Firewall Reference and Troubleshooting

Parallels Plesk Panel 11 for your Windows Server

SIMIAN systems. Setting up a Sitellite development environment on Windows. Sitellite Content Management System

Installing Rails 2.3 Under Windows XP and Apache 2.2

Parallels Plesk Panel

Enterprise Apple Xserve Wiki and Blog using Active Directory. Table Of Contents. Prerequisites 1. Introduction 1

Parallels Plesk Panel 11 for your Linux server

AJ Matrix V5. Installation Manual

WebBridge LR Integration Guide

Apache HTTP Server. Implementation Guide. (Version 5.7) Copyright 2013 Deepnet Security Limited

Transcription:

The following guide will help you to setup the hosts, in case you want to run multiple websites on your VPS. This is similar to setting up a shared server that hosts multiple websites, using a single shared IP address. Note: * This documentation assumes you've already installed the LAMP stack on your VPS. If you haven't done that yet, refer to the LAMP installation guide. * Ensure that you are connected to the server using an SSH client as a "root" user. * Website management becomes easier through cpanel and Plesk. If you have installed these panels, you need not follow this documentation. The process to host a single website is different from having multiple sites. Case 1 - If you want to host only one domain name in the VPS, then all you need to do is point your domain name to the IP address of the VPS. (This can be done by simply adding an A record from its DNS interface). By default the document root of your server is /var/www/html. You can upload the contents of your site in this directory, if you are planning to host only one domain name. Case 2 - However, if you want to host multiple domain names in the same VPS, then you would be required to create a virtual host entry in your Apache configuration file. Refer to the steps mentioned below. Host your websites Page 1

Step I Lets take an example of websites domain1.com and domain2.com. You'll first have to create folders for each under /var/www/html. You can create the folders from Plesk Power Panel's - File Manager or via SSH. The steps given below are using CLI (Command Line Interface). a. Navigate to the directory /var/www/html b. Create the directories for each website using mkdir command. c. Once directories are created (as shown below), we can proceed to the next step. Host your websites Page 2

Step II Open the Apache configuration file. Use command vi /etc/httpd/conf/httpd.conf Scroll down to the bottom of this file, uncomment the lines and add your domain names to the Apache conf as illustrated below. Host your websites Page 3

name-based virtual hosting explained NameVirtualHost - Designates an IP address for name-based virtual hosting. <VirtualHost> - Contains directives that apply only to a specific hostname or IP address. ServerAdmin - Email address that the server includes in error messages sent to the client. DocumentRoot - This directive sets the directory from which httpd will serve files for this host. ServerName - Used to uniquely identify the Virtual Host. This will be the your domain name in FQDN (Fully Qualified Domain Name) format. ServerAlias - This directive is used to set the alternate names for the host. ErrorLog - Location where the server will log errors for this host. If you want to learn more about Virtual Hosts or customize it further, you may refer to Apache Virtual Host documentation - http://httpd.apache.org/docs/2.2/vhosts/ Step III For the configuration changes to take effect, we'll now have to restart the Apache service. Host your websites Page 4

DNS configuration and Test Run The above three steps complete all the crucial settings for hosting multiple domain names. Further, to check how these sites will resolve or to test their functioning, we'll add sample html files. You can use the sample html script. -------------------------- <html> <head> <title>domain1.com's page</title> </head> <body> This is domain1.com </body> </html> -------------------------- Create the index.html files for domain1.com and domain2.com. Host your websites Page 5

If you are hosting a single domain name on this server, simply using your VPS' IP address will show up your site. However, if you have multiple sites and want to try this prior to setting up their DNS servers, you can edit your local computer's HOST file. Windows 7 and XP users can do this from C:\Windows\System32\drivers\etc\hosts Linux users will have to edit the following file /etc/hosts After opening these files in text editor, add IP address of your VPS followed by the domain name. e.g. 11.12.13.14 domain1.com 11.12.13.14 domain2.com For actual resolution over internet, create A records for each domain name pointing to the IP address of the VPS, in their respective DNS servers. Host your websites Page 6

Uploading via FTP You can upload the sites using any FTP client of your choice. To connect via a client, you'll need Host: <IP_address_of your_vps> Username: root Password: <root_user_password> (same as your VPS password) FTP Type: SFTP Port No.: 22 This complete setup is with minimal configuration; you can customize or secure your website further according to your needs. Host your websites Page 7