Report this

What is the reason for this report?

How to deploy .netcore project on Plesk-Ubuntu?

Posted on July 5, 2021

i have a droplet with ubuntu-Linux. ui part of mywebsite.com is working as an angular project.

i want to deploy a .netcore project as a subdomain like ABC.mywebsite.com.

How can i do that ?

  • What kind of droplet should i choose ?
  • how can i enable .netcore project ?

I’m newbie on digital ocean and deploying .netcore with linux.



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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Solved it.

https://www.c-sharpcorner.com/article/how-to-deploy-net-core-application-on-linux/

After created the service file => https://stackoverflow.com/a/67756174

Plesk --> Websites & Domains --> <> --> Hosting & DNS --> Apache & nginx

Header set Access-Control-Allow-Origin “http://yourdomain.com” Header set Access-Control-Allow-Headers “Access-Control-Allow-Headers, Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-ControlRequest-Headers, Authorization, Content-Disposition” Header set Access-Control-Allow-Methods “*” Header set Access-Control-Allow-Credentials “true” ProxyPreserveHost On ProxyPass / http://127.0.0.1:5000/ ProxyPassReverse / http://127.0.0.1:5000/

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.