I want nginx to search my local host for the file first and on a 404 error it should search server 1.1.1.1. I am able to fetch the file that is located on local host, but not able to get from server 1.1.1.1. server { listen 80; server_name localhost; access_log /var/log/nginx/access.log main; location /products/ { proxy_next_upstream http_404; root /var/foo; } } server { listen 80; server_name 1.1
nginx に CORS用 の設定をする(複数ドメイン編) 以下のドメインを許可 *.example.net *.example.jp server { listen 80; server_name hoge.example.com; location / { if ($http_origin ~* (https?://.*\.example\.(net|jp)?$)) { set $cors "1"; } if ($cors = "1") { add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Headers 'Authorization,Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx
Nginxをリバースプロキシとして利用するための方法と個人用メモ プロキシ設定 Nginxをリバースプロキシとして利用するためには、/etc/nginx/conf.d に設定ファイルを配置すればよい ファイル名は {ConfigName}.conf 今回は server.conf としてファイルを配置した 以下のように server.conf を用意して Nginx を再起動する server{ server_name example.com; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Fo
Integrating JIRA with Nginx Related content No related content found Atlassian applications allow the use of reverse-proxies within our products, however Atlassian Support does not provide assistance for configuring them. Consequently, Atlassian can not guarantee providing any support for them. If assistance with configuration is required, please raise a question on Atlassian Answers. Purpose This
nginxをリバースプロキシにする場合に使用するproxy_passディレクティブは、URIが与えられた場合と、そうでない場合で挙動が異なる。 どういうことかというと、以下の1.と2.は別々の結果となる。proxy_passディレクティブの引数に注目して欲しい。 # 1. specified with a URI location /name/ { proxy_pass http://127.0.0.1/; } 1.はproxy_passディレクティブに完全なURIを与えた例である。この場合http://example.com/name/fooへのアクセスは、/nameが削除されたhttp://127.0.0.1/fooへ転送される。 2.はproxy_passディレクティブに完全なURIを与えなかった例である。この場合http://example.com/name/fooへのアクセスは、
logrotate設定 nginxのlogがdeletedされてるのに、プロセスがいつまでも掴んだまま。 結果、サーバー容量死亡のお知らせ。 logrotateの設定ファイル(/etc/logrotate.d/nginx)を変更。 具体的には、postrotateのコマンドをkillコマンドに変更した。 /var/log/nginx/*.log { create 0644 nginx adm daily rotate 7 missingok notifempty compress sharedscripts postrotate /etc/init.d/nginx reopen_logs endscript } /var/log/nginx/*.log { create 0644 nginx adm daily rotate 7 missingok notifempty compress
example @&P>�U � �?�U ## Server configuration for nginx to host Atlassian Jira / Jetbrain TeamCity or any other Tomcat web application # # author cedric.walter, www.waltercedric.com # to be saved for ex in /etc/nginx/sites-available/example server { listen 80; server_name jira.example.com; access_log off; location / { proxy_pass http://localhost:8080; proxy_set_header Host $host; proxy_set_header
Summary 競馬予想を自作AIで Pythonと機械学習で競馬予想をやってます。 第3次AIブームの中、自作AIで勝てるのか。単勝回収率は今現在82%ほど。100%を超えられるように勉強中です。 私の予想より良い結果出してますけどね(爆) サーバ構築 Linux(Ubuntu)でWebサーバやファイルサーバ、メールサーバなど構築しています。 LinuC レベル3 304 Virtualization & High Availability 取得しました。 Web制作の個人レッスン(休止中...) ホームページを作って公開してみたい方へ、個人レッスンを近所で行なっています。 動画作成 まだ経験は少ないですが、Final Cut Pro X と Motion5を使って編集しています。 Work
概要 ngin で 自己署名証明書(オレオレ証明書)を設定する。自己署名証明書でも暗号化はされるので、自分で利用する分には問題ない。 証明書作成 fabfile の該当箇所は以下。コピペして実行しても良い。途中でパスワードなど聞かれるが、全部空で良い。 @task def setup_ssl(): """ オレオレ証明書の作成 """ work_dir = '/opt/nginx/conf/' with cd('{0}'.format(work_dir)): # pass hoge sudo('openssl genrsa -des3 -out server.key 1024') sudo('openssl req -new -key server.key -out server.csr') sudo('cp server.key server.key.org') sudo('openss
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く