Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
When I drag my index.html to google chrome I get this: Your website.
Create and publish your own website quickly and easily using iWeb, Pages, and many other applications available for Mac OS X.
It’s a snap to create and publish your own website from your Mac. When your site is ready, it’s just as easy to publish it.
Open System Preferences and click Sharing, then select Web Sharing.
Your done. Your site is now available on your private network at home or work.
If you’re connected to the Internet, it can also be available to friends everywhere. Just send them the address shown in Sharing preferences.
Apache Power Web Sharing is built on the Apache web server, an industry standard technology included with Mac OS X. For more information about the Apache web server, see the Apache manual.
Because this computer is owned by my company I don't see a "web" sharing option? Can you help?
Mike Baxter4,442 Points
Web Sharing is only necessary/useful if you want to view that site from a different device, but they both have to be on the same network. For instance, if I make PHP form on my computer, and then I want to test it on my iPhone—and they happen to be on the same network—then I can use web sharing.
So first I would say, is it even necessary? You can load any HTML page you make immediately in a web browser—there's no need for web sharing unless you want to view it on another device on the same network. If you're just learning HTML, I would advise against trying to set this up. (However, if you're learning PHP, it's nearly essential.)
If you decide you really do need to go to the trouble to do web sharing to view your stuff on another device, check your OS version on Mac. (Click the Apple, then "About This Mac", then look for the version number.) The current version (Mavericks) is 10.9.1. On Mavericks—this latest OS release—they removed the "web sharing" option and made it on by default. If you want to do PHP, however, you have to do some custom command-line stuff to get it work.
Hopefully you don't have to deal with any of this!
Avoid making websites in Pages, Microsoft Word, iWeb, or anything like that. Take a look at the new "How to Make a Website" project—it'll get you up to speed really quick. If you're not interested in learning but just want to make something, I recommend looking into something like Squarespace, which has really nice drag and drop features.
Hope that helps!
Richmond Lauman28,793 Points
If I understand correctly, you just want your index page to display in Chrome when you drag the file into Chrome and you don't want the ad for iweb and nonsense about web sharing options. Is that right?
I am not sure why you get that. When I drag an html file to Chrome it just displays the page, but I have a PC. Maybe it is a Mac thing... Anyway, you can always browse to the index file and open it from Chrome if dragging is not working for you.