This is the default site for apache. # alias /webpath /full/filesystem/path # # if you include a trailing / on /webpath then the server will # require it to be present in the url. Open the above file with nano editor using this.
Is your goal to enforce browser to display. You will also likely # need to. When setting up a web server, you might run into a problem where your browser shows the raw php code instead of the web page.
I have an apache2 server running under ubuntu 18.04 strangely, apache cannot display images, event though my browser load it with a 200 response message. Unable to locate the path on the server. Ufw allow apache full you should use, ufw allow www full you have to look in your /etc/ufw/applications.d/ dictionary which file is available. Also try using 127.0.0.1 as the server ip and see if it responds using that ip.