Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Images don't load when I change baseurl

1.  I  change the baseurl  from   wiki.zhenrongbao.com to  wiki.surfin-cn.com 

2.  When I browse articles created before the domain change, the images in these articles are not downloading properly ,as flow:wiki-image-error.png

Image download address contains the string "http://wiki.zhenrongbao.com" , i think that's the  problem

I modified the baseurl according to the official document instructions.

Nginx is used as proxy server

The Confluence version is 5.4.4

I don't know what's wrong. Need help

 

     

2 answers

0 votes
Marc Koppelaar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 20, 2023

Hi @xiaoqi zhang 

Welcome to the community.

As I look at your config, this seems fine, but as @Brant Schroeder mentions, are you running a proxy server in front of you application (apache, nginx)

Look at that configuration.

See: proxying-atlassian-server-applications 

yes, i running a proxy server that it's  Nginx     in front of you application   , 

 

the  Nginx  server config as follow:

    server {
listen 80;
server_name    wiki.surfin-cn.com ;
location / {
proxy_pass http://127.0.0.1:8080;
}
access_log logs/access_log main;
}

0 votes
Brant Schroeder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 19, 2023

@xiaoqi zhang welcome to the Atlassian community 

If you changed the base url in the app and updated the context path I would focus on the proxy.  I would suggest reviewing the kb again and double check your settings as well.  https://confluence.atlassian.com/doc/configuring-the-server-base-url-148592.html 

thank you very much !

I can't find any configuration errors, my  confluence server.xml content is as follows

<Server port="8000" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8080" minProcessors="5"
maxProcessors="75"
enableLookups="false" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="20000"
useURIValidationHack="false" URIEncoding="UTF-8"/>

<Engine name="Standalone" defaultHost="localhost" debug="0">

<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false">

<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="" />
</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 http://confluence.atlassian.com/display/DOC/Adding+SSL+for+Secure+Logins+and+Page+Security
-->
<!--
<Connector port="8443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" SSLEnabled="true"
URIEncoding="UTF-8" keystorePass="<MY_CERTIFICATE_PASSWORD>"/>
-->
</Service>
</Server>

Brant Schroeder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 20, 2023

@xiaoqi zhang I just want to make sure in the Confluence application you also updated the base URL.  Can you share a screenshot of that?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events