nginx return adds trailing slash to url

Alexander McNulty asked: This redirect adds a trailing slash which breaks the link I would like to spend people to, the exact code follows: server { listen 80; server_name graphwhy.org; return 301 https://www.surveymonkey.com/r/nationaldebt$request_uri; } currently when someone enters graphwhy.org into […]

Continue reading »

nginx not caching wordpress site

Qwerty.ie asked: I have a website set up to use nginx caching. Here are the details: fastcgi_cache_path /etc/nginx/cache levels=1:2 keys_zone=MYAPP:100m inactive=60m; fastcgi_cache_key “$scheme$request_method$host$request_uri”; server { listen 80 default_server; listen [::]:80 default_server; set $no_cache 0; if ($request_method = POST) { set […]

Continue reading »

systemd service script for libreoffice/openoffice

Alessandro Dentella asked: I’m trying to setup correctly a headless libreoffice/openoffice server on a debian jessie. I created a script named /etc/systemd/system/openoffice.service with the following content [Unit] Description=OpenOffice service After=syslog.target [Service] ExecStart=/usr/bin/soffice ‘–accept=socket,host=localhost,port=8101;urp;StarOffice.ServiceManager’ –headless –nofirststartwizard –nologo Restart=always KillSignal=SIGQUIT Type=notify StandardError=syslog […]

Continue reading »
1 2 3 306