gadget.commen.error.500
Asked by Laszlo Varga:

Hi,

I have this error in the question's title.

I can not figure out what can be wrong.

OS: CentOS 7

domain name is not real and therefore you see server.domain

Here is my settings for server.xml

\`\`\`

\<Connector port="7991" relaxedPathChars="\[\]\|" relaxedQueryChars="\[\]\|{}\^\&#x5c;\&#x60;\&quot;\&lt;\&gt;"  
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"  
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"  
acceptCount="100" disableUploadTimeout="true" bindOnInit="false"  
scheme="https" proxyName="server.domain" proxyPort="443" secure="true"/\>

\<Connector port="7992" relaxedPathChars="\[\]\|" relaxedQueryChars="\[\]\|{}\^\&#x5c;\&#x60;\&quot;\&lt;\&gt;"  
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"  
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"  
acceptCount="100" disableUploadTimeout="true" bindOnInit="false" scheme="http"  
proxyName="server.domain" proxyPort="80"/\>

\`\`\`

apache conf file content

\`\`\`

\<VirtualHost \*:80\>

ServerName server.domain

ProxyRequests Off  
ProxyVia Off

\<Proxy \*\>  
Require all granted  
\</Proxy\>

ProxyPass / <http://127.0.0.1:7992/>  
ProxyPassReverse / <http://127.0.0.1:7992/>

RewriteEngine On  
RewriteCond %{SERVER_PORT} !443  
RewriteRule \^(/(.\*))?$ https://%{HTTP_HOST}/$1 \[R=301,L\]

\</VirtualHost\>

\<VirtualHost \*:443\>

ServerName server.domain

SSLProxyEngine on  
SSLEngine on  
SSLCertificateFile /home/centos/.cert/key.crt  
SSLCertificateKeyFile /home/centos/.cert/key.key

ProxyRequests off  
ProxyPreserveHost on

\<Proxy \*\>  
Order deny,allow  
Allow from all  
\</Proxy\>

ProxyPass / <http://127.0.0.1:7991/>  
ProxyPassReverse / <http://127.0.0.1:7991/>

\</VirtualHost\>

\`\`\`

The Base URL is \`[https://server.domain](https://support.bmore.group/)\`

What I need to do to make it work over https?

The problem is not exist at all over http however I still use proxy

Thank you


Answers:
author: Rambabu Patina _Appfire_
body: Hi [@Laszlo Varga](/t5/user/viewprofilepage/user-id/1893226) ,

Please check, is your base URL is correct? If no correct it by System -\> General Configuration and then try.  

Furthermore, you can have a look at similar articles which may help you,

[gadget-common-error-500](https://community.atlassian.com/t5/Jira-Software-questions/gadget-common-error-500/qaq-p/1007783)

[gadget-common-error-500-LAN-DNS-no-https](https://community.atlassian.com/t5/Jira-Software-questions/gadget-common-error-500-LAN-DNS-no-https/qaq-p/1022776)

Thanks,  
Ram.

comments: author: Laszlo Varga
body: Hi Ram,

The Base URL is correct.

I have gone through many forum thread and tried to fix this issue.

I have rebuilt the server.xml from default and apache vhst conf file from scratch following the atlassian instructions.

As I also mentioned there is no problem over http and use proxy.


author: Laszlo Varga
body: To make it clear

I.e

server.xml

proxyName="example.com"

Base URL

<https://example.com>

Is this right?


author: Rambabu Patina _Appfire_
body: In the question, mentioned that the base URL [https://server.domain](https://support.bmore.group/) and which is linked to other URL.  
Please try with the base URL in the link if that is the correct base URL and let us know, how it goes.


author: Laszlo Varga
body: I used server.domain as a placeholder because I did not want to expose it


author: S_ Toyo
body: [@Laszlo Varga](/t5/user/viewprofilepage/user-id/1893226) [@Rambabu Patina _Appfire_](/t5/user/viewprofilepage/user-id/1168698) Has this been solved? I am also having the same issue. And nobody else on the forums knows the exact answer. :(


Tags: confluence-server

server