我是Nginx新手,我已經使用this tutorial設置了服務器。現在,當我添加鏈接到其他網站,如http://www.anotherwebsite.com,當我從我的頁面上點擊此鏈接時,服務器將我指向http://www.mywebsite.com/http://www.anotherwebsite.com。服務器正在將其他鏈接附加到我的網站鏈接。我該如何改變這一點。我已經看過這些地方 How to redirect a url in NGINX, Rewrite to pretty links with nginx 但我只是不能讓它的工作。任何幫助將不勝感激。由於在nginx服務器中打開其他網站的鏈接
server {
listen 80;
server_name $hostname;
location /static {
alias /var/www/<app-name>/static;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location/{
include uwsgi_params;
uwsgi_pass unix:/tmp/uwsgi.sock;
uwsgi_param UWSGI_PYHOME /var/www/<app-name>/env;
uwsgi_param UWSGI_CHDIR /var/www/<app-name>/project;
uwsgi_param UWSGI_MODULE <project-name>.wsgi:application;
}
}
那麼你的當前配置看起來像沒有訪問權限的黑客? – cobaco
[鏈接到配置文件](http://pastecode.org/index.php/view/54100324) – Saad