OSC / ood-ansible

An ansible role for Open Ondemand
MIT License
30 stars 31 forks source link

Open OnDemand portal page is not accessible if Apache2 default site is enabled #239

Open mikej888 opened 8 months ago

mikej888 commented 8 months ago

Environment:

After deployment, browsing to http://localhost/ shows the 'Apache2 Default Page'.

This is because the Apache 2 default site is enabled:

$ sudo ls -1 /etc/apache2/sites-enabled/
000-default.conf
ood-portal.conf

Please could the role be extended to disable this site if it is enabled.

johrstrom commented 8 months ago

I think that's a known issue for apache on Ubuntu. Documentation indicates you likely need a servername for apache to respond correctly.

image

https://osc.github.io/ood-documentation/latest/installation/install-software.html#verify-installation

I'm not 100% sure what this role can do here - I don't think we should remove/modify other conf files. We could possible enforce the need for servername - but some centers don't use it for whatever reason.

mikej888 commented 8 months ago

Thanks:

I'm not 100% sure what this role can do here - I don't think we should remove/modify other conf files

I can appreciate that. I'm happy to stick with my workaround of disabling the default site via my playbook. I'm happy for this issue to be closed.