Author |
|
GadgetGuy Super User
Joined: June 01 2008 Location: United States
Online Status: Offline Posts: 942
|
Posted: July 31 2008 at 10:52 | IP Logged
|
|
|
I am running my own web pages on the PH web server, and currently accessing them at http://myURL/index.html.
I would rather just use the bare URL without the index.html extension.
Accordingly I set up the PH server as:
Thinking that if I set the "Main" page to my index.html that is what PH would open as a Home page. Instead I always get the default "/ph-cgi/main" page.
Is it possible to do what I want?
__________________ Ken B - Live every day like it's your last. Eventually, you'll get it right!
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: July 31 2008 at 11:32 | IP Logged
|
|
|
Ken,
Unfortunately, in the current version this will not work. Ive gone ahead and modified the webserver so that in the next beta, it will.
The way it currently works, if you don't specifically specify the file and only use the form of http://myurl, then PH will first check for the presence of index.psp, followed by index.htm and if neither of those are found, will then give you the default /ph-cgi/main. Ive changed the next beta so that it will now first check index.psp, index.asp, index.html, and last index.htm.
In the meantime, to make it work (and keeping with current security settings, etc.), make an index.htm file with the following code:
Code:
<SCRIPT>location.replace("/index.html")</SCRIPT> |
|
|
and change the Main page and Menu URL 1 to point to index.htm. This should give you the desired results until the next beta.
HTH,
Dave.
|
Back to Top |
|
|
GadgetGuy Super User
Joined: June 01 2008 Location: United States
Online Status: Offline Posts: 942
|
Posted: July 31 2008 at 13:26 | IP Logged
|
|
|
Thanks Dave.
Actually with the new knowledge of how you parsed your web folder for the initial page, I thought it would just easier to change my Home page file from index.html to index.htm.
When I did that, however, I am no longer able to access my THERMOSTAT parameters with an expression like: <%ph_getanalog("TSTATTEMP")%>
An empty string is returned. I'm guessing that the <%..%> processing does not expect a Home page substitution?
Sooo. I changed back to "html" and will just patiently await the beta release.
__________________ Ken B - Live every day like it's your last. Eventually, you'll get it right!
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: July 31 2008 at 15:58 | IP Logged
|
|
|
.htm is not processed for PSP tags. Only .psp, .asp, and .html. Security settings for .psp and .asp are covered under the setting for .psp. Security settings for .htm and .html are covered undered the setting for .htm.
You could change your main page to index.psp (or index.asp) and it will be parsed, but access will then be controlled by the access setting for PSP rather than the way it works now with the access controlled by the setting for HTM.
Dave.
|
Back to Top |
|
|