Serving a static file for a certain user agent

I have the following config: server { listen 80; listen [::]:80; server_name example.com; return 302 https://$server_name$request_uri; } server { # SSL configuration listen 443 ssl http2; listen [::]:443 ssl http2; ssl on; ssl_certificate /etc/ssl/certs/cert.pem; ssl_certificate_key /etc/ssl/private/cert.pem; server_name example.com; root /var/www/example; index index.html; location / { if ( $http_user_agent = “Dinosaur” ) { rewrite https://example.com/ https://example.com/example.gif;…

LibreSSL errors when attempting to copy extensions from CSR to x509 Cert

I’m trying to create an x509 certificate with a very specific set of x509v3 Extensions from a CSR (that already has these Extensions set). I have a CSR in PEM form (?). It looks like this: —–BEGIN CERTIFICATE REQUEST—– MIIEjDCCAnQCAQAwFT… …EQFqw== —–END CERTIFICATE REQUEST—– I’m trying to sign it by piping it through libressl (I’m…

I cannot edit my crontab in Ubuntu after saving the file

Edited Why would the below command cause crontab -e to show permission denied errors? /bin/sh /var/www/ers-api-proxy/backup.sh 1> /var/www/ers-api-proxy/log.txt 2> /var/www/ers-api-proxy/err.txt Crontab works fine for me until I run this command. When it stopped working originally, I restored my DO droplet and it began working again. Then when I ran the above command for a second…

Postfix – Disable system users for $mydomain

I’ve setup a postfix server on centos 7: # postconf -n canonical_maps = hash:/etc/postfix/canonical config_directory = /etc/postfix inet_interfaces = all mydestination = localhost localhost.$mydomain $mydomain mydomain = apptizer.net myhostname = mail.apptizer.net mynetworks = 127.0.0.0/8 10.3.0.0/16 $myhostname myorigin = $mydomain relay_domains = smtp_tls_security_level = may smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated reject_invalid_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_destination, reject_unauth_pipelining,…

We’re deleting stale AD accounts for a company but owner wants to see the network files of AD users before deciding which accts to delete

We are deleting stale AD accounts for the companies we work for. I contacted the owner of a particular company to help us determine which AD accounts we can delete. He said he’d first like to see what files the deletion candidates have stored on the network to help decide which accounts are OK to…

Running a Shell script, I get the error: Warning: execve: No such file or directory

I’m trying to run the following script: #!/bin/bash set -e python process_init.py python process_global_variables.py python process_strings.py python process_skills.py python process_music.py python process_animations.py python process_meshes.py python process_sounds.py python process_skins.py python process_map_icons.py python process_factions.py python process_items.py python process_scenes.py python process_troops.py python process_particle_sys.py python process_scene_props.py python process_tableau_materials.py python process_presentations.py python process_party_tmps.py python process_parties.py python process_quests.py python process_info_pages.py python…