Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Wanted to try NGINX

$
0
0
This is my first post on this forum, so if I do something wrong, please let me know.

I'm having difficulty getting things set up properly. Before Nginx, I was using Apache and had no issues. I've setup an entirely new build on a fresh micro-sd card just to makes sure I wasn't getting any interference from old files.

I'm just running a simple html site through a raspberry pi 3 on the pixel build. I can view the site on my local network, but not from outside of the network. I do have port forwarding enabled on my router.

The error log tells me this:

[emerg] 21979#0: unknown directive "index.html" in /etc/nginx/sites-enabled/default:33

and this is the area of the "sites-enabled" file the error log is referring:

# include snippets/snakeoil.conf;

root /usr/share/nginx/html;

# Add index.php to the list if you are using PHP
index index.html index.htm;
server_name www.random.com;

I changed the web address for this post just to keep it private for now. I use GoDaddy for the name, and I know that's directing to the correct IP address, because it comes up in my browser after I enter the address.

I can provide any additional files if requested. Does anyone have any ideas about this?

Viewing all articles
Browse latest Browse all 4759

Trending Articles