Skip to content

Instantly share code, notes, and snippets.

@joshed-io
Created September 27, 2011 23:41
Show Gist options
  • Save joshed-io/1246567 to your computer and use it in GitHub Desktop.
Save joshed-io/1246567 to your computer and use it in GitHub Desktop.
Add a directory to your Mac OSX web sharing server by editing apache conf
#substitute 'dzello' in these examples with your OSX account's username
#substitute the illustrative repository path (preview_markdown_locally) with your repository path
#add these lines to the file at /etc/apache2/users/dzello.conf
Alias /~dzello/preview_markdown_locally "/Users/dzello/workspace/preview_markdown_locally"
<Directory "/Users/dzello/workspace/preview_markdown_locally">
Order allow,deny
Allow from all
</Directory>
#then uncheck and recheck 'Web Sharing' in OSX > Settings > Sharing
#you're done! now navigate your browser to:
#http://localhost/~dzello/preview_markdown_locally/README.html
#check out http://blog.joshdzielak.com/view-and-iterate-on-your-github-readmemd-loca for an explanation of preview_markdown_locally
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment