2015-10-29 27 views
0

我擁有域名ImageResizing的性能許可證* .com 該域指向Cloudfront CDN,然後指向負載均衡器,該負載均衡器下有服務器。因此,訪問我們服務器的請求來自域* .us-east-1.elb.amazonaws.com,這會導致許可證無效。有誰知道我們如何解決這個問題?ImageResizer許可證不能在Cloudfront CDN下工作

我擁有域名ImageResizing的性能許可證* .com 該域指向Cloudfront CDN,然後指向負載均衡器,該負載均衡器具有服務器。因此,訪問我們服務器的請求來自域* .us-east-1.elb.amazonaws.com,這會導致許可證無效。有誰知道我們如何解決這個問題?

Image resizer diagnostic sheet  ***.com 10/29/2015 9:43:26 AM 

2 Issues detected: 

resizer configuration(Error): No license found for domain ***.us-east-1.elb.amazonaws.com - features installed: R4Performance or R4BlobProviders 


(Warning): NoCache is only for development usage, and cannot scale to production use. 
      Add DiskCache or CloudFront for production use 

Assembly use report: 


You are using plugins and assemblies from the V4 Performance Edition. 


---------------- 

License keys 

List of installed domain licenses: 
***.com => R4Performance 

---------------- 



Registered plugins: 

