Categories
Mastering Development System & Network

How do I make grub install on a software-raid disk?

I am running Debian 9 with mdadm RAID 1 on it. Previously both hard-drives could boot into the OS, now only one of them can. I have recently had a faulty disk which needed to be replaced, so replace it I did. First, I ran mdadm –add /dev/md0 /dev/sda Which worked well. Right after that […]

Categories
Mastering Development System & Network

I WANT to display PHP errors but PHP-FPM causing 503 + “Failed to read FastCGI header” in apache

I’ve built an error handler for my PHP app to gracefully and intelligently display errors based on the current user rights, which worked great when I was just using straight up Apache (httpd)…. which is to say the following isn’t anything to do with the standard stuff like display_errors = On or setting the error […]

Categories
Mastering Development System & Network

Administrator no longer has access to sconfig or the C drive

Been running Hyper-V 2019 Server fine for a couple of days with 2 VMs running on there. When connecting to the host server and log in as Admin it no longer launches SConfig but instead says Access Denied. I can no longer launch SConfig and cannot access any of the C drive Connecting

Categories
Mastering Development System & Network

nginx custom-error-pages: problems with including sources

i try to set custom error-pages for nginx, only the folders/files are not included, even if i remove ‘internal’. The files are located in ‘/usr/share/nginx/html/’ in a folder ‘error_pages’ where the HTML files are located. There is a subfolder called ‘files’ with some images and CSS files in it. These can not be included. What […]

Categories
Mastering Development System & Network

Windows 10 IKEv2 IPSec VPN client & DH Group15 (modp3072) or higher

Question: Is there any way to configure the Windows 10 VPN client to use DH Group 15 / Group15 (modp3072) or higher for key exchange? I am somewhat distressed that the CNSA specifies use of DH Group 15 (modp3072) or higher, but the Windows 10 VPN client supports only up to DH Group 14 (modp2048), […]

Categories
Mastering Development System & Network

Can many script instances write to tty (parallel)?

I have recently migrated my upstart scripts to systemd, unlike upstart, I don’t see any output on the tty for services being started/stopped. To get that visual feedback, I added something like echo “Starting $UNIT_NAME” > $MYTTY Where the MYTTY is an environment variable I am setting from output of tty command. I have 20 […]

Categories
Mastering Development System & Network

Ship Logs from application server to ELK server with beats

I am building log analyzer for production environment. My scenario is, i need to setupelasticsearch,Logstash and kibana on one centos7 server which is going to use ELK server another one is apache server(remote server). I have configured following like (i).ELK server – elasticsearch,kibana ,logstash with nginx proxy (ii).Application server(apache server)- installed beats on apache server […]

Categories
Mastering Development System & Network

Ejabberd mod_block_strangers block error stanzas

My ejabberd version is 19.08. With enabled mod_block_strangers error stanzas haven’t been received. Sending message to outside recipient (not local jabber) Example of out stanza with mod_block_strangers=on <message to=”615970@676373647364.com” id=”aad7a”> <subject>test</subject> <body>test</body> <nick xmlns=”http://jabber.org/protocol/nick”>bot</nick> </message> XMPP isn’t local. There is no error stanza. Should be, because this domain doesn’t exist. Example of out stanza with […]

Categories
Mastering Development System & Network

Using SPF and DMARC records to combat invalid email subdomains

I have been able to confirm that bad actors are sending emails from nonexistent subdomains of my company’s primary domain. Let’s say my primary domain is foo.com. Email is sent from that base domain from my own mail system. Due to partnerships with a helpdesk provider, a e-commerce (storefront) company, and a CX/NPS provider, I […]

Categories
Mastering Development System & Network

nginx proxy.conf location : static files 503 error

In proxy.conf I have this location /anomaly-detection/static/ { access_by_lua_file lua/auth.lua; proxy_pass http://127.0.0.1:8000/anomaly-detection/static/; proxy_set_header Host $host; } to serve the static files. However, I always get 503 Service Temporarily Unavailable when I try to access these files. Example: location of one of the static files is https://host-address/anomaly-detection/static/js/10.c8b175cd.chunk.js Is there something wrong with my location rule for […]