0

I would like to use the Jenkins docker container, that allows an access from localhost:8080, from a subdomain, such as jenkins.subdomain.me

I came accross this post, applied it to my situation, activated the proxy_http mod for Apache, then restarted without any trouble. However, when I tried to reach the subdomain I just created, I got the following error:

Can not find the IP address for the server jenkins.mydomain.me

Here is how I set up my virtualHost:

<VirtualHost *:80>
    ServerName jenkins.mydomain.me
    ProxyPreserveHost On

    # setup the proxy
    <Proxy *>
        Order allow,deny
        Allow from all
    </Proxy>
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/
    ProxyRequests Off
</VirtualHost>

I don't know if anything is missing, or if I need to add something to my domain's name DNS

Any help is welcome

1 Answer 1

1

I don't know if anything is missing, or if I need to add something to my domain's name DNS

you should create a dns entry for jenkins.mydomain.me pointing your machine ip or if you are just working 'local' you should modify the hosts file (/etc/hosts) adding an entry using localhost or your network interface

127.0.0.1 jenkins.mydomain.me
1
  • That seems so obvious now! I needed to add a new entry for a subdomain from my domain provider, thank you!
    – Jaeger
    Mar 8, 2018 at 13:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .