Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Web Server Home Page Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: July 31 2008 at 10:52 | IP Logged Quote GadgetGuy

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 View GadgetGuy's Profile Search for other posts by GadgetGuy
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: July 31 2008 at 11:32 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: July 31 2008 at 13:26 | IP Logged Quote GadgetGuy

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 View GadgetGuy's Profile Search for other posts by GadgetGuy
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: July 31 2008 at 15:58 | IP Logged Quote dhoward

.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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum