Jump to content

Recommended Posts

Posted

Did you remove the entries in the web.config that are not required as you have to remove some depending on which version of IIS your using so if your using IIS 8 then remove the following section from your web.config:

 

     
     
     
     
     
     
     
     
     
     
     
     
     
   

 

Hopefully that helps :)

Posted

If you go to the location of your HAP files you should see a file called 'Web' which will be your web.config (see below image):

 

hap1.PNG

If you open the web.config file in a text editor (notepad, notepad++ etc) you should be able to use CTRL + F to find the following line:

 

 

Once found delete the following section:

 

          
     
     
     
     
     
     
     
     
     
     
     
     
   

 

Save the file and I would also recycle the application pool and restart the site on IIS just to make sure the configuration applies correctly. You should find that HAP is now working once those changes have been made.

  • Thanks 1
Posted
are you testing as I thought you needed to use https your image shows http

 

Nice spot, missed that one, that will also be something you require so just use a self signed while your testing.

Posted

This will be for use in school but yes i am just testing. The school has its own ssl certificate but the real question is how will i be able to make people be able to access the server/hap externally on a web address? what steps will i need to do in order to create such a web address so people can us it at home?

 

Thanks

Posted

It depends on if you want the server to handle the requests itself or have traffic go through some sort of firewall/proxy on your end. It's pretty easy to make the server accessible externally since you just have to create the required DNS record on your domain controllers to point a specific sub domain to your HAP server and then the server will serve the default website on IIS to that address.

 

You will of course need an external IP address as well so users can access HAP externally, as we use virgin for our ISP we just ask them to point one of our external IP's to a specific internal address but as above if your using a firewall/proxy then it would require some more fancy networking.

Posted (edited)

Hi Guys, After installing it on 2012 and refreshed the app pool and the web config file it is still not working. It is now asking me to do something else (see error message). Is this normal? Have i missed something? Its starting to get to me! WP_20160718_002.jpg

 

Update......

After removing the script highlighted in red above it now says there is an authentication issue. Any ideas?

WP_20160718_003.jpg

 

Thanks

Edited by ITBlandster
Posted (edited)
Thanks, i will try this and let you know how i get on. I did try this but it refused to connect, it is mostly likely due to me not having an ssl certificate Edited by ITBlandster
Posted

The errors appear in http but i haven't tried it in https as it keeps saying "refusing to connect" when doing local host and through the ip, is this due to me not having an ssl certificate? At this stage i just want to test to see if it works. So if i ran it in https, will the issues (above) dissapear?

 

Thanks

Posted
The errors appear in http but i haven't tried it in https as it keeps saying "refusing to connect" when doing local host and through the ip, is this due to me not having an ssl certificate? At this stage i just want to test to see if it works. So if i ran it in https, will the issues (above) dissapear?

 

Thanks

 

I set it up with https and haven't received any errors, I think it requires https.

 

I have it setup so that the address is hap.domainname.net and then created an internal A Record in DNS for that server

Posted (edited)

ahh i see, have you tried it in http to see if you are getting same errors? I have an ssl certificate for our school domain so i can just install that on iis and i can create the A record in dns on our dc. Also how did you set up the address?

 

Thx

Edited by ITBlandster
Posted
ahh i see, have you tried it in http to see if you are getting same errors? I have an ssl certificate for our school domain so i can just install that on iis and i can create the A record in dns on our dc. Also how did you set up the address?

 

Thx

 

I didn't try it with http, sorry. I have removed it now too. If you still get stuck I can put it back on again later today, only took 10 minutes.

Posted
So how did you create the address? this is the part i am really stuck on.

 

Right click on the website and then click "Edit Bindings" in there should be an option for "Host Name" fill it in there :)

 

So I put in there hap.domainname.net you can choose whatever subdomain you want.

Posted
ok i have done that. So how do i get that web address to be accessed externally? :)

 

If you have it working internally you need to edit the dns of your domain name and do the same as you have done. You need to create an A record that points to your public IP address and make sure you forward the https port to your server.

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...