I am using the confluence on the port 8090. I connected wiki.pystock.net (sub-domain) to this port by using the apache2 virtual host. (/etc/apache2/apache2.conf)
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
<VirtualHost *:80>
ServerName wiki.pystock.net
ProxyPass / http://localhost:8090/
ProxyPassReverse / http://localhost:8090/
</VirtualHost>
I also modified the conf/server.xml . The last one line is added.
<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"
proxyName="http://wiki.pystock.net" proxyPort="80"/>
Everything works well. But there is a message of "Your URL doesn't match".
Is there any way to turn off the message "Your URL doesn't match" ?
As you can see, setting URL and accessing URL is same as below.
image2017-3-20 17:37:20.png