curl -H'host: myvirtualserver.localdomain'
Example
curl -H'host: virtualdomain01.com' http://192.168.218.144/
curl -H'host: myvirtualserver.localdomain'
Example
curl -H'host: virtualdomain01.com' http://192.168.218.144/
Here the installing script.
xdm_custom.tar
Here the final result:
Sources:
http://cafim.sssup.it/~giulio/other/Customization_XDM.html
http://go.kblog.us/2012/10/setting-up-xdm-on-debianubuntu-linux.html
Example: checks if the packages in the variable pks are installed. If not, update and install without prompt
#Packages pks="root-tail xdm" echo "Installing required packages if missed" dpkg-query -l $pks if [ "$?" != "0" ] then apt-get update && apt-get -y install $pks fi
#!/bin/bash # Name: /tmp/demo.bash : # Purpose: Tell in what directory $0 is stored in # Warning: Not tested for portability # ------------------------------------------------ ## who am i? ## _script="$(readlink -f ${BASH_SOURCE[0]})" ## Delete last component from $_script ## _base="$(dirname $_script)" ## Okay, print it ## echo "Script name : $_script" echo "Current working dir : $PWD" echo "Script location path (dir) : $_base"