I
I
Ilya Lazarev2014-08-18 17:38:27
Nginx
Ilya Lazarev, 2014-08-18 17:38:27

Why a tree-shaped site?

Hello!
Configured nginx+passenger
sites-enabled/deafult

server {
        listen 80 default_server;
        listen [::]:80 default_server ipv6only=on;
        server_name dragonfest.ru www.dragonfest.ru;
        passenger_enabled on;
        rails_env production;
        root /usr/share/nginx/public;
        index index.html index.htm;
        error_page 500 502 503 504  /50x.html;
        autoindex on;
        # Make site accessible from http://localhost/
        #server_name localhost;

The following lines are uncommented in /etc/nginx/nginx.conf:
passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
 passenger_ruby /usr/bin/ruby;

During this entire site in the form of a list of files. What is the jamb?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cenness, 2014-08-18
@CrusaderGo

autoindex on;

nginx.org/ru/docs/http/ngx_http_autoindex_module.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question