<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">Yup, I had been thinking that while waiting for replies here and you got it exactly right. <br><br>It was easy. My problem is that I'm not that great at nginx rewrite rules. For everyone's edification I just added the line below after my main location block(location / { proxy_redirect off; etc...)<br><br><span style="font-style: italic;"> location /opencms {
<br> rewrite ^/opencms/(.*)$ /$1;
<br> }</span><br><br><div><span><br></span></div><div><br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr">
<hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Stephan Hartmann <hartmann@metamesh.de><br> <b><span style="font-weight: bold;">To:</span></b> Marc Johnson <originalstoic@yahoo.com>; The OpenCms mailing list <opencms-dev@opencms.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, September 9, 2013 5:47 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [opencms-dev] Problem with nginx opencms workplace configuration<br> </font> </div> <div class="y_msg_container"><br><div id="yiv2605385975"><div dir="ltr">Hi Marc,<br><br>I guess you have to add a location for "/opencms" to be passed to <a rel="nofollow" target="_blank" href="http://127.0.0.1:8081/opencms/">http://127.0.0.1:8081/opencms/</a> as well or prevent in some other way that requests that already point to the opencms servlet become prefixed with another "/opencms" again.<br>
<div><br></div><div>Regards,<br></div><div>Stephan<br><br></div></div><div class="yiv2605385975gmail_extra"><br><br><div class="yiv2605385975gmail_quote">2013/9/7 Marc Johnson <span dir="ltr"><<a rel="nofollow" ymailto="mailto:originalstoic@yahoo.com" target="_blank" href="mailto:originalstoic@yahoo.com">originalstoic@yahoo.com</a>></span><br>
<blockquote class="yiv2605385975gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:12pt;font-family:times new roman, new york, times, serif;">The workplace is working generally except the popup boxes(gallery, vfs file paths, in admin... the Group box, etc ...) within the workspace are throwing errors.<br>
<br>for example if I click the box in User Administration to create a new Group and then go to select a Parent Group, I get vfs resource not found with the requisite stack trace. <br><br>Upon further investigation in the code I see that a js function is called:<br>
<br>"javascript:openGroupWin('/opencms/system/workplace/commons/group_selection.jsp','EDITOR', 'parentGroup.0', document, null, null, '');"<br><br>Clearly the problem is that the /opencms/ on the front end is not getting stripped out when the popup happens. Sure enough when I remove the opencms and do just <a rel="nofollow" target="_blank" href="http://mydomain.com/system...(path">mydomain.com/system...(path</a> from above), the correct working workplace page is
rendered. This is what's happening in every other case so the workplace is quite functional.<br><br>So... can anybody say why nginx is handling this everywhere else in the workplace but not for these popups. Has anyone seen this before? My nginx settings are below.<br>
<br>server {<br> listen 83;<br> #server_name <a rel="nofollow" target="_blank" href="http://mydomain.com/">mydomain.com</a>;<br> listen [::]:83 default_server ipv6only=on;<br> root /usr/share/tomcat7/webapps/ROOT/;<br> index index.html index.htm index.jsp;<br>
<br> # Make site accessible from <a rel="nofollow" target="_blank" href="http://localhost/">http://localhost/</a><br> server_name localhost;<br><br> location / { <br> proxy_redirect off;<br>
proxy_pass <a rel="nofollow" target="_blank" href="http://127.0.0.1:8081/opencms/">http://127.0.0.1:8081/opencms/</a>;<br> proxy_set_header X-Real-IP $remote_addr;<br> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>
proxy_set_header Host $http_host; <br> }<br><br> location /export {<br> try_files $uri /handle404?exporturi=$uri&$args;<br> expires 24h;<br> add_header Cache-Control private;<br>
}<br><br> location /external {<br> expires 24h;<br> add_header Cache-Control private;<br> }<br><br> location /resources {<br> expires 24h;<br> add_header Cache-Control private;<br>
}<br>}<br></div></div><br>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a rel="nofollow" target="_blank" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br></div></div><br><br></div> </div> </div> </div></body></html>