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 ?
I’m newbie on digital ocean and deploying .netcore with linux.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
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/