Nota Acap
  • Introduction
  • Linux Guide
    • Fresh Installed Centos 7
    • Changing Network Interfaces in Centos 7
    • Lockdown SSH
    • Recursively change permission Linux
    • Proxy Server IPtables
    • Provisioning Web Server with Custombuild
    • MySQL Basic Management
    • Increasing Existing LVM Disk
  • Windows Guide
  • Application Guide
    • WEB Port IPtables Rate Limit
    • Simple Email Piping Script
    • HTTP Dead
    • Email Relay Outgoing
    • Compiling Extra PHP version (Directadmin)
    • Finding the SPAM (cPanel)
    • HTTP Basic Virtual Host
    • Update Kernel for DRBD Hosts
  • Migration Related
    • Cpanel -> Cpanel (Bulk)
    • IMAPSYNC Basic Scripts
    • Directadmin -> cPanel (Copy/Sync Emails)
    • Basic Rsync Script
Powered by GitBook
On this page

Was this helpful?

  1. Application Guide

HTTP Basic Virtual Host

Basic HTTP config for your virtual host in Apache

Below are the basic config that you may use for your domain in Apache virtual host configuration file.

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    UserDir public_html
    DocumentRoot /home/asyraf/public_html
    ServerName blog.asyraf.my
    ScriptAlias /cgi-bin/ /var/www/cgi-bin/
    CustomLog /var/log/httpd/asyraf.my/asyraf.log homedir
    CustomLog /var/log/httpd/asyraf.my/access_log combined
    ErrorLog /var/log/httpd/asyraf.my/error_log

    <IfModule !mod_ruid2.c>
        SuexecUserGroup asyraf asyraf
    </IfModule>
</VirtualHost>

PreviousFinding the SPAM (cPanel)NextUpdate Kernel for DRBD Hosts

Last updated 6 years ago

Was this helpful?