AskApache Advanced Web Development Thu, 08 May 2025 02:26:00 +0000 en-US hourly 1 noAdvanced Web Development View Your Server Environment Variables using Htaccess Mod_Rewrite https://www.askapache.com/htaccess/view-server-environment-variables-htaccess-modrewrite/ https://www.askapache.com/htaccess/view-server-environment-variables-htaccess-modrewrite/#respond Wed, 04 Sep 2024 17:48:10 +0000 https://www.askapache.com/?p=5263 Firebug Net view of Request Headers added to Response Headers with HtaccessGet your real server info

The post View Your Server Environment Variables using Htaccess Mod_Rewrite appeared first on AskApache.

]]>
https://www.askapache.com/htaccess/view-server-environment-variables-htaccess-modrewrite/feed/ 0
.htaccess Examples: Cookies, Variables, Custom Headers https://www.askapache.com/htaccess/htaccess-fresh/ https://www.askapache.com/htaccess/htaccess-fresh/#comments Sat, 03 Aug 2024 02:45:29 +0000 https://www.askapache.com/htaccess/htaccess-fresh/ Cookie Manipulation in .htaccess with RewriteRuleFresh .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.

]]>
https://www.askapache.com/htaccess/htaccess-fresh/feed/ 14
Hacking VLAN switched networks https://www.askapache.com/hacking/hacking-vlan-switched-networks/ https://www.askapache.com/hacking/hacking-vlan-switched-networks/#comments Fri, 02 Aug 2024 06:27:11 +0000 https://www.askapache.com/?p=541 Bypassing VLAN security on networked switchesThere 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.

]]>
https://www.askapache.com/hacking/hacking-vlan-switched-networks/feed/ 3
Apache Compression, Vary, mod_deflate https://www.askapache.com/optimize/mod_deflate-compression-vary/ https://www.askapache.com/optimize/mod_deflate-compression-vary/#respond Sat, 23 Apr 2022 01:49:47 +0000 https://www.askapache.com/?p=10431 Apache mod_deflate module

The post Apache Compression, Vary, mod_deflate appeared first on AskApache.

]]>
https://www.askapache.com/optimize/mod_deflate-compression-vary/feed/ 0
Respond with 200 OK for 404 Not Found https://www.askapache.com/htaccess/send-200-ok-response-404-not-found-htaccess/ https://www.askapache.com/htaccess/send-200-ok-response-404-not-found-htaccess/#respond Thu, 14 Apr 2022 20:36:54 +0000 https://www.askapache.com/?p=7994 Htaccess WizardWhat 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.

]]>
https://www.askapache.com/htaccess/send-200-ok-response-404-not-found-htaccess/feed/ 0
Htaccess Mod_Rewrite – Crazy Advanced Master Class https://www.askapache.com/htaccess/crazy-advanced-mod_rewrite-tutorial/ https://www.askapache.com/htaccess/crazy-advanced-mod_rewrite-tutorial/#comments Thu, 03 Mar 2022 18:55:32 +0000 https://www.askapache.com/?p=1209 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.

]]>
https://www.askapache.com/htaccess/crazy-advanced-mod_rewrite-tutorial/feed/ 48
Libcurl Error Codes https://www.askapache.com/php/libcurl-error-codes/ https://www.askapache.com/php/libcurl-error-codes/#respond Fri, 30 Apr 2021 06:37:16 +0000 https://www.askapache.com/?p=450

The post Libcurl Error Codes appeared first on AskApache.

]]>
https://www.askapache.com/php/libcurl-error-codes/feed/ 0
Google Trends for SEO / Apache Htaccess https://www.askapache.com/htaccess/google-trends-seo-apache-htaccess/ https://www.askapache.com/htaccess/google-trends-seo-apache-htaccess/#respond Fri, 30 Apr 2021 06:26:25 +0000 https://www.askapache.com/?p=10225 .htaccess Topic vs htaccess Keyword

The post Google Trends for SEO / Apache Htaccess appeared first on AskApache.

]]>
https://www.askapache.com/htaccess/google-trends-seo-apache-htaccess/feed/ 0
ListOfErrors https://www.askapache.com/apache/listoferrors/ https://www.askapache.com/apache/listoferrors/#respond Sat, 16 May 2020 07:51:36 +0000 https://www.askapache.com/?p=9977 The post ListOfErrors appeared first on AskApache.

]]>
https://www.askapache.com/apache/listoferrors/feed/ 0
Apache 2.4 and PHP-FPM https://www.askapache.com/hosting/apache-2-4-and-php-fpm/ https://www.askapache.com/hosting/apache-2-4-and-php-fpm/#respond Sat, 16 May 2020 07:49:23 +0000 https://www.askapache.com/?p=9935 The post Apache 2.4 and PHP-FPM appeared first on AskApache.

]]>
https://www.askapache.com/hosting/apache-2-4-and-php-fpm/feed/ 0
GRUB_INIT_TUNE – Play sound through pcspkr https://www.askapache.com/linux/grub_init_tune-play-sound-through-pcspkr/ https://www.askapache.com/linux/grub_init_tune-play-sound-through-pcspkr/#respond Sat, 04 Apr 2020 04:34:45 +0000 https://www.askapache.com/?p=10313 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.

]]>
https://www.askapache.com/linux/grub_init_tune-play-sound-through-pcspkr/feed/ 0
MariaDB with LZ4 Compression Howto for CentOS https://www.askapache.com/linux/mariadb-lz4-compression-howto-centos/ https://www.askapache.com/linux/mariadb-lz4-compression-howto-centos/#respond Fri, 24 Jan 2020 19:13:00 +0000 https://www.askapache.com/?p=10022 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.

]]>
https://www.askapache.com/linux/mariadb-lz4-compression-howto-centos/feed/ 0
Serving WebP images for PNG and JPG files https://www.askapache.com/htaccess/serving-webp-images-for-png-jpg/ https://www.askapache.com/htaccess/serving-webp-images-for-png-jpg/#comments Thu, 31 Oct 2019 00:44:00 +0000 https://www.askapache.com/?p=10084 htaccess-webpOne 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.

]]>
https://www.askapache.com/htaccess/serving-webp-images-for-png-jpg/feed/ 2
Internet Census 2012 – Port scanning using insecure embedded devices – Carna Botnet https://www.askapache.com/hacking/internet-census-2012-port-scanning-using-insecure-embedded-devices-carna-botnet/ https://www.askapache.com/hacking/internet-census-2012-port-scanning-using-insecure-embedded-devices-carna-botnet/#respond Mon, 22 Jul 2019 05:41:30 +0000 https://www.askapache.com/?p=8206 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.

]]>
https://www.askapache.com/hacking/internet-census-2012-port-scanning-using-insecure-embedded-devices-carna-botnet/feed/ 0
Advanced WordPress wp-config.php Tweaks https://www.askapache.com/wordpress/advanced-wp-config-php-tweaks/ https://www.askapache.com/wordpress/advanced-wp-config-php-tweaks/#comments Sat, 03 Mar 2018 08:23:37 +0000 https://www.askapache.com/?p=3341 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.

]]>
https://www.askapache.com/wordpress/advanced-wp-config-php-tweaks/feed/ 10
Crazy POWERFUL Bash Prompt https://www.askapache.com/linux/bash-power-prompt/ https://www.askapache.com/linux/bash-power-prompt/#comments Sat, 06 Jan 2018 20:02:34 +0000 https://www.askapache.com/?p=4069 bash power prompt PS1This 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.

]]>
https://www.askapache.com/linux/bash-power-prompt/feed/ 15
WordPress .htaccess in-depth https://www.askapache.com/htaccess/wordpress-htaccess-in-depth/ https://www.askapache.com/htaccess/wordpress-htaccess-in-depth/#comments Fri, 05 Jan 2018 03:42:34 +0000 https://www.askapache.com/?p=264 WordPress PermalinksWordPress 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.

]]>
https://www.askapache.com/htaccess/wordpress-htaccess-in-depth/feed/ 1
Use FallbackResource for WordPress instead of mod_rewrite https://www.askapache.com/httpd/fallbackresource-wordpress-not-mod_rewrite/ https://www.askapache.com/httpd/fallbackresource-wordpress-not-mod_rewrite/#respond Wed, 31 Aug 2016 07:24:41 +0000 https://www.askapache.com/?p=9955 FallBackResourceFallBackResource 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.

]]>
https://www.askapache.com/httpd/fallbackresource-wordpress-not-mod_rewrite/feed/ 0
Watch Dogs 2 https://www.askapache.com/hacking/watch-dogs-2/ https://www.askapache.com/hacking/watch-dogs-2/#respond Wed, 03 Aug 2016 03:33:39 +0000 https://www.askapache.com/?p=9922 watch-dog-2-yupThis 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.

]]>
https://www.askapache.com/hacking/watch-dogs-2/feed/ 0
OpenSearch description document https://www.askapache.com/seo/opensearch-description-document/ https://www.askapache.com/seo/opensearch-description-document/#respond Fri, 22 Jul 2016 05:36:09 +0000 https://www.askapache.com/?p=8440 The post OpenSearch description document appeared first on AskApache.

]]>
https://www.askapache.com/seo/opensearch-description-document/feed/ 0