Good day. Got some issues with configuring centos server with nginx + php-fpm. Cant change base URL on server, every time it comes back to using IP as access adress of server.
Add a screenshots of configure files of tomcat and nginx.
Hi Aleksei,
I understand you are having trouble configuring the base URL to use a proxied URL instead of an IP address and port. Since you are using a Synchrony location in your NGINX configuration, I am assuming you are using a version of Confluence later than 6.0.
I noticed your server.xml is different from the documentation (How to use NGINX to proxy requests for Confluence) in the way the context path is defined. Here is an example of default server.xml "out of the box":
<Server port="8000" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<Connector port="8090" connectionTimeout="20000" redirectPort="8443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol" />
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false" startStopThreads="4">
<Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
<!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
<Manager pathname="" />
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60" />
</Context>
<Context path="${confluence.context.path}/synchrony-proxy" docBase="../synchrony-proxy" debug="0" reloadable="false" useHttpOnly="true">
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60" />
</Context>
</Host>
</Engine>
<!--
To run Confluence via HTTPS:
* Uncomment the Connector below
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
with a password value of "changeit" for both the certificate and the keystore itself.
* Restart and visit https://localhost:8443/
For more info, see https://confluence.atlassian.com/display/DOC/Running+Confluence+Over+SSL+or+HTTPS
-->
<!--
<Connector port="8443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25"
protocol="org.apache.coyote.http11.Http11NioProtocol"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocols="TLSv1,TLSv1.1,TLSv1.2" sslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2" SSLEnabled="true"
URIEncoding="UTF-8" keystorePass="<MY_CERTIFICATE_PASSWORD>"/>
-->
</Service>
</Server>
Please try these steps:
I look forward to hearing whether you can successfully configure the Base URL after reviewing the linked documentation and trying the default context path setting.
Thanks,
Ann
Redirecting is working now. But got another problem, infinity upload of page creating. https://confluence.atlassian.com/confkb/after-upgrading-confluence-you-are-unable-to-create-new-pages-or-spaces-785457379.html?utm_medium=logScan&utm_source=STP , already did all what said in resolution, it didnt help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
2018-04-26 15:07:21,736 INFO [172.31.0.75-startStop-1] [com.atlassian.confluence.lifecycle] init Confluence is ready to serve
2018-04-26 15:07:41,533 WARN [http-nio-8080-exec-3] [webresource] findItChangesArguments cyclic plugin resource dependency has been detected with: com.atlassian.conflue
-- referer: http://wiki.alfaic.ua/pages/createpage.action?spaceKey=IT | url: /rest/webResources/1.0/resources | traceId: 33403fd1dcb0262e | userName: aicwikiadmin
2018-04-26 15:07:41,550 WARN [http-nio-8080-exec-3] [webresource] findItChangesArguments cyclic plugin resource dependency has been detected with: com.atlassian.conflue
-- referer: http://wiki.alfaic.ua/pages/createpage.action?spaceKey=IT | url: /rest/webResources/1.0/resources | traceId: 33403fd1dcb0262e | userName: aicwikiadmin
2018-04-26 15:08:41,019 WARN [http-nio-8080-exec-1] [webresource] findItChangesArguments cyclic plugin resource dependency has been detected with: com.atlassian.conflue
-- referer: http://wiki.alfaic.ua/pages/createpage.action?spaceKey=IT | url: /rest/webResources/1.0/resources | traceId: 057375800ee2fbc6 | userName: aicwikiadmin
2018-04-26 15:08:41,025 WARN [http-nio-8080-exec-1] [webresource] findItChangesArguments cyclic plugin resource dependency has been detected with: com.atlassian.conflue
-- referer: http://wiki.alfaic.ua/pages/createpage.action?spaceKey=IT | url: /rest/webResources/1.0/resources | traceId: 057375800ee2fbc6 | userName: aicwikiadmin
text in logfile
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Interesting - since the error is plugin related, please try clearing the plugin cache as described in How to clear Confluence plugins cache.
Do the errors really not list the entire plugin name? The errors in this bug report do list them so it's more convenient to troubleshoot:
2015-07-16 17:26:18,856 WARN [http-nio-8099-exec-5] [webresource] resolveBundleDependencies cyclic plugin resource dependency has been detected with: confluence.web.resources:ajs, stack trace: [_context:onboarding, com.atlassian.confluence.plugins.confluence-onboarding:onboarding-flow-resources, com.atlassian.confluence.plugins.confluence-user-profile:avatar-picker, confluence.web.resources:ajs, confluence.web.resources:meta, confluence.web.resources:jquery]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately, it doesnt help, still infinity window of page creating. Can it be cause of my nginx cfg file have no next strings
location /synchrony {
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:8091/synchrony;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.