server {
listen 80;
server_name localhost;
location / {
proxy_pass http://tomcat/site/;
proxy_cookie_path /site /;
proxy_set_header Host $host;
}
location /site {
proxy_pass http://tomcat/site/;
proxy_cookie_path /site /;
proxy_set_header Host $host;
rewrite ^/site(.*)$ $1 last;
}
}
server {
listen 80;
server_name cms.localhost;
location /site {
proxy_pass http://tomcat/site/;
}
location /console {
proxy_cookie_path /cms /console;
proxy_pass http://tomcat/cms/console;
proxy_intercept_errors on;
}
location / {
proxy_cookie_path /cms /;
proxy_pass http://tomcat/cms/;
}
# don't like this..! (fixes image previews in cms)
location /binaries {
proxy_pass http://tomcat/site/binaries;
}
}
upstream tomcat {
server localhost:8080;
}
server {
listen 80;
server_name cms.localhost;
location /site {
proxy_pass http://tomcat/site/;
}
location / {
proxy_cookie_path /cms /;
proxy_pass http://tomcat/cms/;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /console {
proxy_pass http://tomcat/cms/console;
proxy_cookie_path /cms /console;
}
}
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://tomcat/site/;
proxy_cookie_path /site /;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
server {
listen 80;
server_name "cms.localhost";
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8080/cms/;
proxy_redirect default;
proxy_cookie_path /cms/ /;
}
location /site/ {
proxy_pass http://localhost:8080/site/;
}
}
--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.
server {
listen 80;
server_name cms.localhost;
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://tomcat/cms/;
proxy_redirect default;
proxy_cookie_path /cms/ /;
}
location /site/ {
proxy_pass http://tomcat/site/;
}
}
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://tomcat/site/;
proxy_cookie_path /site/ /;
}
# shouldn't need this at all
location /site/ {
proxy_pass http://tomcat/site/;
proxy_cookie_path /site/ /;
}
}
upstream tomcat {
server localhost:8080;
}
However, I'm still having the same Channel Manager problems. I've looked through that troubleshooting page you linked me, with no joy. (For example, the http://cms.local.dev/site/_rp/cafebabe-cafe-babe-cafe-babecafebabe./composermode/cms.local.dev/?FORCE_CLIENT_HOST=true&_dc=1429179283902 link in firebug 500's, not 404s. It looks to be in a different format to the example on that troubleshooting page...). I can't see anything obviously wrong with my host configurations, and enabling diagnostics didn't show anything more that helped me understand the problem.
I'm still getting this printed out to the logs each time:
[INFO] [talledLocalContainer] 16.04.2015 11:15:31 WARN http-bio-8080-exec-14 [HstFilter.doFilter:526] ContainerException for '/site/_rp/cafebabe-cafe-babe-cafe-babecafebabe/composermode/cms.local.dev/': org.hippoecm.hst.core.container.ContainerException: CXFJaxrsHstConfigService expects a 'uuid' as pathInfo but was 'cafebabe-cafe-babe-cafe-babecafebabe/composermode/cms.local.dev'. Cannot process REST call
Almost there!...
I've tried making the config match your example perfectly, and everything works except the homepage form submit (hence the proxy_set_header), and the Channel Manager still fails in the same way.
I've also tried playing with the CMS console to fix this, but if I'm honest I'm out of ideas...
...
--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.
http {
underscores_in_headers on;
}