cloudflare

Laravel: HTTPS in Form::open()

允我心安 提交于 2019-11-30 09:33:10
I'm using SSL for my website (Cloudflare HTTPS) in my login for weh I use ``, Laravel won't convert my website link to SSL version and it shows http version. How can I force Laravel to use https for me? For example: <?=Form::open(array('id' =>'submit'))?> . . . <?=Form::close()?> And the result will be: <form method="POST" action="http://example.com" accept-charset="UTF-8" id="submit"> </form> I want action to be a HTTPS link. If you want to use https you need to manually give path which will be set to action. You need to use URL::to this way: <?=Form::open(array('url' => URL::to('/', array(),

Cloudflare and nginx: Too many redirects

给你一囗甜甜゛ 提交于 2019-11-30 06:21:40
I'm trying to set up NGINX and cloudflare. I've read about this on Google but nothing solved my problem . My cloudflare is active at the moment. I removed all page rules in cloudflare but before had domain.com and www.domain.com to use HTTPS. I thought this could be causing the problem so I removed it. Here is my default NGINX file, with purpose of allowing only access by domain name and forbid access by IP value of the website: server{ #REDIRECT HTTP TO HTTPS listen 80 default; listen [::]:80 default ipv6only=on; ## listen for ipv6 rewrite ^ https://$host$request_uri? permanent; } server{

Heroku + Cloudflare completely free SSL

落爺英雄遲暮 提交于 2019-11-29 21:01:37
Attempting to get completely free SSL on Heroku using Cloudflares new free Universal SSL Read this article: http://mikecoutermarsh.com/adding-ssl-to-heroku-with-cloudflare/ Which seems to suggest its possible now that Cloudflare offers SSL for free. The steps I took: Set up my DNS with Cloudflare (free account) Forwarded my domain to my herokuapp (CNAME example-app.com -> example-app.herokuapp.com) Set the Cloudflare SSL option to 'Full SSL' Added my domain to my heroku app Forcing https with this express middleware: app.use(function(req, res, next) { if (req.headers['x-forwarded-proto'] !=

Azure website IP restriction

痴心易碎 提交于 2019-11-29 14:32:08
I have an Azure website which I only use for development and testing, therefore I want to restrict access to it for everyone but myself. According to this blog article this is now offically supported, so I tried adding this to my web.config file: <system.webServer> <security> <ipSecurity allowUnlisted="false" denyAction="NotFound"> <add allowed="true" ipAddress="1.2.3.4" /> </ipSecurity> </security> </system.webServer> For the ipAddress attribute I have to use the IP address of my internet connection right? So I went to http://www.whatismyip.com/ and copied the address, but now my website is

Laravel: HTTPS in Form::open()

北战南征 提交于 2019-11-29 14:29:08
问题 I'm using SSL for my website (Cloudflare HTTPS) in my login for weh I use ``, Laravel won't convert my website link to SSL version and it shows http version. How can I force Laravel to use https for me? For example: <?=Form::open(array('id' =>'submit'))?> . . . <?=Form::close()?> And the result will be: <form method="POST" action="http://example.com" accept-charset="UTF-8" id="submit"> </form> I want action to be a HTTPS link. 回答1: If you want to use https you need to manually give path which

Angular2 GZIP issue when I run my app

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 12:47:23
I have an angular2 typescript app. I host with Firebase and use cloudflare for speed, caching and protection. The browser header says: accept-encoding:gzip, deflate, sdch, br This gets converted to a app.js file and is minified now to 1.6mb. I then GZIP Compressed this app.js file. I'm wanting to use the app.js file that is now GZIP compressed rather than the original 1.6mb app.js file. Therefore, I point to the app.js.gz file in my index.html page and I get a browser error called: app.js.gz:1 Uncaught SyntaxError: Invalid or unexpected token Below is a screen grabs of my app.js file and index

Cloudflare and nginx: Too many redirects

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 06:09:23
问题 I'm trying to set up NGINX and cloudflare. I've read about this on Google but nothing solved my problem . My cloudflare is active at the moment. I removed all page rules in cloudflare but before had domain.com and www.domain.com to use HTTPS. I thought this could be causing the problem so I removed it. Here is my default NGINX file, with purpose of allowing only access by domain name and forbid access by IP value of the website: server{ #REDIRECT HTTP TO HTTPS listen 80 default; listen [::]

curl: can't fetch rss from website because of CloudFlare

穿精又带淫゛_ 提交于 2019-11-29 05:08:30
I'm notable to connect this site http://www.youm7.com/newtkarirrss.asp using curl on the server But i can access it from localhost with out any problem Here is the test http://www.tjreb.com/xml_grabber.php?feed=http://www.youm7.com/newtkarirrss.asp&stack=1 Try The CNN rss feed http://www.tjreb.com/xml_grabber.php?feed=http://rss.cnn.com/rss/edition_meast.rss&stack=0 How can i bypass this error Here is my source code <?php class xml_grabber { private $xml_file = '' ; private $xml_link = '' ; private $xml_dom = '' ; private $xml_type = '' ; private $xml_content = '' ; private $xml_errors = array

How do I prevent Rails 3.1 from caching static assets to Rails.cache?

▼魔方 西西 提交于 2019-11-28 23:14:03
I'm using CloudFlare CDN on my Rails 3.1 application. Cloudflare is a CDN that works at the DNS level. On the first hit to a static asset, CloudFlare loads it from your app then caches it in their CDN. Future requests for that asset load from the CDN instead of your app. The problem I'm having is that if you set controller caching to true: config.action_controller.perform_caching = true it enables the Rack::Cache middleware. Since Rails sets a default cache control setting for static assets, those assets get written to the Rails.cache store. As a result my cache store (in my case redis) is

Firebase hosting: Needs Setup

风流意气都作罢 提交于 2019-11-28 21:16:28
I am trying to set custom domain for my firebase app Firebase hosted url : https://inventory-app-726af.firebaseapp.com/ Custom Domain: inv.agsft.com I have followed all instructions as part of setting custom domain but after verification step when I click on finish button, status will always be "Needs Setup". I am managing DNS through cloudflare ( https://www.cloudflare.com/ ) and I am following Quick setup option. Any pointers to resolve it? Many Thanks Pari brennen I had the same problem, I was able to resolve it by toggling the DNS Status on cloudflare from DNS and HTTP Proxy (CDN) to just