Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

ASP .NET Core Website Location on Ubuntu - Kestrel Loads Website from One Folder but Not Another With Same Permissions and Owner

$
0
0

Hello

I have been experimenting with setting up ASP .NET Core websites in Ubuntu and they load correctly with Kestrel if located at:

/var/aspnetcore/SITENAME/aspnetcore

However they do not work if located here:

/home/SITENAME/aspnetcore

In both cases I set the owner of the folder and everything below to the www-data account and assigned 755 permissions:

sudo chown -R www-data:www-data aspnetcore

sudo chmod -R 755 aspnetcore

When checking the status of the error it is:

(code=exited, status=200/CHDIR)

Is it possible to run an .NET Core website from the home folder? Is it something to do with permissions of the home folder itself?

Thanks
Robin


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>