nginx
Nginx: Permission denied for nginx on Ubuntu [closed]
Make sure you are running the test as a superuser. sudo nginx -t Or the test wont have all the permissions needed to complete the test properly.
What language are nginx conf files?
So I’m a newbie to nginx, and had this same question. Turns out the syntax of the language as mentioned above is both custom and actually quite simple. The syntax is captured in a section in the NGINX docs, and repeated here for convenience: nginx consists of modules which are controlled by directives specified in … Read more
Angular app has to clear cache after new deployment
The problem is When a static file gets cached it can be stored for very long periods of time before it ends up expiring. This can be an annoyance in the event that you make an update to a site, however, since the cached version of the file is stored in your visitors’ browsers, they … Read more
Gunicorn, no module named ‘myproject
Your error message is ImportError: No module named ‘myproject.wsgi’ You ran the app with gunicorn –bind 0.0.0.0:8000 myproject.wsgi:application And wsgi.py has the line os.environ.setdefault(“DJANGO_SETTINGS_MODULE”, “settings”) This is the disconnect. In order to recognize the project as myproject.wsgi the parent directory would have to be on the python path… running cd .. && gunicorn –bind 0.0.0.0:8000 … Read more
Is GridFS fast and reliable enough for production?
I use gridfs at work on one of our servers which is part of a price-comparing website with honorable traffic stats (arround 25k visitors per day). The server hasn’t much ram, 2gigs, and even the cpu isn’t really fast (Core 2 duo 1.8Ghz) but the server has plenty storage space : 10Tb (sata) in raid … Read more
GD Library extension not available with this PHP installation Ubuntu Nginx
The GD Graphics Library is for dynamically manipulating images. For Ubuntu you should install it manually: PHP7.4: sudo apt-get install php7.4-gd PHP8.0: sudo apt-get install php8.0-gd PHP8.1: sudo apt-get install php8.1-gd That’s all, you can verify that GD support loaded: php -i | grep -i gd Output should be like this: GD Support => enabled … Read more
nginx + uwsgi: — unavailable modifier requested: 0 —
Original answer For Python 2 on Ubuntu 11.10, using upstart, install the python plugin for uWSGI with apt-get install uwsgi-plugin-python and if you’re using an ini file to configure your uWSGI app, then add plugins = python to the [uwsgi] section and it should solve this problem. Edit: Updated for Python 3 and Ubuntu 17.10 … Read more
NGINX gzip not compressing JavaScript files
Change this line: gzip_types text/plain application/x-javascript text/xml text/css; To be this: gzip_types text/plain application/javascript application/x-javascript text/javascript text/xml text/css; Note the addition of application/javascript and text/javascript to your list of gzip types. There are also more details—and a more expansive list of gzip types—in the answer posted here.
Nginx variables similar to SetEnv in Apache?
location / { … fastcgi_param APPLICATION_ENV production; fastcgi_param APPLICATION_CONFIG user; … } but it’s for PHP-CGI