Skip to content

Instantly share code, notes, and snippets.

@trey
Created June 28, 2012 02:04
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save trey/3008281 to your computer and use it in GitHub Desktop.
Save trey/3008281 to your computer and use it in GitHub Desktop.
Use xip.io with a home-grown Apache VirtualHost setup

Use xip.io with a home-grown Apache VirtualHost setup

  • Start here.
  • Add a ServerAlias line to your VirtualHost definitions.
<VirtualHost *:80>
	DocumentRoot "/Users/you/Sites/sitename"
	ServerAlias sitename.*.xip.io
	ServerName sitename.dev
</VirtualHost>

Then you'll be able to browse to sitename.[IP address].xip.io on your iPhone or what-have-you as long as you're on the same network.

Source

@trey
Copy link
Author

trey commented Jun 28, 2012

This is a Solutions Log post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment