Get a VPS that offers 2 or more IP addresses.
From the WHM cPanel, find the menu item Service Configuration
, select Apache Configuration
and then click on Reserved IPs Editor
.
.ipad-only, .iphone-only, .retina-only, .non-retina-only, .retina-iphone-only, .non-retina-iphone-only { display: none; } | |
/* ---------- iPad Only ---------- */ | |
@media only screen and (device-width: 768px) { | |
.ipad-only { display: block; } | |
} | |
/* ---------- iPhone/iPod Only ---------- */ | |
@media only screen and (device-width: 320px) { | |
.iphone-only { display: block; } |
Provided that you already have a file or stream segmenter generating your .m3u8 playlist and .ts segment files (such as the ffmpeg 'hls' muxer), this little node server will serve up those files to an HLS compatible client (e.g. Safari). If you're using node for your streaming app already, this obviates the need to serve the HLS stream from a separate web server.
loosely based on https://gist.github.com/bnerd/2011232
// loosely based on https://gist.github.com/bnerd/2011232
// requires node.js >= v0.10.0
// assumes that HLS segmenter filename base is 'out'
// and that the HLS playlist and .ts files are in the current directory
/*! | |
* Grunt | |
* $ npm install grunt-contrib-uglify grunt-autoprefixer grunt-contrib-cssmin grunt-contrib-imagemin grunt-contrib-sass grunt-contrib-watch grunt-contrib-concat grunt-contrib-clean grunt-contrib-jshint grunt-notify --save-dev | |
*/ | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
// Sass |
100 Continue | |
101 Switching Protocols | |
102 Processing (WebDAV; RFC 2518) | |
200 OK | |
201 Created | |
202 Accepted | |
203 Non-Authoritative Information (since HTTP/1.1) | |
204 No Content | |
205 Reset Content | |
206 Partial Content |
#!/bin/sh | |
# Based on instructions found here: http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat#FFMpegInstallationonCentOSandRedHat-InstallX264 | |
if [ "`/usr/bin/whoami`" != "root" ]; then | |
echo "You need to execute this script as root." | |
exit 1 | |
fi | |
cat > /etc/yum.repos.d/centos.repo<<EOF |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: nginx init.d dash script for Ubuntu <=9.10. | |
# Description: nginx init.d dash script for Ubuntu <=9.10. | |
### END INIT INFO |
#install dependencies | |
sudo add-apt-repository ppa:ondrej/php -y && sudo apt-get update && \ | |
sudo apt-get install make \ | |
php5.6 \ | |
php5.6-mongo \ | |
php-pear \ | |
php5.6-dev \ | |
php5.6-mysql \ | |
php5.6-common \ | |
php5.6-cli \ |
#!/bin/bash | |
PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
DESC="Kibana 4" | |
NAME=kibana | |
DAEMON=/opt/kibana/bin/$NAME | |
DAEMON_ARGS="" | |
PIDFILE=/var/run/$NAME.pid | |
SCRIPTNAME=/etc/init.d/$NAME | |
LOG=/var/log/kibana.log |
Install Python 2.7
sudo apt-get install python2.7
Install pip
cd