By rramirezech
I have seen some queries and I have tried to solve but I have not succeeded, I have basically published a wildfly which I access from any browser, putting the IP address and the listening port example: ##.##.##.##:port, and it works great, I bought a domain name and followed the procedure to delegate it to digitalocean’s DNS (ns1.digitalocean.com, ns2 …) additionally when it didn’t work, add hostname www to the domain to try to enter www.sitename.com:port but it still doesn’t work for me, any idea what is my problem?
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!
Hi @rramirezech,
You’ll need to add the domain to your WebService. Your WebService is either Nginx or Apache. If you are unsure which one you are using, you can easily check by going to your droplet via SSH and typing the following command
netstat -tulpen | grep 80
This will output what’s listening on port 80. If it’s Apache2/httpd, then you are using Apache, if it shows Nginx, well then it’s Nginx.
Now, based on the output, I’ll recommend you checking one of the following articles on how to create your virtual configuration (vhost) so that your domain actually works porperly.
If it is Apache, check out the following article:
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-18-04
If it is Nginx :
Regards, KFSys
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.