Browsers learn a URL (Uniform Useful resource Locators) to inform them what to open.
It is a string that begins with a scheme after which a :. Examples of this are http:, https:, file:
You possibly can see the scheme that the present web page you’re looking at within the handle area of your browser for those who click on on the handle.
When you click on on the file in Finder or use open and a file identify the browser will probably be given a URL with a scheme of file: . This tells the browser to learn the file on the handle given.
If you wish to learn by Apache you are attempting to make use of an internet server. Apache will present pages usually utilizing the http scheme. I overlook what the precise default setup of Apache is however assume it reads information from ~/Public/Websites and you’ve got a file check.html in there. To entry that file you have to to make use of a URL of kind http://ip-address/location
For a neighborhood Apache server the ip-address will probably be 127.0.0.1 or utilizing DNS localhost or you too can use the ip of your machine in your native handle or utilizing bonjour machine-name.native
So to learn your file it might be http://localhost/~username/check.html The ~ is assuming you will have setup Apache to map a username to ~/Public/websites.
There are numerous different methods to configure Apache so that you MUST learn the setup directions to create the configuration. This would come with telling Apache the place to learn information from, whether or not it ought to use safe http (which it is best to do if anybody is utilizing the server from one other machine.
The configuration additionally maps what’s a part of the URL after http://ip-address/ onto cope with CGI/PHP and many others.
man http will begin you on what to do, nonetheless I feel it’s probalby higher to make use of one thing apart from the default Apple offered Apache.
