Question

How to deploy .netcore project on Plesk-Ubuntu?

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.

Subscribe
Share

Submit an 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/