apache virtual host
Shell
# 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 [email protected]
# 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!# 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 [email protected]
# 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
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!
Also in Shell:
- Title
- is there a steam repository for kali linux
- Category
- Shell
- Title
- linux find file containing text
- Category
- Shell
- Title
- Load key ".pem": bad permissions
- Category
- Shell
- Title
- sound output raspberry pi
- Category
- Shell
- Title
- download images from url terminal
- Category
- Shell
- Title
- run specific script with an other user linux
- Category
- Shell
- Title
- command git message
- Category
- Shell
- Title
- pod deintegrate
- Category
- Shell
- Title
- unarchive tar acrhive
- Category
- Shell
- Title
- powershell get all computers in ou
- Category
- Shell
- Title
- heic open linux
- Category
- Shell
- Title
- set remote url git
- Category
- Shell
- Title
- bash generate random number between
- Category
- Shell
- Title
- what is the ssh credentials for minikube
- Category
- Shell
- Title
- windows 10 direct inbound port to another device
- Category
- Shell
- Title
- how to undo makemigrations django
- Category
- Shell
- Title
- connection failed blueman.bluez.errors.dbusfailederror protocol not available
- Category
- Shell
- Title
- install redux-thunk
- Category
- Shell
- Title
- ubuntu ram type
- Category
- Shell
- Title
- How to find your ip on debian linux wsl
- Category
- Shell
- Title
- install node 12 linux terminal w10
- Category
- Shell
- Title
- ng2-dragula valor software github
- Category
- Shell
- Title
- php artisan doctrine migrations add all
- Category
- Shell
- Title
- git diff show only files
- Category
- Shell
- Title
- tab to csv command line
- Category
- Shell
- Title
- how to save environment variables ubuntu
- Category
- Shell
- Title
- install AdminLTE
- Category
- Shell
- Title
- how to grep if the first letter is a character not a number
- Category
- Shell
- Title
- ubuntu tweak
- Category
- Shell
- Title
- create a docker file
- Category
- Shell
- Title
- how to copy ssh key
- Category
- Shell
- Title
- linux give full permission to directory
- Category
- Shell
- Title
- linux remove folder and all his content
- Category
- Shell
- Title
- firewall-cmd create new zone
- Category
- Shell
- Title
- vim command to open a file
- Category
- Shell
- Title
- how to install gatsby gatsby-plugin-manifest
- Category
- Shell
- Title
- xcode clean derived data command line
- Category
- Shell
- Title
- powershell convert text 20MB to bytes
- Category
- Shell
- Title
- Cannot find module 'typescript'
- Category
- Shell
- Title
- how to get ssh access to a computer
- Category
- Shell
- Title
- linux download ftp get all files and folders
- Category
- Shell
- Title
- connect local repository to remote git
- Category
- Shell
- Title
- installing helm and tiller on minikube
- Category
- Shell
- Title
- htaccess route to index.php
- Category
- Shell
- Title
- asdf node fingerprint
- Category
- Shell
- Title
- install pybind ubuntu
- Category
- Shell
- Title
- locate file in same directory linux
- Category
- Shell
- Title
- set git pull rebase default
- Category
- Shell
- Title
- install vscode ubuntu command line
- Category
- Shell
- Title
- ubuntu set scale to 150
- Category
- Shell
- Title
- grep command
- Category
- Shell
- Title
- hide hidden files mac
- Category
- Shell
- Title
- Failed to set up listener: SocketException: Address already in use
- Category
- Shell
- Title
- remove debian gnu/linux - continue with install process
- Category
- Shell
- Title
- create a screen screen session tmux
- Category
- Shell
- Title
- bash check in gem is installed
- Category
- Shell
- Title
- release tag github
- Category
- Shell
- Title
- How to check git config username?
- Category
- Shell
- Title
- pycharm duplicate line
- Category
- Shell
- Title
- install bootstrap angular
- Category
- Shell
- Title
- linux find from file content
- Category
- Shell
- Title
- "git checkout -b" example
- Category
- Shell
- Title
- how to make a .sh file executable
- Category
- Shell
- Title
- whats up with docker compose and orphan containers
- Category
- Shell
- Title
- ubuntu ec2 node mongodb connect ECONNREFUSED 127.0.0.1:27017
- Category
- Shell
- Title
- npm ERR! path /usr/local/lib/nodejs/node-v10.15.3-linux-x64/lib/node_modules while installing angular cli
- Category
- Shell
- Title
- read string by string in file in linux
- Category
- Shell
- Title
- check installed packages apt-get
- Category
- Shell
- Title
- error: src refspec master does not match any. git
- Category
- Shell
- Title
- Shell query displays all citizens with an age greater than or equal to 21
- Category
- Shell
- Title
- git log one line
- Category
- Shell
- Title
- linux check used space in folder
- Category
- Shell
- Title
- shell count number of lines
- Category
- Shell
- Title
- install flutter
- Category
- Shell
- Title
- how to tar linux
- Category
- Shell
- Title
- ubuntu check ssh login log
- Category
- Shell
- Title
- remove yum package
- Category
- Shell
- Title
- to see all after commit in local repository in git
- Category
- Shell
- Title
- Realtek RTL8812BU Network WiFi Adapter kali linux driver
- Category
- Shell
- Title
- copy folder from s3 to local
- Category
- Shell
- Title
- npm list global packages
- Category
- Shell
- Title
- kill all python processes ubuntu
- Category
- Shell
- Title
- save android studio home bash_profile
- Category
- Shell
- Title
- view memory usage linux
- Category
- Shell
- Title
- docker run command on container
- Category
- Shell
- Title
- install automapper asp.net core mvc
- Category
- Shell
- Title
- find out a branch a parent branch git
- Category
- Shell
- Title
- create a symlink
- Category
- Shell
- Title
- git global username --replace-all
- Category
- Shell
- Title
- remove remote git
- Category
- Shell
- Title
- how to move file in directory in linux
- Category
- Shell
- Title
- how to revert to log in git
- Category
- Shell
- Title
- ubuntu dns server
- Category
- Shell
- Title
- date command in linux
- Category
- Shell
- Title
- show output after a keyword in shell script in a file
- Category
- Shell
- Title
- mostrare i grafici matplotlib sulla shell python
- Category
- Shell
- Title
- use python shell with git bash
- Category
- Shell
- Title
- python-swiftclient 3.5.0 uninstall ubuntu
- Category
- Shell
- Title
- github show files changed git log
- Category
- Shell
- Title
- git remote
- Category
- Shell