Creating Domain Parking Page in Virtualmin Rumi, October 4, 2008 Well, who ever set up virtualmin must be sick in seeing the default CentOS Apache page! I bet you do- since this it concerns to other hosted domains and virtual servers! Follow the default pages instrucitons- it’s already there! Go to /etc/httpd/conf.d Open welcome.conf with the text editor and look for the following texts. I used winscp for this <LocationMatch “^/+$”> Options -Indexes ErrorDocument 403 /error/noindex.html </LocationMatch> Now create your own landing page like landing.html. If you’re good at PHP coding you can use a funciton like I used for mine- <? $host=$_SERVER[‘HTTP_HOST’]; echo “$host”; ?> Remember if you use PHP codes then you should rename your landing.html to landing.php Now go to /var/www/error Copy our landing.php this path Restart Apache Walla! you now have your custom Domain Parking Page in Virtualmin! Related Configurations (Linux)
SPF, DKIM, DMARC – Sample and perfect record values January 27, 2019 Sharing some sample record value of the post subject for future reference: SPF: domain.gov.bd. IN TXT “v=spf1 a mx ip4:1.2.3.4 ?all” DKIM: MDaemon._domainkey.domain.gov.bd. IN TXT “v=DKIM1; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDIaJcNDjvJ6LJ/zyZCIOuaQiLMSC+FBfky8JMFE7LUGlP4LXwmpaKO3Z67x+PVXgYbbFU9nzLaFOfIXTbsCh6LYLBgQF+PNghbTAchQ59IEMrMRsTPCCg95+gKYRupN0B96Uz7rrXifZL8T+yl9MkpIlAsXXs7e8Vhzwa94NdVjQIDAQAB” DMARC: _dmarc.domain.gov.bd. 3600 IN TXT “v=DMARC1; p=quarantine; sp=quarantine; rua=mailto:postmaster@domain.gov.bd; ruf=mailto:postmaster@domain.gov.bd; rf=afrf; pct=100; ri=86400” DMARC Generator: https://www.unlocktheinbox.com/dmarcwizard/ Related Read More
Ubuntu 18.04: Disable Netplan switch back to networking /etc/network/interfaces February 24, 2020June 17, 2020 The following procedure works for Ubuntu 18.04 (Bionic Beaver) I. Reinstall the ifupdown package: # apt-get update # apt-get install ifupdown II. Configure your /etc/network/interfaces file with configuration stanzas such as: source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback allow-hotplug enp0s3 auto enp0s3 iface enp0s3 inet static address 192.168.1.133 netmask 255.255.255.0 broadcast 192.168.1.255… Read More
IP Setting on CentOS6 using Shell Script December 6, 2015 #!/bin/bash if [ $# -eq 5 ] then echo “” echo “Taking the backup and Changing the hostname from $(hostname) to $1 …” sed -i.bk “s/$(hostname)/$1/g” /etc/sysconfig/network echo “” echo “Backing up & Assigning the Static IP …” echo “” cp /etc/sysconfig/network-scripts/ifcfg-$2 /etc/sysconfig/network-scripts/$2.bk cat <<EOF > /etc/sysconfig/network-scripts/ifcfg-$2 DEVICE=$2 BOOTPROTO=static IPADDR=$3.$4… Read More