By esquire
Hello!
I’m trying to setup code-server on CentOS 7, but I am unable to get to code-server.my_domain.
I am able to go to http://my_domain (which directs me to the CentOS welcome page), but going to code-server.my_domain or http://code-server.my_domain gives me the following message in Firefox:
"Hmm. We’re having trouble finding that site.
We can’t connect to the server at code-server.my_domain"
I’ve been following the instructions here, and I’ve gotten through step 2: https://www.digitalocean.com/community/tutorials/how-to-set-up-the-code-server-cloud-ide-platform-on-centos-7
I’ve copied and pasted the code into the /etc/nginx/conf.d/code-server.conf file, and it looks like this:
server { listen 80; listen [::]:80;
server_name code-server.my_domain;
location / {
proxy_pass http://localhost:8080/;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
}
}
Not sure what to do from here.
Looking forward to hearing back!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hi @esquire,
What you would need to do is add an A record for your subdomain name code-server.mydomain.com to point to your Droplet’s IP address.
Also note that once you make the DNS change, it could take up to 24-48 hours for the DNS to propagate before you could see the change.
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.