Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: WebServer URLs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebServer URLs




WHY this kind of URL ?    http://kermac.local/WebObjects
and not  				http://kermac.local/Library/WebServer/Documents/WebObjects

It goes back to the fact that you're using a Web server to serve these documents. The Apache document root is configured on your machine as /Library/WebServer/Documents. This directory will be served as the root of your Web site.


Here's a snippet from the Apache documentation:

"In deciding what file to serve for a given request, Apache's default behavior is to take the URL-Path for the request (the part of the URL following the hostname and port) and add it to the end of the DocumentRoot specified in your configuration files. Therefore, the files and directories underneath the DocumentRoot make up the basic document tree which will be visible from the web. "

As an example, imagine you've got a file in your Web server document root called myFile.html. The file will be located in /Library/WebServer/Documents/. Apache will respond to requests for this file at the following your: http://www.yourdomainname.com/myFile.html. Get it?

Colin

---
Colin Clark
Dynamic Web and Database Development Lead,
Resource Centre for Academic Technology,
University of Toronto

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >WebServer URLs (From: Erwin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.