我正在尝试使用.htaccess将我网站上的一个页面redirect到https对应的页面。 checkout.php页面位于网站的根目录/ html文件夹中。 (/checkout.php)。 我试过使用这个:(我在网上find的地方)。 我把它,并得到了内部服务器错误。 RewriteEngine On RewriteCond %{HTTPS} on RewriteCond %{REQUEST_URI} !checkout.php RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 这个想法是,如果一个客户在checkout.php页面,然后redirect到https …如果他们不是,redirect到http。 任何帮助都是极好的。
我有一个服务器,我托pipe多个网站上像http://this.example.com/site1,http://this.example.com/site2,http://this.example.com/site3 。 我正在尝试在https://this.example.com/site4添加一个安全网站。 这是我想要使用安全连接的唯一一个。 我设置了一切,似乎工作,但只要我访问https://this.example.com/site4它redirect到我的所有其他网站的HTTPS,直到我清除浏览器caching。 有没有我可以用来帮助保持httpstream量redirect到https的设置? 内容default-ssl config下面。 <IfModule mod_ssl.c> <VirtualHost _default_:443> ServerAdmin webmaster@localhost ServerName this.example.com DocumentRoot /var/www/ <Directory /var/www/site4> RackBaseURI /site4 RackEnv production Options -MultiViews </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined SSLEngine on SSLCertificateFile /path/to/cert SSLCertificateKeyFile /path/to/key SSLCertificateChainFile /path/to/chain/file <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory /usr/lib/cgi-bin> SSLOptions +StdEnvVars </Directory> BrowserMatch "MSIE [2-6]" […]
我正在尝试为内部HTTPS服务器设置一个HTTP反向代理。 作为一个旁注,是的,我知道我抛弃了所有的安全。 原来的HTTPS服务器本质上对我们来说并不敏感,运行它的产品不允许以任何方式closuresHTTPS或重新configurationembedded式Web服务器。 我尝试过使用Nginx,但是大多数人似乎都在使用Apache,所以这就是我现在正在尝试的。 这是我目前的虚拟主机configuration: <VirtualHost 0.0.0.0:10443> ServerName server.domain.com SSLProxyEngine on #UnknownSSLDirectives #SSLProxyMachineCertificateFile /etc/apache2/selfsignedcert.pem SSLProxyCACertificateFile /etc/apache2/selfsignedcert.pem ProxyRequests Off ProxyPass / https://internalserver.internaldomain.com:2941/ ProxyPassReverse / https://internalserver.internaldomain.com:2941/ <Proxy> Order Deny,Allow Allow from all </Proxy> RequestHeader unset Authorization ErrorLog /var/log/apache2/internalserver-error.log CustomLog /var/log/apache2/internalserver-access.log common </VirtualHost> 当我尝试打开http://server.domain.com:10443/时出现错误“401 Unauthorized”。 在其他的ServerFault问题中,我看到了对UnknownSSLDirectives的引用,但是Apache抱怨这个选项不存在。 而使用SSLProxyMachineCertificateFile而不是SSLProxyCACertificateFile,但是Apache抱怨在这种情况下SSL设置是不完整的。 我很困难。 我怎样才能debugging或取得进展? 谢谢!
网站内嵌框架抛出Chrome控制台错误“通过https加载页面时遇到的”X-Frame-Options“标题无效。 错误是'(DENY || SAMEORIGIN)'不是一个公认的指令。 标题将被忽略。 这是发生在我们的一些IISnetworking服务器上,我可以通过指定上面的错误值作为http响应头来重现我的本地错误,但没有受影响的服务器有这个响应头集。
通常我的nginxconfiguration如下所示: server { listen 80; server_name example.com; <some long config> } server { listen 443; server_name example.com; ssl on; ssl_certificate qwe.crt; ssl_certificate_key qwe.key; <the same long config> } 如何转发所有的https请求到http服务器指令(不发送redirect到客户端,但在nginx内转发),这样我就不需要写两次相同的configuration?
我目前有一个网站有多个HTTP绑定和一个HTTPS绑定。 我正在使用的证书是特定于一个域(secure.domain.com),并且IIS通过所有绑定响应HTTPS请求。 我想阻止! 除了用户通过HTTPS随机浏览我们的网站,并忽略证书错误,机器人也通过HTTPS索引。 简单的解决scheme是将绑定添加到一个新的网站,并指出该网站在同一目录,但由于许可问题, 我不能用这个实例做到这一点 。 我已经尝试给一个友好的名字与一个*的证书在开始和设置主机名,但它似乎没有工作。 感谢您的任何想法!
我正在处理的configuration是一个透明的HTTP代理:在防火墙上,所有的HTTPstream量(端口80)通过iptables被redirect到代理; Dansguardian安装在代理上,并过滤URL。 在网上阅读我意识到,如果我也将HTTPSstream量(端口443)redirect到代理,那么当用户指向HTTPS网站时,用户将收到错误,是否正确? 我发现解决这个问题的解决scheme是: 我删除防火墙上的redirect规则,用户在浏览器的连接选项中指定代理地址。 他们是否必须为HTTPSstream量指定不同的端口或者为每个协议指定默认端口(3128)? 或者我必须在squid.conf中指定“https_port”指令? 我删除防火墙上的redirect规则,并创build一个configuration文件(proxy.pac / wpad.dat); 用户在其浏览器上指定该文件的URL,所以它自动加载代理configuration。 在这一点上我的问题是:为什么这些解决scheme与HTTPSstream量和透明代理不工作? 先谢谢你。
我使用NGINX作为Web服务器。 我想在我的login页面中使用https ,所有其他页面都应该提供http连接。 当他键入“/ login”url前缀时,如何将用户redirect到https,然后在键入任何其他url后缀时redirect到“http”? 谢谢
我已经build立了Squid v.3.1 + Squidguard,通过proxy.pac文件在每个浏览器上configuration代理。 现在,如果一个用户访问被HTTP阻塞的站点(例如http://www.facebook.com ),Urlfilter就会工作,用户被redirect到阻止页面,但是如果他去https(例如http:// www.facebook.com)他没有被封锁。 我必须configuration什么来阻止HTTPSurl? 这是我的squid.conf: acl manager proto cache_object acl localhost src 127.0.0.1/32 ::1 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port […]
我在Windows 2008上有一个Apache 2.4服务器,作为一个反向代理工作得很好。 它提供在Glassfish 3.0上运行的LifeRay 6.0安装的内容。 最初,当我们实施https永久性redirect时,我们不能再loginLifeRay,但是现在我已经解决了这个问题。 一旦我们login到Liferay,连接是安全的,但仍然可以将https更改为http,页面将显示为http连接,而不会恢复为https。 而且,到站点的初始连接可以使用http,如果用户没有login,站点将继续使用http连接。 再次,我虽然redirect永久会强制所有HTTPstream量为https。 Apache向用户提供SSL连接,proxypass指令在不安全的端口上连接到LifeRay,这不是问题,因为内部连接是虚拟的,不能从Internet访问。 所以,我虽然有configuration钉在这个,但我必须失去一些东西,因为我似乎能够访问该网站与http时,我认为永久redirect会阻止。 ProxyPassReverse应该是https而不是http? 这是configuration: testing服务器 <VirtualHost *:443> ServerName test.myexternalserver.org # ProxyPreserveHost On SetEnv proxy-sendchunked SSLEngine on ProxyPass / http://192.168.80.196:8080/ ProxyPassReverse / http://192.168.80.196:8080/ </VirtualHost> <VirtualHost *:80> ServerName test.myexternalserver.org ProxyPreserveHost On SetEnv proxy-sendchunked Redirect permanent / https://test.myexternalserver.org/ ProxyPass / http://192.168.80.196:8080/ ProxyPassReverse / http://192.168.80.196:8080/ </VirtualHost>