How to deploy .net core website in linux | Hosting .net core website in ubuntu using nginx server
#deploy_asp.net_core_in_linux
Hi there, in this video I have described how to install nginx server and how to deploy asp .net core web app in linux machine. For this i have used nginx server as a reverse proxy server and asp .net mvc core for creating a web app.
Topics covered in this video:
How to deploy .net core app in linux.
How to install nginx server in linux machine.
===========================================================
Content inside default.config file:
server {
listen 80;
server_name example.com *.example.com;
location / {
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
content inside app.service file:
--------------
[Unit]
Description= mvcnew webapp
[Service]
WorkingDirectory=/var/www/app1
ExecStart=/usr/bin/dotnet /var/www/app1/mvcnew.dll
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
SyslogIdentifier=mvcnew
Environment=ASPNETCORE_ENVIRONMENT=Production
[Install]
WantedBy=multi-user.target
....................................................................
Previous videos:
1. Asp.Net Core MVC Web App CRUD with EF Core
https://www.youtube.com/watch?v=HOB4G-uskJU&t=202s
2. How to use SQL-Server with VS Code in Ubuntu.
https://www.youtube.com/watch?v=ulndc5Ac6VQ
Other links:
Angular tutorials and projects: https://bit.ly/3DitqDp
dot net 6 tutorial and project: https://bit.ly/3MSrXGX
dot net core series: https://bit.ly/3TolF4i
dot net 6 projects: https://bit.ly/3zpn9ng
.......................................................
connect with me
Twitter: https://twitter.com/ravi_devrani
GitHub: https://github.com/rd003
Youtube: https://www.youtube.com/channel/UCzTMzmLbuEWOUmpzo9vaV7Q
..........................................
Become a supporter:
You can buy me a coffee: https://www.buymeacoffee.com/ravindradevrani
.......................................................
connect with me
Twitter: https://twitter.com/ravi_devrani
GitHub: https://github.com/rd003
Youtube: https://www.youtube.com/channel/UCzTMzmLbuEWOUmpzo9vaV7Q
..........................................
Become a supporter:
You can buy me a coffee: https://www.buymeacoffee.com/ravindradevrani
Видео How to deploy .net core website in linux | Hosting .net core website in ubuntu using nginx server канала Ravindra Devrani
Hi there, in this video I have described how to install nginx server and how to deploy asp .net core web app in linux machine. For this i have used nginx server as a reverse proxy server and asp .net mvc core for creating a web app.
Topics covered in this video:
How to deploy .net core app in linux.
How to install nginx server in linux machine.
===========================================================
Content inside default.config file:
server {
listen 80;
server_name example.com *.example.com;
location / {
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
content inside app.service file:
--------------
[Unit]
Description= mvcnew webapp
[Service]
WorkingDirectory=/var/www/app1
ExecStart=/usr/bin/dotnet /var/www/app1/mvcnew.dll
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
SyslogIdentifier=mvcnew
Environment=ASPNETCORE_ENVIRONMENT=Production
[Install]
WantedBy=multi-user.target
....................................................................
Previous videos:
1. Asp.Net Core MVC Web App CRUD with EF Core
https://www.youtube.com/watch?v=HOB4G-uskJU&t=202s
2. How to use SQL-Server with VS Code in Ubuntu.
https://www.youtube.com/watch?v=ulndc5Ac6VQ
Other links:
Angular tutorials and projects: https://bit.ly/3DitqDp
dot net 6 tutorial and project: https://bit.ly/3MSrXGX
dot net core series: https://bit.ly/3TolF4i
dot net 6 projects: https://bit.ly/3zpn9ng
.......................................................
connect with me
Twitter: https://twitter.com/ravi_devrani
GitHub: https://github.com/rd003
Youtube: https://www.youtube.com/channel/UCzTMzmLbuEWOUmpzo9vaV7Q
..........................................
Become a supporter:
You can buy me a coffee: https://www.buymeacoffee.com/ravindradevrani
.......................................................
connect with me
Twitter: https://twitter.com/ravi_devrani
GitHub: https://github.com/rd003
Youtube: https://www.youtube.com/channel/UCzTMzmLbuEWOUmpzo9vaV7Q
..........................................
Become a supporter:
You can buy me a coffee: https://www.buymeacoffee.com/ravindradevrani
Видео How to deploy .net core website in linux | Hosting .net core website in ubuntu using nginx server канала Ravindra Devrani
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Shopping Cart project in .net core mvc (with authentication) | part 8](https://i.ytimg.com/vi/J1xA5q9phZk/default.jpg)
![Duplicate and distinct elements in c# array](https://i.ytimg.com/vi/bl73zYjYAAw/default.jpg)
![C# records equality | c# records part 3](https://i.ytimg.com/vi/lXSlwOchOm8/default.jpg)
![Unit Testing in .net core with moq](https://i.ytimg.com/vi/k5xYTUnUP8s/default.jpg)
![Operators in c# | c# tutorial #4](https://i.ytimg.com/vi/krBFCBWk41U/default.jpg)
![Exception handling in c# | c# tutorial #22](https://i.ytimg.com/vi/LKlWzbMk0VE/default.jpg)
![asp.net core web APIs for beginners | dotnet 7 web apis](https://i.ytimg.com/vi/0T8CAdx3sFs/default.jpg)
![Arrays in c# | c# tutorial #23](https://i.ytimg.com/vi/IdtoynGW9hc/default.jpg)
![snake water gun game in c# | c# tutorial #11](https://i.ytimg.com/vi/yI7evbsBV20/default.jpg)
![Angular infinite scroll](https://i.ytimg.com/vi/3IFyMCWziq4/default.jpg)
![Shopping Cart project in .NET Core MVC | part 16 | Manage Books](https://i.ytimg.com/vi/9RbY2HUgADk/default.jpg)
![private constructor in c#](https://i.ytimg.com/vi/aXSDedbYjlA/default.jpg)
![Abstraction with c# | Practical OOPs with c#](https://i.ytimg.com/vi/jXb7F5oNsZc/default.jpg)
![C# tuples and it's use case](https://i.ytimg.com/vi/yo4Z-23Uj_A/default.jpg)
![sealed methods in c#](https://i.ytimg.com/vi/dVrlh5v0JJs/default.jpg)
![Delegates in c# | c# tutorial #29](https://i.ytimg.com/vi/IvyLw5upOaA/default.jpg)
![Dependency Injection in .net core](https://i.ytimg.com/vi/9T-3WgIlMB8/default.jpg)
![Eager loading in angular | Using Feature modules in angular](https://i.ytimg.com/vi/UNEkczH_Zfc/default.jpg)
![static variable in c#](https://i.ytimg.com/vi/P9DYPdns6kg/default.jpg)
![Asp.net core web API with EF Core | Learn to create REST API in Linux from scratch](https://i.ytimg.com/vi/qT-YtifPqjM/default.jpg)
![Rate limiting in net 7 apis](https://i.ytimg.com/vi/VdSMmctBTU8/default.jpg)