$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

How to Create An Apache 2 Virtual Host on Linux Mint Debian Quick-Start Guide

June 16, 2014 | By the+gnu+linux+evangelist.

LMDE Apache 2 Virtual Hosts Quick Start

Hi! The Tutorial shows you Step-by-Step How to Getting-Started with Apache 2 Virtual Host on Linux Mint Debian 2012/2013/2014 i386/amd64 Mate/Cinnamon Desktop.

And the term Virtual Host refers to the Practice of Running more than One Website (such as company1.example.com and company2.example.com) on a Single Machine.

Virtual Hosts can be:

  • Name-based“, meaning that you have Multiple Names running on each IP address
  • IP-based“, meaning that you have a Different IP Address for Every Website

The fact that they are Running on the Same Physical Server is Not Apparent to the End User.

Create Apache 2 Virtual Host on Linux Mint Debian 2012/2013/2014 - Featured

How to Create a Name-based Virtual Host on Linux Mint

    How to Install LAMP Server on Linux Mint Debian.

    LAMP Server Installation LMDE
  1. Or Open a Command Line Terminal Window
    (Press “Enter” to Execute Commands)

    Create Apache 2 Virtual Host on Linux Mint Debian 2012/2013/2014 - Open Terminal

    In case first see: Terminal QuickStart Guide.

  2. Add the Domain to the hosts Config File.

    su 

    If Got “User is Not in Sudoers file” then see: How to Enable sudo

    nano /etc/hosts

    Append:

    127.0.0.1 [myDomainName.com]
    

    Only Substitute your real Domain Name to “[myDomainName.com]” :)
    Ctrl+Shift+v to Paste Content on nano
    Ctrl+x to Save and Exit from nano Editor

  3. Create the VHost Target Directory.

    mkdir /var/www/html/[mySite]

    And may be also a Testing index.html:

    echo "My New WebSite is Working! :)" > /var/www/html/[mySite]/index.html

    Then Set the Domain’s Ownership with:

    chown -R www-data:www-data /var/www/html/[mySite]
  4. Create a VHost Config File.

    nano /etc/apache2/sites-available/[myDomainName].conf

    Append at Least:

    <VirtualHost *:80>
    ServerName[myDomainName.com]
    ServerAliaswww.[myDomainName.com]
    DocumentRoot /var/www/html/[mySite]
    </VirtualHost>
    

    To get a little More Insight may look:

    cat /etc/apache2/sites-available/000-default.conf
  5. Enabling the New Virtual-Host.

    cd /etc/apache2/sites-enabled
    ln -s ../sites-available/[myDomainName].conf .
  6. Restart Apache2 Web Server.

    service apache2 restart
    exit
  7. How to Enable Apache2 mod_rewrite Module on LMDE.

    Enabling Apache2 Rewrite for LMDE

    How to Create a IP-based Virtual Host on Linux LMDE

    How to Create an IP-Based Virtual Host on LMDE.

    LMDE Apache2 IP Virtual-Host