configuration - Access rights for site-enabled nginx folder -
I would like to split my NGN website configuration into multiplier files and I have a problem.
Then I have 3 files / etc / nginx / site-available folders and I have created their symbolic links with these commands in / etc / nginx / site-enabled:
ln -s / etc / ngnix / sites-available / site1 / etc / nginx / site-enabled / site1 ln -s / etc / ngnix / sites-available / site2 / etc / nginx / site-enabled / site 2 ln -s / etc / ngnix / sites-available / Site3 / etc / nginx / sites-enabled / site3
I have restarted and reloaded nginx, but this does not work Does.
The strange thing is that when I copy with CP, files, its functions.
I checked permissions and it looks good (all for rw-r-r--).
Maybe I should root these files with a specific user (www-data?) Instead of root: root?
root @ lenouvel: / etc / nginx # LS-LA site-available / total 20 Druxix-XR-X2 Route root 4096 July 27 17:36. Drwxr-xr-x 5 Root Route 4096 9 July 9:19. -R-R-R1 root route 1404 27 July 17:50 Default -RRR-R1 Route root 2165 July 27 17: 40 gitlab -rw-rr-1 root route 1317 July 27 17:33 roundabout root @lenewewel: / etc / nginx # ls -lA site -enabled / total 8 drwxr-xr-x2 root root 4096 July 27 20:17 Drwxr -xr-x 5 Route root 4096 9 July 9:19. Lrwxrwxrwx 1 root route 23 Jul 27 20:16 Default - & gt; Sites-available / default lrwxrwxrwx 1 root route 22 July 27 20:17 gitlab - & gt; Site-available / jetlab lrwxrwxrwx 1 root root 25 July 27 20:17 roundcube - & gt; Site-available / roundabout
nginx.conf:
root @ lenouvel: / etc / nginx # cat nginx.conf user www-data; Worker_processes 4; Pid /run/nginx.pid; Events {worker_connections 768; # On Mult_accept; } Http {## # Basic Settings ## on Dispatch; Tcp_nopush on; Tcp_nodelay on; Keepalive_timeout 65; Types_hash_max_size 2048; #Server_tokens off; # Server_names_hash_bucket_size64; # Server_name_in_redirect is off; Include /etc/nginx/mime.types; Default_type application / octet-stream; ## # Logging settings ## access_log /var/log/nginx/access.log; Error_log /var/log/nginx/error.log; ## # gizip settings ## gzip on; Gzip_disable "msie6"; # At gzip_vary; # Gzip_proxied Anyone; # Gzip_comp_level6; # Gzip_buffers16 8k; # Gzip_http_version 1.1; # Gzip_types Text / Plain Text / CSS Application / JSN Application / X-Javascript Text / XML Application / XML Application / XML + RSS Text / JavaScript; ## # nginx-naxsi config ## # If you install nginx-naxsi ## #include/etc/nginx/naxsi_core.rules, delete it; ## # Virtual Host Configs ## Include /etc/nginx/conf.d/*.conf; Include / etc / nginx / sites-enabled / *; }
Comments
Post a Comment