From 432a58a7dd85a83d24c25c81c98fffef7933a139 Mon Sep 17 00:00:00 2001 From: Stephen Bannasch Date: Mon, 31 Oct 2011 00:03:40 -0400 Subject: [PATCH] bonjour script using anonymous vhost on port 9292 Useful for local testing on other computers (Windows, iPad, etc) --- bin/bonjour.sh | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 bin/bonjour.sh diff --git a/bin/bonjour.sh b/bin/bonjour.sh new file mode 100755 index 0000000..ea9cd76 --- /dev/null +++ b/bin/bonjour.sh @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Serve this folder via bonjour to make it easier to test +# locally on other computers (Windows, iPad, etc) +# +# Prerequisites: +# +# Setup an anonymous Apache virtual host on an unused port. +# In this script I am using port 9292 +# +# Add somthing like the following to: +# +# file: /etc/apache2/extra/httpd-vhosts.conf +# +# +# ServerName avalanche +# DocumentRoot /Users/stephen/dev/test/avalanche-js-git +# PassengerEnabled off +# +# Options +Indexes +FollowSymLinks +MultiViews +Includes +# AllowOverride All +# Order allow,deny +# Allow from all +# DirectoryIndex avalanche2d.html +# +# +# +# Add this Listen directive to get apache to listen on 9292: +# +# file: /etc/apache2/httpd.conf +# +# Listen 9292 +# +# After starting on my compoter the page is served at this url: +# +# http://stepheneb.local.:9292/ +# + +dns-sd -R "Avalanche2D" _http._tcp . 9292 \ No newline at end of file