378 solutions found in general-dev
Page 1 of 19votes
I have a docker with version `17.06.0-ce`. When I trying to install NGINX using docker with command: docker run -p 80:80 -p 8080:8080 --name nginx -v $PW...
votes
In order to deal with the microservice architecture, it's often used alongside a Reverse Proxy (such as nginx or apache httpd) and for cross cutting concern...
votes
I have this in Nginx configuration files gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml appl...
votes
I'm looking at the [WSGI specification][1] and I'm trying to figure out how servers like [uWSGI][2] fit into the picture. I understand the point of the...
votes
I am running a command ./startup.sh nginx:start and I am getting this error message zsh: permission denied: ./startup.sh why could this...
votes
I want to redirect all the HTTP request to https request on [ELB][1]. I have two EC2 instances. I am using nginx for the server. I have tried a rewriting the ng...
votes
I am writing an express app that sits behind an nginx server. I was reading through express's documentation and it mentioned the 'trust proxy' sett...
votes
Scenario: the size of various files are stored in a database as bytes. What's the best way to format this size info to kilobytes, megabytes and gigabytes? F...
votes
Many of us need to deal with user input, search queries, and situations where the input text can potentially contain profanity or undesirable language. Oftentim...
votes
I have a website that every time a user logs in or logs out I save it to a text file. My code doesn't work in appending data or creating a text file if i...
votes
I have an input form on my website where HTML is allowed and I'm trying to add instructions about the use of HTML tags. I'd like the text to <...
votes
I'm essentially preparing phrases to be put into the database, they may be malformed so I want to store a short hash of them instead (I will be simply compa...
votes
I'm working on a [CMS][1] that fetches a user's profile image from their Facebook [URL][2] (that is, http://facebook.com/users_unique_url). How can I ac...
votes
I'm starting with the new Google service for the notifications, `Firebase Cloud Messaging`. Thanks to this code https://github.com/firebase/quickstart-a...
votes
I'm getting `$row['message']` from a MySQL database and I need to remove all whitespace like `\n` `\t` and so on. $row['message'] = &...
votes
I'm currently working on a website, which triggers a ```net::ERR_HTTP2_PROTOCOL_ERROR 200``` error on Google Chrome. I'm not sure exactly what can provo...
votes
I am trying to upload 30MB file on my server and its not working. 1. When I upload 30MB file, the page loads "**Page Not Found**" 2. When I uplo...
votes
How do I get the current route in [Symfony][1] 2? For example, `routing.yml`: somePage: pattern: /page/ defaults: { _controller: "...
votes
I have a simple form that submits text to my SQL table. The problem is that after the user submits the text, they can refresh the page and the data gets submitt...
votes
I have following $var = "2010-01-21 00:00:00.0" I'd like to compare this date against today's date (i.e. I'd like to know if thi...