Nomes simbólicos Nginx não indexados [closed]

0

Estou executando o nginx 1.10.0 no Ubuntu 16.04

O Nginx dos não segue links simbólicos. ainda não lista o symlink no índice do diretório:

comovocêvênaimagemwgiéumlinksimbólicoenãolistanoíndicedediretório.

eobtenhoumerro404quandoverificolocalhost/wgi

aquiestáomeunginx.conf:

http{###BasicSettings##disable_symlinksoff;sendfileon;tcp_nopushon;tcp_nodelayon;keepalive_timeout5;types_hash_max_size2048;#server_tokensoff;#server_names_hash_bucket_size64;#server_name_in_redirectoff;include/etc/nginx/mime.types;default_typeapplication/octet-stream;###SSLSettings##ssl_protocolsTLSv1TLSv1.1TLSv1.2;#DroppingSSLv3,ref:POODLEssl_prefer_server_cipherson;###LoggingSettings##access_log/var/log/nginx/access.log;error_log/var/log/nginx/error.log;###GzipSettings##gzipon;gzip_disable"msie6";

# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

##
# Virtual Host Configs
##

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}

e aqui estão os meus sites habilitados / padrão:

server {
listen 80 default_server;
listen [::]:80 default_server;

# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;

root /var/www/html;

autoindex on;

# Add index.php to the list if you are using PHP
index index.html index.htm index.php index.nginx-debian.html;

server_name _;

location / {
    autoindex on;
    # First attempt to serve request as file, then
    # as directory, then fall back to displaying a 404.
    try_files $uri $uri/ =404;
}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
    include snippets/fastcgi-php.conf;
#
#   # With php7.0-cgi alone:
    fastcgi_pass 127.0.0.1:9000;
#   # With php7.0-fpm:
#   fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}

# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
    deny all;
}
}

Vejo algumas soluções sobre as permissões set disable_symlinks to off e symlink, mas isso não funciona para mim.

obrigado pelo seu conselho.

    
por M.A. Heshmat Khah 01.04.2017 / 00:21

1 resposta

0

Eu re-instalo o Nginx e agora ele reconhece os links simbólicos

    
por 02.08.2017 / 08:22