Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding new domain #1

Open
mehdiabr opened this issue Aug 20, 2024 · 1 comment
Open

Adding new domain #1

mehdiabr opened this issue Aug 20, 2024 · 1 comment

Comments

@mehdiabr
Copy link

Hello, How can we add a additional new domain to it?

@jeetdev820
Copy link

jeetdev820 commented Aug 25, 2024

for adding new domain to nginx use this
cp /etc/nginx/sites-available/default /etc/nginx/sites-available/yourdomain.com
ln -s /etc/nginx/sites-available/yourdomain.com /etc/nginx/sites-enabled/
after this it create a defualt yourdomain.conf u need to edit it in nano or any editor and remove defualt server from port 80 and add ur domain name that u set in first 2line to (servername _; part replace "servername yourdomain.com;" with ur domain) after that just use certbot --nginx to get cert for that domain . i try to automate that too soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants