Get your real server info
The post View Your Server Environment Variables using Htaccess Mod_Rewrite appeared first on AskApache.
Get your real server info
The post View Your Server Environment Variables using Htaccess Mod_Rewrite appeared first on AskApache.
Fresh .htaccess code for you! Check out the Cookie Manipulation and environment variable usage with mod_rewrite! I also included a couple Mod_Security .htaccess examples. Enjoy!
Originally Posted: 3/29/2008
The post .htaccess Examples: Cookies, Variables, Custom Headers appeared first on AskApache.
There isn't much vlan info on the net in terms of specifics and I had to learn all about it because I needed to log in to a switch that was on a different vlan. With the help of the Ettercap developers NaGA and ALoR I figured it out.
Originally Posted: 3/30/2004
The post Hacking VLAN switched networks appeared first on AskApache.
The post Apache Compression, Vary, mod_deflate appeared first on AskApache.
What if you'd like to send a 200 OK response instead of the default 404 Not Found response using Apache .htaccess files or httpd.conf? One use would be to make sure upstream caches cache any request on an api server, as 404's are not cached.
The post Respond with 200 OK for 404 Not Found appeared first on AskApache.
htaccess rewrite Master Class! If you understand the basics of mod_rewrite, or if you literally write the mod_rewite.c code, this article will transform your thinking. The transformation is profound. Deeply effective. Culmination of the best of the best mod_rewrite tricks for understanding and learning exactly what rewrite is doing.
The post Htaccess Mod_Rewrite – Crazy Advanced Master Class appeared first on AskApache.
The post Libcurl Error Codes appeared first on AskApache.
.htaccess Topic vs htaccess Keyword
trends.embed.renderExploreWidget("TIMESERIES", {"comparisonItem":[{"keyword":"/m/02pdtl","geo":"","time":"today 5-y"},{"keyword":"htaccess","geo":"","time":"today 5-y"}],"category":0,"property":""}, {"exploreQuery":"date=today%205-y&q=%2Fm%2F02pdtl,htaccess","guestPath":"https://trends.google.com:443/trends/embed/"});
The post Google Trends for SEO / Apache Htaccess appeared first on AskApache.
The post ListOfErrors appeared first on AskApache.
The post Apache 2.4 and PHP-FPM appeared first on AskApache.
Play a tune directly on your pcspeaker right before the grub boot manager loads.
The post GRUB_INIT_TUNE – Play sound through pcspkr appeared first on AskApache.
I really really wanted to run the latest MariaDB with LZ4 Page Compression.. it is a game changer for many types of large databases I deal with. So I compiled it manually in a way that is repeatable and follows best-practices and it's now powering this site. Now I can use InnoDB Page Compression with lzo, lzma, bzip2, snappy, or my favorite algorithm: LZ4.
Thought this would be a good chance to post a howto, and show that there is a lot you can do by compiling software yourself and breaking the package management one-click install shackles.
The post MariaDB with LZ4 Compression Howto for CentOS appeared first on AskApache.
One of the biggest speed bottlenecks of sites today are images, specifically unoptimized images or large scaled images. With Apaches Rewrite module we can convert all existing jpegs and png files (and most gifs) to webp, then transparently rewrite them so that a request for img.png from a browser that supports webp will receive img.webp.
The post Serving WebP images for PNG and JPG files appeared first on AskApache.
While playing around with the Nmap Scripting Engine (NSE) we discovered an amazing number of open embedded devices on the Internet. Many of them are based on Linux and allow login to standard BusyBox with empty or default credentials. We used these devices to build a distributed port scanner to scan all IPv4 addresses. These scans include service probes for the most common ports, ICMP ping, reverse DNS and SYN scans. We analyzed some of the data to get an estimation of the IP address usage.
The post Internet Census 2012 – Port scanning using insecure embedded devices – Carna Botnet appeared first on AskApache.
The bottom line for this article is that I want to make WordPress as fast, secure, and easy to install, run, and manage because I am using it more and more for client production sites, I will work for days in order to solve an issue so that I never have to spend time on that issue again. Time is money in this industry and that is ultimately (time) what there is to gain by tweaking WordPress.
Note: I spent no time on readability, this is primarily a read the code and figure it out article.. This is for advanced users looking for a reference or discussion and for those of you looking to advance. Feedback would be great if you make it that far..
The post Advanced WordPress wp-config.php Tweaks appeared first on AskApache.
This amazing bash linux prompt does more than meets the eye. If you want to know how to become really good with technology, linux is the secret sauce behind the AskApache articles. Open Source is elixir of the web. Thanks to everyone who helped me for the past 20 years. I use linux/bsd because homey don't play, so this is geared to be as productive a prompt as I can make it.
Don't have much time.. or just don't care? Not a problem, here are the 3 lines to copy and paste - you can just paste them right in your shell to test it, or add to a startup script.
export AA_P="export PVE=\"\\033[m\\033[38;5;2m\"\$(( \`sed -n \"s/MemFree:[\\t ]\\+\\([0-9]\\+\\) kB/\\1/p\" /proc/meminfo\` / 1024 ))\"\\033[38;5;22m/\"\$((\`sed -n \"s/MemTotal:[\\t ]\\+\\([0-9]\\+\\) kB/\\1/p\" /proc/meminfo\`/ 1024 ))MB\"\\t\\033[m\\033[38;5;55m\$(< /proc/loadavg)\\033[m\";echo -en \"\""
export PROMPT_COMMAND="history -a;((\$SECONDS % 10==0 ))&&eval \"\$AA_P\";echo -en \"\$PVE\";"
export PS1="\\[\\e[m\\n\\e[1;30m\\][\$\$:\$PPID \\j:\\!\\[\\e[1;30m\\]]\\[\\e[0;36m\\] \\T \\d \\[\\e[1;30m\\][\\[\\e[1;34m\\]\\u@\\H\\[\\e[1;30m\\]:\\[\\e[0;37m\\]\${SSH_TTY} \\[\\e[0;32m\\]+\${SHLVL}\\[\\e[1;30m\\]] \\[\\e[1;37m\\]\\w\\[\\e[0;37m\\] \\n(\$SHLVL:\\!)\\\$ " && eval $AA_P
The post Crazy POWERFUL Bash Prompt appeared first on AskApache.
WordPress uses a file named .htaccess to rewrite all requests to the main index.php file. This article explains what the htaccess file rules look like and what they actually do.
The post WordPress .htaccess in-depth appeared first on AskApache.
FallBackResource is a great alternative to using mod_rewrite to direct Apache to send all requests for non-existing files/directories to a script in WordPress. Htaccess and Server Config enabled.
The post Use FallbackResource for WordPress instead of mod_rewrite appeared first on AskApache.
This trailer speaks to the current state of the Internet of Things, and what we can expect over the next several years.
The post Watch Dogs 2 appeared first on AskApache.
The post OpenSearch description document appeared first on AskApache.