Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

virtual host apache2

<VirtualHost *:80>
        ServerName maxisforum.example.com     
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/maxisforum/
        <Directory /var/www/maxisforum/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Require all granted
        </Directory>
        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined
        ServerSignature On
</VirtualHost>
Comment

virtual host apache

# File: /etc/apache2/sites-available/domain1.com.conf

<VirtualHost *:80>

  # Server Name (domain name) and any aliases
  
  ServerName  domain1.com
  ServerAlias www.domain1.com
  
  #OPTIONAL Admin name
  ServerAdmin webmaster@domain1.com


  # Index file and Document Root (where the public files are located)
  DirectoryIndex index.html
  DocumentRoot /home/demo/public_html/domain1.com/public


  # Custom log file locations, OPTIONAL:
  LogLevel warn
  ErrorLog /var/log/apache2/error-mydomainname.com.log
  CustomLog /var/log/apache2/access-mydomainname.com.log combined

</VirtualHost>

# Enabling:
# sh ~ $
sudo a2ensite domain1.com # Refer to above ServerName!
# The utility may automatically suggest, but run:
sudo /etc/init.d/apache2 reload
# To restart apache!
Comment

PREVIOUS NEXT
Code Example
Shell :: get disk partitions linux 
Shell :: visual studio code ubuntu 
Shell :: magento 2 configure cron command line 
Shell :: how to get only a list of size of files bash 
Shell :: ubuntu list running applications 
Shell :: bash float division 
Shell :: git branch delete all local branches 
Shell :: ubuntu chrome 
Shell :: copy secret from one namespace to another 
Shell :: sourcetree change commit message not pushed 
Shell :: expo channels list 
Shell :: change global user name git 
Shell :: install vlc rhel 
Shell :: swagger installation 
Shell :: download aws cli linux 
Shell :: ts-node not found 
Shell :: / bin/sh: 1: bc: not found 
Shell :: how to make a new branch git 
Shell :: how to uninstall a package with yarn 
Shell :: kill port 3000 ubuntu 
Shell :: see journalctl running logs 
Shell :: clear port by terminal 
Shell :: shell view binary file 
Shell :: how to move a file in terminal 
Shell :: last login linux 
Shell :: how to make a .sh file executable 
Shell :: how to install lua on ubuntu 
Shell :: install linux subsystem windows 10 
Shell :: how to uninstall a aur package 
Shell :: chown specific user linux 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =