Jump to content

Point "top domain" to webserver with letsencrypt


bjorn

Recommended Posts

Hi, I'm using letsencrypt to subdomains to a few of my dockers. 

I would like to point the "top domain" to a web server where I can edit the site. How would I do this? Do I need to install a server or does letsencrypt have one I can use by default? 

 

 

Maybe I'm using the wrong phrases but I can't find anything. 

Sorry for the bad english, I'm tired and english is my second language.

Link to comment

hey! In the config folder of your let's encrypt should be an www folder. There you should put all of your web files. You should also disable the ONLY_SUBDOMAINS variable. The ports of your let's encrypt should be 1443 local and 443 public, 180 local and 80 public

Edited by RossEm
Link to comment
1 minute ago, RossEm said:

hey! In the config folder of your let's encrypt should be an www folder. There you should put all of your web files.

Ah yes, I've found this folder. I don't know how to access this folder through my domain outside my network though. The domain itself is also pointed towards the correct IP-adres but it doesn't find anything.

Link to comment

@RossEm

 

They were'nt able to fix it however I forwared both port 80 and 443 to my internal https port whiched solved the problem. Can't really think of any disadvantages of this at the moment.

 

EDIT:

Thanks for the help and the quick answers by the way. Happy new! :)

Edited by bjorn
Link to comment

hi! happy new year,

 

You need to change some settings in your "default" file inside appdata/LetsEncrypt/ngix/site-confs

you should add/edit this to the top of the file

 

server {
    listen 80 default_server;
    listen [::]:80 default_server;
    server_name _;
    return 301 https://$host$request_uri;
}

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...