Trying to self host site with nginx on raspberry pi 4 and I'm unnable to get secondary site up

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

Trying to self host site with nginx on raspberry pi 4 and I'm unnable to get secondary site up

Post by /RaspberryPi »

I installed nginx on my pi
I'm trying to serve some sites from my pi
I created my site in /var/www/
I created a folder personel_site which contains my site (basic static hmtl, css and js) and I followed this tutorial https://www.digitalocean.com/community/ ... untu-16-04
To create an adress for my site example.com
Accessing my pi's IP in a browser works it takes me to my default nginx site
Trying to access pi_ip/example.com gives me a 404
Also trying to access pi_ip/personal_site (aka the name of the folder) also gives me a 404
Same with pi_ip/www.example.com and with pi_ip:80/example.com

submitted by /u/Hero_Of_Shadows
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”