Sites-available and sites-enabled are 2 dir's You can create beneath your nginx.conf dir or elsewhere - but they are not nescecary for Your nginx to run but a way to create conf files per server (virtuel server in Apache language) so You include the conf file from sites-enabled into nginx.conf (same as including conf files in Apache) thats all (conf files in sites-enabled will be linked to conf fiby solo - How to...
I'm not sure what You mean but I get it that it still does not work ? I would start out easy without all the ~^'s and so on because if anything can garble up things it's those settings ;-) : WITHIN the SERVER section : error_page 403 /403.html; ## need to tell which error You want to catch and what to do (show 403.html) location = /403.html { /etc/nginx/error_pages; } error_by solo - How to...
Hi there. I just saw You're question and needed to get a username in order to answer (I'm new to Nginx) Have You tried to put this in Your server section ? error_page 404 /404.html; ## or whatever You name it location = /404.html { root /usr/share/nginx/html; ## or whereever You put it - will not be needed if 404.html is where index.html is placedby solo - How to...
![]() |
![]() |
![]() |
![]() |
|