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 :: wsl 2 reboot ubuntu 
Shell :: how to check file size in linux 
Shell :: install deb file in manjaro 
Shell :: powershell function 
Shell :: configuration file is group-readable. This is insecure linux 
Shell :: list all running processes linux 
Shell :: grep search for string in directory 
Shell :: kill screen sessions 
Shell :: get request linux terminal 
Shell :: export to path pipenv bash 
Shell :: linux cmd uninstall 
Shell :: get repository url git cil 
Shell :: Add RPM Fusion Fedora 36 
Shell :: openssl universal requires cocoapods openssl-universal 
Shell :: python install z3 
Shell :: add your SSH key to the ssh-agent. 
Shell :: git reflog 
Shell :: manjaro nvidia driver 
Shell :: linux get full path 
Shell :: how to install mongodb in ubuntu 20.04 lts fossa 
Shell :: yum install package with version 
Shell :: github add image in readme 
Shell :: how to set execute permission in linux 
Shell :: install flutter on linux 
Shell :: clear error log apache2 
Shell :: config vscode terminal to bash default 
Shell :: debian full install qt5 
Shell :: add local repository to remote 
Shell :: bash make directory 
Shell :: npmrc file location windows 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =