Images don't load when I change baseurl
Asked by xiaoqi zhang:

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](/t5/image/serverpage/image-id/287389i7DE619867D0EFECC/image-dimensions/468x135?v=v2 "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


Answers:
author: Marc - Devoteam
body: Hi [@xiaoqi zhang](/t5/user/viewprofilepage/user-id/5344443)

Welcome to the community.

As I look at your config, this seems fine, but as [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100) mentions, are you running a proxy server in front of you application (apache, nginx)

Look at that configuration.

See: [proxying-atlassian-server-applications](https://confluence.atlassian.com/kb/proxying-atlassian-server-applications-753894340.html)

comments: author: xiaoqi zhang
body: 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;  
}


author: Brant Schroeder
body: [@xiaoqi zhang](/t5/user/viewprofilepage/user-id/5344443) 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>

comments: author: xiaoqi zhang
body: 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\>


author: Brant Schroeder
body: [@xiaoqi zhang](/t5/user/viewprofilepage/user-id/5344443) I just want to make sure in the Confluence application you also updated the base URL. Can you share a screenshot of that?


author: xiaoqi zhang
body: ![wiki-site-manage.png](https://community.atlassian.com/t5/image/serverpage/image-id/287892i1FB251038A7CA255/image-size/large?v=v2&px=999 "wiki-site-manage.png")


Tags: confluence-server

server