Skip to content

Dotnet Core WebApi app deployed to Apache on Ubuntu 18.0.4

Notifications You must be signed in to change notification settings

baxishrey/apache-dotnet-core-webapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apache-dotnet-core-webapi

This is a Simple default Dotnet Core WebApi project.

It was created as part of an exercise to learn how to deploy a full-stack app to Apache server running on an Ubuntu machine.

The frontend is an Angular 7 app and can be found here.

How to use

Clone this repo to your Ubuntu machine.

Open a terminal and navigate to the directory containing the deploy.sh file.

Run command bash .\deploy.sh to deploy the app.

Deploying on Apache

Copy the included testapi.conf file to /etc/apache2/sites-available/ directory (sudo permission is required).

Open a terminal and run

sudo a2ensite testapi.conf

sudo systemctl restart apache2

Test

Open a browser and navigate to http://localhost:8090/api/values.