virtual host apache
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
- how to create a shortcut ubuntu
- Category
- Shell
- Title
- git fklow init
- Category
- Shell
- Title
- bash grep and sort
- Category
- Shell
- Title
- ubuntu sites-available location
- Category
- Shell
- Title
- npm run custom script
- Category
- Shell
- Title
- linux edit file
- Category
- Shell
- Title
- linux view services
- Category
- Shell
- Title
- view memory usage linux
- Category
- Shell
- Title
- bash ls without substring
- Category
- Shell
- Title
- git list remote branches
- Category
- Shell
- Title
- update to wsl2
- Category
- Shell
- Title
- how to install gatsby with typescript
- Category
- Shell
- Title
- git worktree
- Category
- Shell
- Title
- gulp-gzip
- Category
- Shell
- Title
- how to revert back to previous commit in git permanently
- Category
- Shell
- Title
- search tag git
- Category
- Shell
- Title
- mac cleanup github
- Category
- Shell
- Title
- git merge tag to branch and squash commits
- Category
- Shell
- Title
- linux tar zip folder
- Category
- Shell
- Title
- grep cheat sheet
- Category
- Shell
- Title
- linux how to see directory data usage
- Category
- Shell
- Title
- zip command in linux
- Category
- Shell
- Title
- git pull a new branch froma remote repo
- Category
- Shell
- Title
- hide ls: cannot read symbolic link Permission denied
- Category
- Shell
- Title
- how to install cab file in ubuntu
- Category
- Shell
- Title
- how to see the commit history in git
- Category
- Shell
- Title
- pyinstaller statsmodels
- Category
- Shell
- Title
- particular screenshot in ubuntu
- Category
- Shell
- Title
- GVfs metadata is not supported. Fallback to TeplMetadataManager.
- Category
- Shell
- Title
- revert git add
- Category
- Shell
- Title
- setup mysql ubuntu
- Category
- Shell
- Title
- ubuntu install bluez
- Category
- Shell
- Title
- terminal italics test sequence
- Category
- Shell
- Title
- git tag a previous commit
- Category
- Shell
- Title
- nmcli connect wifi
- Category
- Shell
- Title
- linux permanent mount
- Category
- Shell
- Title
- git basic command tutorial
- Category
- Shell
- Title
- git return from detached head
- Category
- Shell
- Title
- how to delete services in kubernetes
- Category
- Shell
- Title
- how to run shell script
- Category
- Shell
- Title
- r package DESCRIPTION multiple lines description
- Category
- Shell
- Title
- install react yarn
- Category
- Shell
- Title
- how to move file in directory in linux
- Category
- Shell
- Title
- find process id of port ubuntu
- Category
- Shell
- Title
- git delete local commit
- Category
- Shell
- Title
- npm install mongoose error npm ERR! code ENOSELF
- Category
- Shell
- Title
- add credentials to git
- Category
- Shell
- Title
- how to kill suspended jobs
- Category
- Shell
- Title
- ubuntu logout
- Category
- Shell
- Title
- bash set environment variable
- Category
- Shell
- Title
- run jar file command line
- Category
- Shell
- Title
- how to know if keras is installed
- Category
- Shell
- Title
- rejected master -> master (non-fast-forward)
- Category
- Shell
- Title
- pygame not installing in ubuntu 20.04
- Category
- Shell
- Title
- reset gui linux
- Category
- Shell
- Title
- docker force remove container
- Category
- Shell
- Title
- pytesseract
- Category
- Shell
- Title
- package 'mana-toolkit' has no installation candidate
- Category
- Shell
- Title
- pyinstaller sklearn
- Category
- Shell
- Title
- batch delete folder
- Category
- Shell
- Title
- how to create a new group in linux
- Category
- Shell
- Title
- chocolatey installation
- Category
- Shell
- Title
- undo commit
- Category
- Shell
- Title
- linux how to close terminal full screen
- Category
- Shell
- Title
- how to get ssh access to a computer
- Category
- Shell
- Title
- list interfaces centos
- Category
- Shell
- Title
- install curl ubuntu
- Category
- Shell
- Title
- linux command print only odd columns
- Category
- Shell
- Title
- change linux user password
- Category
- Shell
- Title
- special bash variables
- Category
- Shell
- Title
- restart service linux crontab
- Category
- Shell
- Title
- pip command not found macos
- Category
- Shell
- Title
- git ignore node_modules
- Category
- Shell
- Title
- how to upgrade maven in linux
- Category
- Shell
- Title
- how to change dotnet version
- Category
- Shell
- Title
- linux find file containing text
- Category
- Shell
- Title
- install expo cli windows
- Category
- Shell
- Title
- check changes after git pull
- Category
- Shell
- Title
- git remove all files in gitignore
- Category
- Shell
- Title
- delete a github repository using curl
- Category
- Shell
- Title
- linux make executable
- Category
- Shell
- Title
- how to upgrade package yarn global
- Category
- Shell
- Title
- Endpoint Security VPN build 986000724 is already installed on this computer.
- Category
- Shell
- Title
- linux get full path
- Category
- Shell
- Title
- npm list global packages
- Category
- Shell
- Title
- send file to aws ec2 termnal
- Category
- Shell
- Title
- how to uninstall in ubuntu
- Category
- Shell
- Title
- react native blank screen linux
- Category
- Shell
- Title
- powershell new item
- Category
- Shell
- Title
- kill process in windows powershell
- Category
- Shell
- Title
- rials db down
- Category
- Shell
- Title
- how to install software in ubuntu
- Category
- Shell
- Title
- install pm2
- Category
- Shell
- Title
- files not showing in ubuntu
- Category
- Shell
- Title
- how to delete a non empty directory in linux
- Category
- Shell
- Title
- gatsby transformer remark
- Category
- Shell
- Title
- how to install node modules python
- Category
- Shell
- Title
- linux create file
- Category
- Shell
- Title
- how to revert to log in git
- Category
- Shell
- Title
- search a tag git
- Category
- Shell