Category Archives: artifactory

Artifactory – Migrate from HTTP to HTTPS

The following are steps that I executed:

  1. Created CSR using https://www.digicert.com/easy-csr/openssl.htm

  2. Obtained CA certificate & Certificate chain in pem format

  3. Modified files for HTTPS implementation: httpd.conf, ssl.conf, server.xml

  4. I put the certificate & key in /etc/httpd/certificates: armdev.key certnew.cer certnew-chain.crt

  5. stop/start apache and artifactory service

  6. launch https://arm.cn.ca:8443/artifactory. Errors:

    IE error: "This page can not be displayed".

    Chrome error: "This site can not be reached".

JFrog instruction to configure Artifactory behind Apache is not clear. Could you help please.

Archiva vs artifactory

I am doing some research on Apache Archiva and Artifactory. So, actually i am not finding exact information about apache archiva and artifactory supporting following features or not:

1) load balancing
2) Nuget  
3) Redhat and CentOs
4) Ease of Backup and disaster recovery 
5) LDAP mapping to local defined users.

So, please tell does all these features are supported by apache archiva and artifactory? It will be of great help.

What is 502 Proxy error? How to Resolve it

When i try to login into Artifactory web appliaction ,its showing proxy error. The Error message is below.

Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /artifactory/webapp/login.html.

Reason: Error reading from remote server
Apache/2.2.15 (CentOS) Server at XX.XX.XX.XX Port 80

Any Solution for this?

Artifactory apache2 proxy on domain root

I'm trying to proxy artifactory under my domain but I can't get it to work on the domain root, just /artifactory.

I want artifactory to be accessible at http://repo.example.com, not at http://repo.example.com/artifactory like it's forcing me to do.

Here's what I've tried and it should work (by my understanding of mod_proxy:

ProxyPreserveHost       On
ProxyPass / http://127.0.0.1:8081/
ProxyPassReverse / http://127.0.0.1:8081/

It proxies me to the right location, but for some reason, artifactory wants to add another /artifactory/ to the end. Here's what I get when going to `http://repo.example.com:

{
  "errors" : [ {
    "status" : 404,
    "message" : "/artifactory/artifactory"
  } ]
}

Does anyone know how to fix this?

Artifactory proxy

Im trying to place my artifactory installation behind a Apache reverse proxy. Im doing this for several reasons:

  • I want to get rid of the port number in the url
  • I want to use apache to provide SSL
  • I want to get rid of the /artifactory part of the url

I have managed the first two but the last step is eluding me.

I basicly want my url to me https://artifactory.domain.tld and not https://artifactory.domain.tld/artifactory

This is my vhost config:

<VirtualHost _default_:443>
    SSLEngine on
    Protocol https
    ServerName servername:443
    SSLCertificateFile "${SRVROOT}/conf/ssl/server.cer"
    SSLCertificateKeyFile "${SRVROOT}/conf/ssl/server.key"

    SSLProxyEngine          On
    ProxyRequests           Off
    ProxyPreserveHost       On
    ProxyPass / http://127.0.0.1:8081/
    ProxyPassReverse / http://127.0.0.1:8081/
</virtualhost>

Im running on Windows, Apache version 2.4 and Artifactory version 3.3.0

Any help or pointers appriciated.