Jump to content

Recommended Posts

Posted

Hi All,

 

I have previously setup HAP using IIS 7.5 and it's own sub-domain site to test it our before going live with our school. Now I am trying to set it up again from scratch but as an application onto our school website which runs wordpress. I have setup the HAP application pool, added the https binding and added HAP as an application to our existing website but whenever I browse to the site to setup.aspx all checks are showing a red X.

 

I have checked the IIS AppPool\HAP permissions and they seem correct and have tried opening basestyle.css which opens fine.

 

I have tried accessing /api/test and /api/seup but both are showing 403 - Forbidden

 

I have debuged in firefox and it says:

[TABLE=class: spyHeadTable focusRow outerFocusRow]

[TR=class: spyRow]

[TD=class: spyTitleCol spyCol]GET https://www.website.com/HAP/api/test?1368184982402

[/TD]

[TD=class: spyCol] - 403 Forbidden

[/TD]

[TD=class: spyCol][/TD]

[TD=class: spyCol][/TD]

[TD=class: spyCol][/TD]

[/TR]

[/TABLE]

[TABLE=class: spyHeadTable focusRow outerFocusRow]

[TR=class: spyRow]

[TD=class: spyTitleCol spyCol]GET https://www.website.com/HAP/api/setup/help -

[/TD]

[TD=class: spyCol]403 Forbidden

[/TD]

[TD=class: spyCol][/TD]

[TD=class: spyCol][/TD]

[/TR]

[/TABLE]

 

I have changed the AppPool that my school website uses and the error in firefox changes to:

[TABLE=class: spyHeadTable focusRow outerFocusRow]

[TR=class: spyRow]

[TD=class: spyTitleCol spyCol]GET https://www.website.com/HAP/api/test?1368184982402

[/TD]

[TD=class: spyCol] - 404 Not Found

[/TD]

[TD=class: spyCol][/TD]

[TD=class: spyCol][/TD]

[TD=class: spyCol][/TD]

[/TR]

[/TABLE]

[TABLE=class: spyHeadTable focusRow outerFocusRow]

[TR=class: spyRow]

[TD=class: spyTitleCol spyCol]GET https://www.website.com/HAP/api/setup/help -

[/TD]

[TD=class: spyCol]404 Not Found

[/TD]

[TD=class: spyCol][/TD]

[TD=class: spyCol][/TD]

[/TR]

[/TABLE]

 

Thanks for any suggestions in advance.

Posted (edited)

Thanks for the reply Nick,

 

The HAP folder is already an application though, the HAP files are not located in the same directory as my school website but I right clicked on the site and clicked add application and did it that way. Would that make a difference?

 

HAP Application.png

Edited by Paul-K
Posted

Ok, that's the correct way of doing things, it's very odd that it isn't working correctly.

 

Double check the Application Pool that HAP is using, to check it's using the HAP App Pool and that the app pool is set to ASP.net 4.0 Integrated Pipeline.

Posted

Hi Nick, I've completely removed IIS and started again, I've put my school website and HAP on the default website, HAP is running as an application as before under the HAP AppPool and the school website is running under the Default AppPool, all permissions are set correctly and all is working apart from services activated still having a red X. I have a HTTP binding with the school website as the Header and a HTTPS binding that is registered to the school website also. If I remove the HTTP binding, services activated works but I need both bindings as the school website runs on HTTP.

 

Is there any way around this?

 

Many thanks for any suggestions you may have

Posted
Sorry I don't quite follow. Are you saying I should setup a new site for HAP all on it's own and add the HTTPS binding and setup a separate site for my school website with the HTTP binding, this would mean that HAP is no longer running as an Application but as a site but would also mean my URL rewrite would no longer work as there is no HTTP binding for it to redirect from.
Posted
Basically, keep HAP in the sub folder, you can also copy your main site over to the HTTPS site as well, then on the http site, make a folder and set it to redirect to the https site when you go to the hap folder, if that makes any sense.
  • Thanks 1
Posted

Thanks for that Nick, I now have my school website and applications (phpmyadmin & HAP) setup on one HTTPS site and my school website with a HTTP binding and two folders with HTTP redirects to go to my HTTPS sites.

 

Thanks for your help with this, I hadn't even considered putting folders with redirects.

 

As always your help is spot on.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...