Code: Select all
sudo adduser pi www-data sudo chown yourusername:www-data -R /var/www sudo chmod 0755 -R /var/www sudo chmod g+s -R /var/www
The apache configuration file should determine how file extensions are handled. Looks like 'CSHTML' is not defined so the server is defaulting to plain text.jimmybobby wrote:It has worked on PC, as it was made in Microsoft WebMatrix 3 - when access in browser on pi, it just displays CSHTML code - is it because it is CSHTML, as HTML works fine... :/
idkjimmybobby wrote:Ok, noobish question - probably - how can I define CSHTML for apache?