Skip to content

Instantly share code, notes, and snippets.

@kenng
Forked from trey/xip_io_apache.md
Created December 19, 2016 02:40
Show Gist options
  • Select an option

  • Save kenng/04c6840a8deb83d4f785fe6e163138e6 to your computer and use it in GitHub Desktop.

Select an option

Save kenng/04c6840a8deb83d4f785fe6e163138e6 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

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