railo

Nginx client_max_body_size not working in Docker container on AWS Elastic Beanstalk

泪湿孤枕 提交于 2020-05-12 15:48:29
问题 I'm having a problem where nginx seems to be ignoring (or overriding) my upped client_max_body_size directive in a Ubuntu Docker container on AWS Elastic Beanstalk. This is preventing users from uploading files any larger than the nginx default of 1MB. I have used the client_max_body_size 10M; in http, server,and location blocks to no avail, I am still seeing "client intended to send too large body" errors in the nginx logs. I have successfully used these settings on an AWS EC2 Ubuntu

Nginx client_max_body_size not working in Docker container on AWS Elastic Beanstalk

泄露秘密 提交于 2020-05-12 15:47:01
问题 I'm having a problem where nginx seems to be ignoring (or overriding) my upped client_max_body_size directive in a Ubuntu Docker container on AWS Elastic Beanstalk. This is preventing users from uploading files any larger than the nginx default of 1MB. I have used the client_max_body_size 10M; in http, server,and location blocks to no avail, I am still seeing "client intended to send too large body" errors in the nginx logs. I have successfully used these settings on an AWS EC2 Ubuntu

how to create new database in H2?

狂风中的少年 提交于 2020-01-22 20:18:32
问题 I have a site running locally on MySQL i want to run it on H2 database. I have just run h2.jar file for console on the browser but whenever I Log in I have seen the list jdbc:h2:/var/www/mysite/data/db; MODE=MySQL, information_schema and users. I can create tables in it but don't know how to create new database? I am using Mode = MySQL type = H2 Database Engine in Embedded mode. 回答1: From http://www.h2database.com/html/tutorial.html#creating_new_databases, By default, if the database

Parse a specific variable from a url stored as a string with CFML

╄→尐↘猪︶ㄣ 提交于 2020-01-20 06:59:11
问题 I want to parse a specific url variable key value from a url stored as a string. It seems that you can use the underlying java library coldfusion.util.HTMLTools under ACF, but I need it to work under Railo as well. Is there another way, or is using a regular expression the best answer? I'm trying to retrieve the value of the url variable key without the anchor in a url formatted like the following example. http://example.com?key=134324625625435#gid=0 回答1: I was posting as a comment on Scott's

FW/1 App Calling onApplicationStart on Every Request

被刻印的时光 ゝ 提交于 2020-01-04 15:51:23
问题 I have a FW/1 app on Railo 4.2.2/Apache and for some reason it's calling onApplicationStart on every request. I can tell it's not any reinit code - put in a callStackGet() dump in setupApplication and can see that the root call is onApplicationStart (not via any init hook). Are there any known bugs in Railo that would cause this? I've double checked the application timeout (1 day) and the FW/1 setting - it's turned off - so there should be no reason the app would be losing application scope

Difference between AUTH_USER and REMOTE_USER cgi variables

倖福魔咒の 提交于 2020-01-03 11:32:51
问题 The docs aren't entirely clear on this - is there a difference between these variables? On IIS at least they appear to be identical, but I don't want to rely on that if it might be different under other servers. 回答1: According to the Adobe ColdFusion documentation they are the same. http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Expressions_8.html Looking at the openbd source code, the remote_user and the auth_user are mapped to the same key, so it returns the same value.

How do I generate an OpenOffice Draw document?

半世苍凉 提交于 2020-01-03 08:32:19
问题 I want to create a flowchart in OpenOffice Draw. Since there's a lot of steps to show (and may change in future) but I can extract the data, I want to automate the creation with the following steps: Create a new ODG document with specified page settings. Insert flow chart shapes with specified properties. Connect those things with arrows. Ideally, auto-organise things into sensible positions. I don't want to spend hours reading about some "UNO" thing - I just want code examples that I can

Use SerializeJSON to return an array of structs instead of JSON object with COLUMNS and DATA nodes?

不想你离开。 提交于 2020-01-02 10:28:10
问题 I am building a Railo app which deals with a lot of JSON data sent back and forth via Ajax. I've identified an opportunity to optimize its performance, but I'd like to hear some advice from the community before I tackle it. Here is a good example of the situation. I have an action on the server that queries a set of bid responses, serializes them to JSON, then returns them to my javascript on the front end, which then parses and renders some HTML. The format in which Railo returns the JSON is

SES url's with Railo/tomcat that have dynamic subfolders

筅森魡賤 提交于 2019-12-25 18:58:52
问题 I've had success getting SES urls to work such as http://mydomain.com/index.cfm/foo/bar using <url-pattern>/index.cfm/*</url-pattern> , however this only works for the root and if the folders are known. If for example i have a sub folder with a child application that employs the same trick http://mydomain.com/products/index.cfm/foo/bar i can also get it to work by using <url-pattern>/products/index.cfm/*</url-pattern> , however, if there are folders between /products/ and index.cfm/foo/bar

Curl call to ColdFusion - Instagram

岁酱吖の 提交于 2019-12-24 08:49:27
问题 I'm not experienced with cURL at all, but from what I can gather, it's equivalent to cfhttp. I want to work with the Instagram API and authenticate a user. Their example uses cURL. curl \-F 'client_id=CLIENT-ID' \ -F 'client_secret=CLIENT-SECRET' \ -F 'grant_type=authorization_code' \ -F 'redirect_uri=YOUR-REDIRECT-URI' \ -F 'code=CODE' \https://api.instagram.com/oauth/access_token Would I be correct in thinking the CF version would be: <cfhttp url="https://api.instagram.com/oauth/access