を提供するためにどのように見えるか、私は私のnginx.conf
に次の内容を持っていると私nginx.confは、静的なコンテンツ
server {
listen 8081;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
#location/{
#root html;
#index index.html index.htm;
#}
location = /console {
proxy_pass http://localhost:7001/main/console;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
auth_basic "Admin Area";
auth_basic_user_file /etc/apache2/.htpasswd;
}
}
私はhttp://localhost:8081/console
を起動したときに今、それは成功したWebページを起動しても、私に尋ねているよう他のすべてがありますパスワード用。
は、しかし、私はこれをクリックすると、それは404
をスロー/main/resources/org/nett/main/images/jquery-3.1.1.min.js
この場所では、いくつかの静的なコンテンツがあります。 nginx.conf
に、/main/resources/org/nett/main/images/
フォルダ内の静的コンテンツを配信するにはどうすればよいですか?
ありがとうございました。 –