Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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 :: ubuntu auditd list of rules 
Shell :: ssms linux install terminal stack overflow 
Shell :: cli full form 
Shell :: E: Unable to locate package ros-noetic-depthimage-to-laserscan 
Shell :: how to search for a directory in github 
Shell :: bash commands inside Tcl 
Shell :: how to change currnet cluster config 
Shell :: fsl remove_ext 
Shell :: how do i install xcode 7 in 2021 
Shell :: dashed filename 
Shell :: GemWrappers: Can not wrap missing file: 
Shell :: Como excluir uma tag remota 
Shell :: web server not running due to lack of necessary permissions in linux nginx 
Shell :: install pusher srever in larvel 
Shell :: terminal reverse search 
Shell :: kali linux vdi 
Shell :: node execute local bin 
Shell :: show date on 24 hour format terminal 
Shell :: Auto restart apps on file change 
Shell :: batch compress mp4 
Shell :: iterm full screen cmd 
Shell :: linux write 
Shell :: grep search for text in php files recursive 
Shell :: ubuntu record video change time 
Shell :: check if global packages are up to date 
Shell :: ubuntu ssh connect to server 
Shell :: inode directory spend 
Shell :: install Postfix to send notification emails 
Shell :: check concurrent connections for linux user 
Shell :: how to shutdown linux from terminal immediately 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =