Jump to content

Recommended Posts

Posted

I have a ubunut server running the school website. I had port 80 forwarded to that and all working fine. However Ive since come to install hap on the new curriculum server and have run into problems getting it working. I had folders.schoolname.sch.uk forwarded to the curriculum server but im wondering if since I set up my ubuntu server that this is no longer working.

 

I followed the instructions to intall but even when running local host I just get page not found. This is probably a serperate problem as it should work as localhost.

 

Is it possible to have a seperate website server and still have hap working on the curriculum server? and why am I getting page not found on local host?

 

thanks? :(

Posted

Do you mean you want your web server and hap server both accessible from the outside world on port 80? on different servers?

 

if so that is not going to work as your port forward on the firewall/router can only forward to one IP.

 

You could use a non standard port for the HAP port forward ( not a bad idea anyway ) say port 81. and port forward that to port 80 on the hap server.

 

is HAP runing on apache?

 

if so run

 

apache2ctl -S

 

to check what sites are set up.

 

Rob

Posted
Do you mean you want your web server and hap server both accessible from the outside world on port 80? on different servers?

 

if so that is not going to work as your port forward on the firewall/router can only forward to one IP.

 

You could use a non standard port for the HAP port forward ( not a bad idea anyway ) say port 81. and port forward that to port 80 on the hap server.

 

is HAP runing on apache?

 

if so run

 

apache2ctl -S

 

to check what sites are set up.

 

Rob

 

no i was under the impression hap used a different port. I cant remember which ports I requested to be forwarded for hap now but im sure it wasnt 80

Posted

So is the webserver still ok?

 

doing the

 

apache2ctl -S

 

will list the ports that a site is listening on, if it's a secure site you will need to specify https as mentioned above and if it's not 443 then that will have to be specified in the request too.

 

Rob

Posted
@twin--turbo HAP+ requires asp.net which means it needs IIS, thus Windows Server

 

Ahh right, long time since I looked into HAP. My IIS knowledge is not as good as Apache, I assume ( laughs at the thought of microsoft making things easy ) there is some way to list active sites in IIS.

 

Rob

Posted
Is it possible to have a seperate website server and still have hap working on the curriculum server?

 

You mean have two web servers, both running on standard HTTP / HTTPS ports and available via the same IP address? Yes, you can do this with a reverse proxy:

 

mod_proxy - Apache HTTP Server

 

The above information is for Apache, I'm guessing there might be a way to get IIS to do it or to install a separate, stand-alone service that just does reverse proxying. You could probably also use a bit of dedicated hardware (Raspberry Pi?) as a proxy server, to avoid having to install anything on your existing servers, or just set up a separate virtual machine.

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