我认为为了将https URLredirect到另一个https URL而没有证书警告,第一个https URL必须拥有自己的有效证书和IP地址? 我试图设置http和https从一堆域redirect到一个安全的URL。
我在Ubuntu 12.04的apache2(port 80)上有一个WordPress的博客设置,我也有一个监听端口8080的nginx设置,服务于同一个博客。 我的问题是,每当我尝试打开端口8080上的博客,nginx将请求redirect到Apache不应该发生。 我正在发布/ etc / nginx / sites-enabled / wordpress的内容 server { listen 8080; root /var/www; index index.php index.html index.htm; server_name foobartech.strangled.net:8080; location / { try_files $uri $uri/ /index.php?q=$uri&$args; } location /doc/ { alias /usr/share/doc/; autoindex on; allow 127.0.0.1; deny all; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = […]
我知道这个问题已经被问及答复了一百万次,但是没有一个被接受的答案正在为我工作。 当我强制所有连接到https时,由于某种无限的redirect循环,我的网站无法访问。 root /usr/share/nginx/html/flawedspirit.com/root_html; index index.php index.html index.htm; error_page 403 /index.php; error_page 404 /error/404.php; error_page 500 502 503 504 /error/50X.php; access_log /usr/share/nginx/html/flawedspirit.com/logs/access.log; error_log /usr/share/nginx/html/flawedspirit.com/logs/error.log; server { listen 80 default_server; server_name flawedspirit.com; return 301 https://$server_name$request_uri; location ~ \.php { try_files $uri $uri/ =404; include fastcgi_params; fastcgi_pass php5-fpm-sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_intercept_errors on; } location ~ /\. […]
我有一个nginx.conf文件,看起来像这样: http { server { listen 80; server_name myapp.org; return 301 http://www.myapp.org$request_uri; } server { listen 80; server_name www.myapp.org; passenger_enabled on; root /var/www/myapp/current/public; } } 这似乎是这个网站和其他人build议的格式,但是当我去myapp.org,我只是从nginx得到这个消息: 欢迎来到nginx! 如果你看到这个页面,nginx web服务器已经成功安装并正常工作。 需要进一步的configuration。 有关在线文档和支持,请参阅nginx.org。 商业支持可在nginx.com上find。 感谢您使用nginx。 虽然如果我去www.myapp.org,那么一切都按预期工作。 为什么不redirect? 更新: nginx.conf: user www-data; worker_processes 4; pid /var/run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # […]
尝试在NGINX中将简单的子域redirect到URI / URLpath。 在这一点上,我想让nginx.somedomain.com永久redirect到nginx.somedomain.com/sample/redirection.html。 下面的configuration我在nginx.conf文件中,但不工作。 我已经重新启动服务器,但仍然没有去。 具体来说,它错误并在nginx.conf文件中显示这是无效的。 这应该去哪里,这也是正确的? server { server_name nginx.somedomain.com; rewrite ^(.*) http://nginx.somedomain.com/sample/redirection.html permanent; } 感谢您的帮助!
我无法找出我的DNSloggingtypes。 我想www子域是我的“规范”页面,所以我的configuration如下所示: www A record type actual ip address @ 301 redirect www address 它是否正确? 我是否需要用CNAMEloggingtypesreplace301redirect? 据我所知,CNAME应该被用于www和@应该是规范的,但是我希望它是相反的。 我也关心search引擎优化,但我不知道如何有一个CNAMElogging,而不是301redirect影响这一点。 我使用这个设置的另一个问题是,我不能使用[email protected]进行SSH,我需要使用[email protected]。 但这只是一个小小的麻烦。
我们目前已经有一个DNSlogging通过DNS Made Easy连接到IIS中的许多Web应用程序。 例如。 myDNSName.example.com/Customer1 myDNSName.example.com/Customer2 这工作正常,因为myDNSName.example.com指向一个框。 现在我们正处于需要将这些网站分散在多个框中的情况。 如果我们要求客户点击不同的链接,我们将处理重大问题,因为他们需要将其传播给所有用户。 有没有一种方法可以在DNS级别设置映射,将myDNSName.example.com/Customer1指向一个IP地址,将myDNSName.example.com/Customer2指向另一个IP地址? 目前我认为我们可以实现的方式是在IIS级别上编写网站redirect/重写,但这意味着IIS会成为一个失败点,如果执行redirect的中央框出现故障,则全部closures。 为了确保我们有一个分离的关注,所以我们限制了一件事情失败的可能性。
我成功地在NginX上部署了我的wordpress网站。 我需要永久链接http://www.example.com/%postname%和博客http://blog.example.com/%postname% 。 它将所有wwwstream量redirect到非www,但是当我尝试通过取消注释下面所写的NginX的mydomainconfiguration文件中的行来将非wwwredirect到www时,浏览器会抱怨redirect循环。 我的全球/ restrictions.conf是: http://pastebin.com/cLfMv6jC 而global / wordpress.conf是: http://pastebin.com/Uc9KSqhh 和NginX的服务器块的mydomainconfiguration文件是: server { server_name _; return 301 $scheme://www.example.com$request_uri; } #server { # listen 80; # server_name example.com; # return 301 $scheme://www.example.com$request_uri; #} server { listen 80 default_server; listen [::]:80; root /usr/share/nginx/html/example.com; index index.php index.html index.htm; server_name www.example.com; include global/restrictions.conf; include global/wordpress.conf; } 请指出我的错误。 [更新]事实上,我也有以下服务器块: […]
在我正在寻找的网站上,我需要做一个301redirect的url,它有一个很长的破折号,但它不工作。 我的redirect在UrlRewriting.config中,如下所示: <add name='blog1' virtualUrl='^~/news/blog/2011/08/cookies-%E2%80%93-crunch-time-for-website-operators$' destinationUrl='/news/blog/2011/08/crunch-time-for-website-operators' redirect='Application' ignoreCase='true' redirectMode='Permanent' /> 正如你所看到的,任何一方都有一个连字符是很长的。 任何想法为什么这个redirect不会工作? 谢谢!
我正在使用Squid 2.6作为反向代理。 我收到来自多个域名(.com .org等)的所有stream量,但网站总是相同的。 我想只有一个域(特别是为了SEO的原因),所以我希望Squidredirect这些域的301 Moved Permanently HTTP头到主要的。 请注意,我也想redirect内部页面。 最好的方法是什么(考虑性能和速度)这样做? 蠕动?