Skip to content

Commit

Permalink
bonjour script using anonymous vhost on port 9292
Browse files Browse the repository at this point in the history
Useful for local testing on other computers (Windows, iPad, etc)
  • Loading branch information
stepheneb committed Oct 31, 2011
1 parent e351835 commit 432a58a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions bin/bonjour.sh
Original file line number Diff line number Diff line change
@@ -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
#
# <VirtualHost *:9292>
# ServerName avalanche
# DocumentRoot /Users/stephen/dev/test/avalanche-js-git
# PassengerEnabled off
# <Directory /Users/stephen/dev/test/avalanche-js-git >
# Options +Indexes +FollowSymLinks +MultiViews +Includes
# AllowOverride All
# Order allow,deny
# Allow from all
# DirectoryIndex avalanche2d.html
# </Directory>
# </VirtualHost>
#
# 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

0 comments on commit 432a58a

Please sign in to comment.