URL Redirect PHP script for Horde Rumi, October 12, 2008November 6, 2008 I nearly got mad implementing horde in virtualmin. Though this section will not tell how the Horde was setup. Anyways, HORDE needs to work under /horde framework. I know this can be fixed up in registry.php file and can be used as /groupware or something.But the best should be a PHP redirecting script that will call the HOST name and add up the siffix /horde/imp like that. Well, let’s come to the precise point- I want that any domain user will type http://mydomain/webmail and will see Horde IMP- the IMAP version of the Horde frameworked webmail So how to do this? 2 things need to be done- Create a /webmail alias & redirect path in Apache Default Server to /var/www/horde Create an index.php file inside /var/www/horde Put the following code in index.php<? $host=$_SERVER[‘HTTP_HOST’]; echo “$host”; ?> <?php header(“location:http://$host/horde/imp”); exit; ?> By default Horde creates a /horde in Apache default server alias & redirect section which sends back to /usr/share/horde installation path That’s it! You’re done. But, you need to restart apache after updating your alias & redirect job. In case your PHP code gives a blank output! Then you can use the following html code with java embeding- <html><head> <meta http-equiv=”refresh” content=”0; URL=/horde/imp”> <script language=”JavaScript” type=”text/javascript”> <!– function redirect() { setTimeout(“window.location.replace(‘/horde/imp’)”, 0); } –> </script> </head> That should do as well! Related Configurations (Linux) Scripts
List prosody users on Jitsi VB August 6, 2020 For administration thoughts, i wonder if there is a command, prosodyctl or other, which can give a list of user registrered on prosody. Apparently there is a way- just look into your /var/lib/prosody/[domain]/accounts Folder and type in “ls” then count thr .dat files Related Read More
Network Configuration on Debian or Ubuntu August 24, 2012 Setting up an Ethernet Interface The majority of network setup can be done via the interfaces configuration file at /etc/network/interfaces. Here, you can give your network card an IP address (or use dhcp), set up routing information, configure IP masquerading, set default routes and much more. Remember to add… Read More
Install SmokePing on CentOS 7 August 6, 2021August 7, 2021 This tutorial explains how to install Tobias Oetiker’s Smokeping into /opt/smokeping on a CentOS 7 box. Features of Smokeping: – Best of breed latency visualisation. – Interactive graph explorer. – Wide range of latency measurement plugins. – Master/Slave System for distributed measurement. – Highly configurable alerting system. – Live Latency… Read More