ImageResizer.Plugins.Basic.DefaultEncoder 
ImageResizer.Plugins.Basic.NoCache 
ImageResizer.Plugins.Basic.ClientCache 
ImageResizer.Plugins.Basic.Diagnostic 
ImageResizer.Plugins.Basic.WebConfigLicenseReader 
ImageResizer.Plugins.Basic.SizeLimiting 
ImageResizer.Plugins.Basic.MvcRoutingShimPlugin 
ImageResizer.Plugins.S3Reader2.S3Reader2 
ImageResizer.Plugins.LicenseVerifier.LicenseEnforcer`1[ImageResizer.Storage.BlobProviderBase] 
ImageResizer.Plugins.AnimatedGifs.AnimatedGifs 
ImageResizer.Plugins.PrettyGifs.PrettyGifs 
ImageResizer.Plugins.RemoteReader.RemoteReaderPlugin 

Configuration: 

<resizer> 
<pipeline fakeExtensions=".ashx" /> 
<remotereader signingKey="" allowAllSignedRequests="true" allowRedirects="5"> 
<allow domain="*" /> 
</remotereader> 
<plugins> 
<add name="S3Reader2" vpp="true" buckets="***-uploads" prefix="~/s3/" checkForModifiedFiles="false" useSsl="false" accessKeyId="" secretAccessKey="" useSubdomains="false" region="us-west-1" /> 
<add name="AnimatedGifs" /> 
<add name="PrettyGifs" /> 
</plugins> 
<clientcache minutes="1440" /> 
<licenses> 
<license> 

     ***.com(R4Performance includes R4Performance) 
:*** 
     </license> 
</licenses> 
</resizer> 


Accepted querystring keys: 

quality, format, thumbnail, colors, dither, maxwidth, maxheight, width, height, w, h, crop, page, bgcolor, rotate, flip, sourceFlip, sFlip, sRotate, borderWidth, borderColor, paddingWidth, paddingColor, frame, useresizingpipeline, cache, process, margin, dpi, zoom, autorotate, 

Accepted file extensions: 

bmp, gif, exif, png, tif, tiff, tff, jpg, jpeg, jpe, jif, jfif, jfi, 

Environment information: 

Running Microsoft-IIS/8.5 on Microsoft Windows NT 6.3.9600.0 and CLR 4.0.30319.42000 
Trust level: Unrestricted 
OS bitness: AMD64 
Executing assembly: c:\windows\system32\inetsrv\w3wp.exe 
IntegratedPipeline: True 

Installed HttpModules: 

System.Web.Caching.OutputCacheModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a   (under keyOutputCache) 
System.Web.SessionState.SessionStateModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a   (under keySession) 
System.Web.Security.WindowsAuthenticationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a   (under keyWindowsAuthentication) 
System.Web.Security.FormsAuthenticationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a   (under keyFormsAuthentication) 
System.Web.Security.DefaultAuthenticationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a   (under keyDefaultAuthentication) 
System.Web.Security.RoleManagerModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a   (under keyRoleManager) 
System.Web.Security.UrlAuthorizationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a   (under keyUrlAuthorization) 
System.Web.Security.FileAuthorizationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a   (under keyFileAuthorization) 
System.Web.Security.AnonymousIdentificationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a   (under keyAnonymousIdentification) 
System.Web.Profile.ProfileModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a   (under keyProfile) 
System.Web.UrlMappingsModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a   (under keyUrlMappingsModule) 
System.Web.Routing.UrlRoutingModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a   (under keyUrlRoutingModule-4.0) 
System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35   (under keyScriptModule-4.0) 
ImageResizer.InterceptModule, ImageResizer, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null   (under keyImageResizingModule) 

Loaded assemblies: 

mscorlib         Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System.Web        Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System         Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System.Core        Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System.Configuration      Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System.Xml        Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System.Web.ApplicationServices   Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System.Runtime.Caching     Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
Microsoft.Build.Utilities.v4.0   Assembly: 4.0.0.0   File: 4.0.30319.33440 Info: 4.0.30319.33440 
Microsoft.JScript      Assembly: 10.0.0.0  File: 14.0.81.0  Info: 14.0.81.0 
App_global.asax.9b8m6vn6     Assembly: 0.0.0.0   
***.Shared       Assembly: 1.0.0.0   File: 1.0.0.0   
ImageResizer.Plugins.RemoteReader  Assembly: 4.0.0.0   File: 4.0.4.934  Info: 4.0.4 Commit: 9f75f3637f9b00eb64acf004adaa066b47585638 
System.Web.Extensions     Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
Microsoft.CSharp       Assembly: 4.0.0.0   File: 4.0.30319.33440 Info: 4.0.30319.33440 
System.Data        Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System.Web.Services      Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System.Drawing       Assembly: 4.0.0.0   File: 4.6.93.0  Info: 4.6.93.0 
System.EnterpriseServices    Assembly: 4.0.0.0   File: 4.0.30319.33440 Info: 4.0.30319.33440 
System.IdentityModel      Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System.Runtime.Serialization    Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System.ServiceModel      Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System.ServiceModel.Activation   Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System.ServiceModel.Web     Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System.Activities      Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System.ServiceModel.Activities   Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System.WorkflowServices     Assembly: 4.0.0.0   File: 4.0.30319.33440 Info: 4.0.30319.33440 
System.Data.DataSetExtensions   Assembly: 4.0.0.0   File: 4.0.30319.33440 Info: 4.0.30319.33440 
System.Xml.Linq       Assembly: 4.0.0.0   File: 4.0.30319.33440 Info: 4.0.30319.33440 
System.ComponentModel.DataAnnotations Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 
System.Web.DynamicData     Assembly: 4.0.0.0   File: 4.0.30319.33440 Info: 4.0.30319.33440 
AWSSDK.Core        Assembly: 3.1.0.0   File: 3.1.3.2   
AWSSDK.S3        Assembly: 3.1.0.0   File: 3.1.3.3   
***.Configuration     Assembly: 1.0.0.0   File: 1.0.0.0   
***.Extensions      Assembly: 1.0.0.0   File: 1.0.0.0   
ImageResizer        Assembly: 4.0.0.0   File: 4.0.4.934  Info: 4.0.4 Commit: 9f75f3637f9b00eb64acf004adaa066b47585638 
ImageResizer.Plugins.AnimatedGifs  Assembly: 4.0.0.0   File: 4.0.4.934  Info: 4.0.4 Commit: 9f75f3637f9b00eb64acf004adaa066b47585638 
ImageResizer.Plugins.PrettyGifs   Assembly: 4.0.0.0   File: 4.0.4.934  Info: 4.0.4 Commit: 9f75f3637f9b00eb64acf004adaa066b47585638 
ImageResizer.Plugins.S3Reader2   Assembly: 4.0.0.0   File: 4.0.4.934  Info: 4.0.4 Commit: 9f75f3637f9b00eb64acf004adaa066b47585638 
ImageResizer.Storage      Assembly: 4.0.0.0   File: 4.0.4.934  Info: 4.0.4 Commit: 9f75f3637f9b00eb64acf004adaa066b47585638 
log4net         Assembly: 1.2.13.0  File: 1.2.13.0  Info: 1.2 
Newtonsoft.Json       Assembly: 7.0.0.0   File: 7.0.1.18622  
ServiceStack.Interfaces     Assembly: 4.0.0.0   File: 4.0.46.0  
ServiceStack.Text      Assembly: 4.0.46.0  File: 4.0.46.0  
System.Numerics       Assembly: 4.0.0.0   File: 4.6.81.0  Info: 4.6.81.0 

回答

1

是否有自定義名稱? I.e,myinstance.us-east-1.elb.amazonaws.com?如果是這樣,這將是您將註冊許可證密鑰的域。除非該名稱通過HTTP作爲HOST標頭的一部分傳輸給它,否則ImageResizer無法知道它在哪個域名下發布。 (或者,另一個標題,如果原始域以某種方式轉發 - 我們可以添加一個後備路徑 - 如果是這樣,在Github上打開一個問題(或PR))。

您可能會考慮免DRM許可證(如Elite)以減少與更改負載平衡器和配置相關的長期麻煩。我們不建議複雜設置的域限制許可證,,特別是,需要負載均衡。

另外,請記住,它是100%的開源(半AGPL 3,一半的Apache 2),並且您可以依法免費剝離DRM並製作自己的版本,即使在商業許可條款下。我們真的不介意。

+0

你好Nathanael。謝謝您的回答。如果我們刪除DRM,我們100%可以嗎?無論如何,我們爲我們的域名購買了許可證,所以唯一的問題是我們在負載均衡器下,但是我們使用這個許可證的唯一域名是我們購買許可證的域名。 –

+0

是的,您可以自由移除DRM並重新編譯。請參閱[我們的域許可條款](http://imageresizing.net/licenses/domain)。但是,除非擁有許可證,否則無法將DRM免費版本重新分發給其他用戶。 –

相關問題