Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support reverse proxy and alternative paths #352

Closed
jneubert opened this issue Nov 13, 2015 · 3 comments
Closed

Support reverse proxy and alternative paths #352

jneubert opened this issue Nov 13, 2015 · 3 comments

Comments

@jneubert
Copy link
Contributor

I've installed skosmos dev on Centos 5.11 (good news: your installation description works for Centos5 too. I'm not sure however if the program will work cleanly due to the fairly old PHP 5.3.3).

What I wanted to accomplish is to address the installation with a clean URI such as http://zbw.eu/beta/skosmos. This involves

  1. a reverse proxy from our central domain to some obscure IP (which is in place and working) - 1.2.3.4 in the example below.
  2. having the installation directory linked from /var/www/html/beta (instead of /var/www/html).

Currently, a basic skosmos page is displayed. However, the CSS files are not found, neither any other resource or vendor lib.

A link to the search button results in a 404 for http://1.2.3.4/opt/skosmos/en/search?clang=en&q=&vocabs=

@osma
Copy link
Member

osma commented Nov 13, 2015

Hi Joachim!

Skosmos tries to guess the base URL, but in a reverse proxy setup it will be wrong. You will need to force the base URL with a setting like this in config.inc:

define("BASE_HREF", "http://zbw.eu/beta/skosmos/");

This should be documented, it's currently mentioned in the config.inc.dist but it's not easily findable from there.

If you still have problems, maybe bring them up on the skosmos-users mailing list?

@jneubert
Copy link
Contributor Author

Perfect - thanks!

@osma osma added this to the Next Tasks milestone Dec 1, 2015
@osma
Copy link
Member

osma commented Dec 18, 2015

I've now documented this on the ReverseProxy page and added a link from the Configuration page.

@osma osma closed this as completed Dec 18, 2015
@osma osma modified the milestones: 1.4, Next Tasks Dec 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants