Created
September 27, 2011 23:41
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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