Search Results
Example shell scripts (bash or sh) that automate and easyate tasks from within the dreamhost ssh env.
It works for all shells I encounter including BackTrack Debian Knoppix Arch Linux etc Also works for many hosting environments I use including DreamHost
Apache Directives for .htaccess and Loaded Modules for DreamHost Web Hosting Servers running Apache2.
FastCGI:incomplete headers (0 bytes) received from server.
Feb 22, 2007 A list of all DreamHost Servers and corresponding IP address.
DreamHost has a very unique approach to web hosting, and its paying dividends.
Jun 1, 2007 Simple and effective method to start making good money from DreamHost Referrals.
I've recently relocated to the DreamHost private server setup, not for any reason other than its such a cool offer that I had to take advantage of it to
Every month a contest called DHSOTM is held for the highest rated website on DreamHost. By winning the contest your site gets SEO and traffic benefits,
Here are the steps that I take to get an SPF Record going on DreamHost.
Please do not run these sites with a persistent php.cgi process with a.www.askapache.com/dreamhost/custom-phpini-with-fastcgi-on-dreamhost.html
To enable mod_security, login to the DreamHost panel and navigate to the “Manage Domains” area, Edit your site and enable the extra security option.
Jan 16, 2008 is it possible to get a similar script for any general servers? normal apache? i think this dreamhost version does not work for centos OS :(
Since AskApache.com was disqualified and accused of cheating, which is absolutely false, I decided to go ahead and do the crime I have been punished for.www.askapache.com/dreamhost/rigging-the-dreamhost-site-of-the-month-contest.html
On-Demand WordPress MySQL database Backup Shell Script for DreamHost.
Jun 11, 2008 Automated Directory Backups with Crontab -enabled Shell-Script.
Speed Tips:Remove Last-Modified Header ·Multiply your DreamHost Referrals ·Lets win the DreamHost Contest ·What I think about DreamHost Web Hosting
Jul 10, 2007 I came up with this basic example to experiment further on Boosting DreamHost Referrals. RewriteEngine On RewriteBase / RewriteCond
A few months ago I was given a free hosting account on HostGator to evaluate and tempt me away from DreamHost to become a Gator.
For user and editorial reviews of DreamHost and other web hosts, check out Web Hosting Search I'd like to use godaddy subdomain host on dreamhost, too.
Similar Reads. What I think about DreamHost Web Hosting ·Lets win the DreamHost Contest ·DreamHost Site of The Month is AskApache!
Redirect 301 /2007/webmaster/custom-phpini-with-fastcgi-on-dreamhost.html http://www.askapache.com/dreamhost/custom-phpini-with-fastcgi-on-dreamhost.html www.askapache.com/;301-redirect-with-mod_rewrite-or-redirectmatch.html
example log-htpasswd.log. just a list of usernames attempted username1 tom rcowen askapache dreamhost dreamadmin. Debugging htaccess/htpasswd authorization
Redirect 301 /security/rigging-the-dreamhost-site-of-the-month-contest.html //www.askapache.com/dreamhost/custom-phpini-with-fastcgi-on-dreamhost.html www.askapache.com/;seo-search-engine-friendly-redirects-without-mod_rewrite.html
Dec 16, 2007 Today I successfully learned how to compile and run multiple custom php installations for a DreamHost account, and to get it working I came
DreamHost Customized Bash Shell Environment Webmasters often use SSH to remotely admin web sites and servers, learn how to make your shell colorful and
Apr 8, 2009 For this article I will show how I setup a web mirror of static.askapache.com from my DreamHost server to my HostGator Server.
NOTE:Custom PHP.ini with FastCGI on DreamHost. You will have a shell wrapper script something like this:#!/bin/sh export PHP_FCGI_CHILDREN=3 exec
Lets win the DreamHost Contest ·DreamHost Site of The Month is AskApache ·Alexa Toolbar AddOn for Firefox Works ·Search Engine Verify Plugin Updated
I run dreamhost as well and heres how to get running in 3 minutes. great article, but it it didn't work for me using dreamhost for some reason,
Especially for a webhost like Powweb, which is perfect for ordinary people who want a web site. Normally I would recommend DreamHost, but maybe more on that
Apr 15, 2010 http://www.askapache.com/dreamhost/ RedirectMatch 307 ^/(cse|apachecse|apachecsetest|apachesearch)/?
rel="nofollow"href="http://www.dreamhost.com/r.cgi?211825">DreamHost Hosting</a></p><script src="http://www.google-analytics.com/urchin.js"
Article:Custom php.ini/FastCGI/DreamHost #!/bin/sh export PHP_FCGI_CHILDREN=3 export PHPRC=/askapache.com/ini exec /askapache.com/cgi-bin/php.cgi # or
And a couple Mod_Security .htaccess examples, for those smart enough to run on DreamHost. Enjoy! Mod_Rewrite .htaccess Examples ·Cookie Manipulation and
Because of my past experience with really bad hosts (DreamHost), and really great hosts (WiredTree), I am very cautious and purposeful in making this
PHP htaccess tips and tricks ·What I think about DreamHost Web Hosting ·AskApache.com May 2008 DreamHost Site of The Month ·Speed Tips:Use Multiple
Custom PHP.ini with FastCGI on DreamHost ·Control htaccess Basic Authentication with PHP and mod_rewrite ». My Picks. Mod_Rewrite Tips and Tricks
Upgrading to DreamHost Private Servers ·AskApache.com May 2008 DreamHost Site of The Month ». My Picks. Mod_Rewrite Tips and Tricks ·Crazy Advanced
htaccess ·Ajax ·Apache ·Apache Modules ·Cache ·CSS ·DreamHost ·Featured ·Flash ·Google ·Hacking ·Javascript ·Linux Unix BSD ·Making Money
Right now, I can't keep the .htaccess file in version control because it differs greatly from my host's setup (the excellent Dreamhost) with my own setup
DreamHost Quick Solutions . Speed Tips:Use Multiple SubDomains ·AskApache.com May 2008 DreamHost Site of The Month ·DreamHost Site of The Month
Sep 22, 2007 Got some freshhtaccess and mod_rewrite code for you And a couple Mod_Securityhtaccess examples for those smart enough to run on DreamHost Enjoy
Apr 15, 2010 htaccess ·Ajax ·Apache ·Apache Modules ·Cache ·CSS ·DreamHost ·Featured ·Flash ·Google ·Hacking ·Javascript ·Linux Unix BSD
Speed Tips:Remove Last-Modified Header ·Speed Tips:Add Future Expires Headers ·Multiply your DreamHost Referrals ·Feed for this Entry ·Trackback
Rigging the DreamHost Site of the Month Contest » ·Allow AdSense Crawler Access. If you use a robots.txt file and AdSense, make sure you give the Google
Smart HTTP and HTTPS .htaccess RewriteUpgrading to DreamHost Private Servers » ·Adding Akismet Anti-Spam Upgrading to DreamHost Private Servers »
Folder Backup Shell-Script ·What I think about DreamHost Web Hosting ·Lets win the DreamHost Contest ·DreamHost Site of The Month is AskApache!
Meta Keywords :htaccess, apache, security, seo, wordpress, php, cache, webmaster, dreamhost, linux unix bsd, google, web tools, shell scripting,
What I think about DreamHost Web Hosting ·Speed Tips:Use Multiple SubDomains ·SEO Redirects without mod_rewrite ·Multiply your DreamHost Referrals
The following is a transcript of a chat I had with a company called tektonic, and at that time I was looking for a cheap linux host to use for some redundancy/failover operations. I generally contact a new hosting company like this every few months.. I like to have options available in case of some kind of failure or network attack, so it’s always a good idea to have a few ace linux servers in your back pocket.
If you’ve read any other articles on AskApache, you can see a certain obsession towards optimization, speed, and security — so that is the purpose of the following questions.
Tags: askapache, DreamHost, Examples, Hosting, Linux, Powweb, server, servers, tutorial, VPS, Web Hosts, WiredTree
Posted in DreamHost, Featured, Linux Unix BSD, Making Money, Review, Security, Server Administration, Web Design, Web Hosting, Webmaster, WiredTree | Published on 04/25/2010 |6 Comments »
#### No https except to wp-admin -
# If the request is empty ( implies fopen or normal file access by a php script )
RewriteCond %{THE_REQUEST} ^$ [OR]
# OR if the request if for wp-admin or wp-login.php
RewriteCond %{REQUEST_URI} ^/(wp-admin|wp-login\.php).*$ [NC,OR]
# OR if the Referer is https
RewriteCond %{HTTP_REFERER} ^https://www.askapache.com/.*$ [NC]
# THEN skip the following rule, basically all this does is force https or badhost to be redirected
# BUT because of the above 3 rewritecond's, this won't break poorly written admin scripts
RewriteRule .* - [S=1]
RewriteCond %{HTTPS} =on [OR]
RewriteCond %{HTTP_HOST} !^www\.askapache\.com$ [NC]
RewriteRule .* http://www.askapache.com%{REQUEST_URI} [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(wp-admin/.*|wp-login\.php.*)\ HTTP/ [NC]
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Tags: AddHandler, Apache, Backups, Block IP, Cache-Control, cheatsheets, developers, errordocument, etag, htaccess tricks, http cookie, indexes, Mod_Security, open source, password protection, real world, rewritecond, rewriterule, Source Code
Posted in Apache, Apache Modules, Cache, DreamHost, Featured, Hacking, Htaccess, Linux Unix BSD, Mod_Rewrite, SEO, Security, Server Administration, Web Hosting, Webmaster | Published on 04/17/2010 |4 Comments »
NOT a typo.. 30x is measurable, well-documented, and easily tested. This is what open-source is about. I haven’t had time to post much the past year, I’m always working! So I wanted to make up for that by publishing an article on a topic that would blow your mind and be something that you could actually start using and really get some benefit out of it. This is one of those articles that the majority of web hosting companies would love to see in paperback, so they could burn it.
Tags: Advanced, Apache, askapache, Backups, Bandwidth, Boot, Cache, chmod, console, devshm, DreamHost, File System, filesystem, grep, Hard Drive, HowTo, HTTPS SSL, ionice, Linux, memory bandwidth, mysql, Private Server, ram, rsync, Scripts, Security, server, servers, Shell, shell script, SLRAM, SPEED, speed improvements, SSI, stat, SymLinks, tmpfs, trick, Vulnerability, Web Hosting, webhosts, WordPress, WP-Super Cache
Posted in Apache, Cache, DNS, DreamHost, Featured, Hacking, Htaccess, Linux Unix BSD, Mod_Rewrite, PHP, Security, Server Administration, Shell Scripting, Web Design, Web Hosting, Web Tools, Webmaster, WiredTree, WordPress, WordPress Plugins | Published on 03/18/2010 |7 Comments »
The goal is to add the HostGator server to be an exact mirror of the static.askapache.com domain, then to add that server as a 2nd A record to my DNS zone. That way half the visitors to the size will be taking up resources and bandwidth on the HostGator server instead of mine.
Round Robin A records in DNS are intended to evenly distribute queries between each host of the same name. Using some tricks straight out of a hackers toolbox we can verify if the distribution is taking place. (It is.)
Tags: 500, 503, admin, Apache, askapache, ASP, Bandwidth, Cache, caching, CNAME, CSS, Dig, DNS, DreamHost, experiments, GET, HostGator, HowTo, Htaccess, HTTPS SSL, Javascript, Linux, Logs, Networking, Nice, PHP, Port, Powweb, Prompt, PS1, Round Robin, rsync, Security, server, servers, Shell, SPEED, SSH, SSI, stat, trick, Web Hosting
Posted in Ajax, Apache, Apache Modules, Cache, Featured, Linux Unix BSD, Web Hosting | Published on 04/14/2009 |5 Comments »
Sometimes there is an urgent need for creating an exact duplicate or “mirror” of a web site on a separate server. This could be needed for creating Round Robin Setups, Load-Balancing, Failovers, or for just plain vanilla backups. In the past I have used a lot of different methods to copy data from one server to another, including creating an archive of the whole directory and then using scp to send the file over, creating an archive and then encrypting it and then sending that file over using ftp, curl, etc., and my persistence at learning new ways to do things has paid off because now I use rsync to keep an exact replica of the entire directory on an external server, without having to use all the CPU and resources of other mirroring methods.
Tags: admin, Apache, askapache, Backups, Bandwidth, bash, chmod, compression, curl, debugging, DreamHost, Email, encryption, Forms, GET, Gmail, HostGator, HTTPS SSL, Linux, Login, Logs, password, PHP, Port, ram, Round Robin, rsync, Security, server, Shell, shell script, SPEED, SSH, SSH Tunnels, SSI, stat, WordPress
Posted in Apache, Featured, Linux Unix BSD, Security, Shell Scripting, Web Hosting | Published on 04/10/2009 |2 Comments »
Skip this – still under edit
I discovered these tips and tricks mostly while working as a network security penetration specialist hired to find security holes in web hosting environments. Shared hosting is the most common and cheapest form of web-hosting where multiple customers are placed on a single machine and “share” the resources (CPU/RAM/SPACE). The machines are configured to basically ONLY do HTTP and FTP. No shells or any interactive logins, no ssh, just FTP access. That is when I started examining htaccess files in great detail and learned about the incredible untapped power of htaccess. For 99% of the worlds best Apache admins, they don’t use .htaccess much, if AT ALL. It’s much easier, safer, and faster to configure Apache using the httpd.conf file instead. However, this file is almost never readable on shared-hosts, and I’ve never seen it writable. So the only avenue left for those on shared-hosting was and is the .htaccess file, and holy freaking fiber-optics.. it’s almost as powerful as httpd.conf itself!
Most all .htaccess code works in the httpd.conf file, but not all httpd.conf code works in .htaccess files, around 50%. So all the best Apache admins and programmers never used .htaccess files. There was no incentive for those with access to httpd.conf to use htaccess, and the gap grew. It’s common to see “computer gurus” on forums and mailing lists rail against all uses and users of .htaccess files, smugly announcing the well known problems with .htaccess files compared with httpd.conf – I wonder if these “gurus” know the history of the htaccess file, like it’s use in the earliest versions of the HTTP Server- NCSA’s HTTPd, which BTW, became known as Apache HTTP. So you could easily say that htaccess files predates Apache itself.
Once I discovered what .htaccess files could do towards helping me enumerate and exploit security vulnerabilities even on big shared-hosts I focused all my research into .htaccess files, meaning I was reading the venerable Apache HTTP Source code 24/7! I compiled every released version of the Apache Web Server, ever, even NCSA’s, and focused on enumerating the most powerful htaccess directives. Good times! Because my focus was on protocol/file/network vulnerabilites instead of web dev I built up a nice toolbox of htaccess tricks to do unusual things. When I switched over to webdev in 2005 I started using htaccess for websites, not research. I documented most of my favorites and rewrote the htaccess guide for webdevelopers. After some great encouragement on various forums and nets I decided to start a blog to share my work with everyone, AskApache.com was registered, I published my guide, and it was quickly plagiarized and scraped all over the net. Information is freedom, and freedom is information, so this blog has the least restrictive copyright for you. Feel free to modify, copy, republish, sell, or use anything on this site ;)
Tags: .htaccess examples, 301 Redirect, 302 Redirect, 401, 403 Forbidden, 404 Not Found, 500, 503, admin, Advanced, Apache, Apache Htaccess, apache ssl, askapache, ASP, authorization, Backups, Bandwidth, bash, Blocking, Boot, Cache, Cache-Control, caching, cheatsheet, chmod, code snippets, compression, Cookies, CSS, debugging, DreamHost, Email, error log, errordocument, Etags, Examples, experiments, feed, FeedBurner, File System, FilesMatch, filesystem, Firefox, Flash, Forms, GET, Google, Hacking, hotlinking, HowTo, Htaccess, htaccess files, htaccess guide, htaccess rewrite, htaccess tricks, htaccess tutorial, Htpasswd, HTTP Error, HTTP Headers, HTTP-EQUIV, httpd, httpd.conf, HTTPS SSL, hyper text transfer protocol, If-Modified-Since, Javascript, Last-Modified, Linux, Login, Logs, mad skills, mod_include, mod_python, Mod_Rewrite, Mod_Rewrite examples, Mod_Security, Mod_Setenvif, mysql, Nice, nsa, password, password protection, PDF, Performance, Perl, PHP, php.ini, phpinfo, Port, post, Powweb, Prompt, Python, ram, Redirect, Redirection, Request Method, Rewrite Tricks, rewritecond, rewriterule, Robot, robots, Sample .htaccess, Scripts, Security, SEO, seo secrets, server, server config, servers, SetEnvIf, Shell, Socket, Source Code, SPEED, SSH, SSI, stat, SymLinks, trick, tutorial, ultimate htaccess, Username, Web Hosting, WordPress
Posted in Apache, Apache Modules, Cache, DreamHost, Featured, Google, Hacking, Htaccess, Linux Unix BSD, Mod_Rewrite, SEO, Security, Web Design, Web Hosting, Web Tools, Webmaster, WordPress | Published on 01/10/2009 |66 Comments »
Unix file permissions are one of the more difficult subjects to grasp.. Well, ok maybe “grasp” isn’t the word.. Master is the right word.. Unix file permissions is a hard topic to fully master, mainly I think because there aren’t many instances when a computer user encounters them. I’ve done a lot of research on it the past couple weeks… and now here’s everything I’ve learned so far.. cuz you guys AskApache Regs Rock!
Tags: 301 Redirect, 302 Redirect, 401, 403 Forbidden, 404 Not Found, 500, 503, Apache, askapache, ASP, Backups, bash, bash_profile, Cache, chmod, Dig, DreamHost, fifo, File Permissions, File System, filesystem, Fsockopen, GET, Hacking, Htaccess, httpd, Linux, Login, password, Perl, PHP, php.ini, Port, Python, ram, Scripts, Security, server, servers, Sessions, Shell, Socket, Source Code, SSH, SSI, stat, trick, umask, Web Hosting
Posted in Apache, Featured, Hacking, Linux Unix BSD, PHP, Security, Server Administration, Shell Scripting, Web Hosting, Webmaster | Published on 11/19/2008 |5 Comments »
This simple unix shell script automatically creates backups of a specific folder at regular hourly, nightly, weekly, and monthly intervals. Instead of the usual method for copying directory trees using tar with fifo, pipes, rsync, or NFS methods this script uses cpio which is much much faster and has cool options like saving m/a/c times, symlinks, relative paths, and weird file names.
Tags: Apache, askapache, Backups, bash, chmod, DreamHost, fifo, GET, Hacking, Linux, Nice, Perl, Port, post, Private Server, Renice, rsync, Scripts, Security, server, servers, Shell, shell script, SymLinks, tutorial, Web Hosting
Posted in DreamHost, Linux Unix BSD, Shell Scripting, Web Hosting | Published on 06/12/2008 |1 Comment »
With a rating of 8.58, this marks the highest rated DreamHost Site Of The Month Winner in the History of the Contest!
Tags: Apache, askapache, DreamHost, GET, Port, post, SSI, Username
Posted in DreamHost, Review, Web Design | Published on 06/03/2008 |4 Comments »
DreamHost PS gives you your own “virtual machine”, protecting your CPU and RAM on your physical machine for faster websites. Here’s what I like and dislike about DreamHostPS, and some of the issues and solutions for migrating.
Tags: 500, 503, Advanced, Apache, askapache, Backups, bash, Boot, caching, compression, DNS, DreamHost, errordocument, GET, Google, grep, Htaccess, htaccess files, httpd, HTTPS SSL, Linux, Login, Logs, Nice, password, Perl, PHP, Port, Private Server, Prompt, ram, Renice, Scripts, Security, server, servers, Shell, shell script, SSH, SSI, stat, Username, Web Hosting
Posted in DreamHost, Web Hosting | Published on 05/31/2008 |14 Comments »
Mod_Security rivals Mod_Rewrite in the amount of features it provides. I decided to go ahead and post what I learned about it today, even though its tough to give away such awesome htaccess and apache tricks.. Learn how to control spam once and for all, conditionally log/deny/allow/redirect requests based on IP, username, etc.. Mod_Security is so fine!
Tags: 301 Redirect, 401, 403 Forbidden, 500, 503, admin, Ajax, Apache, apache ssl, askapache, authorization, Bandwidth, Cache, Cache-Control, caching, Cookies, debugging, DreamHost, Email, error log, errordocument, Examples, FilesMatch, GET, Hacking, Htaccess, htaccess files, htaccess guide, htaccess tricks, htaccess tutorial, Htpasswd, HTTP Headers, HTTP Status Codes, httpd, httpd.conf, HTTPS SSL, Login, Logs, Mod_Rewrite, Mod_Rewrite examples, Mod_Security, nsa, password, password protection, Perl, PHP, Port, post, Prompt, ram, Redirect, Request Method, Rewrite Tricks, rewritecond, rewriterule, Robot, robots, Scanners, Security, SEO, server, servers, SetEnvIf, Shell, SPEED, SSI, stat, trick, tutorial, Username, WordPress
Posted in Apache, Apache Modules, DreamHost, Featured, Htaccess, Security, Web Hosting, Webmaster | Published on 04/23/2008 |8 Comments »
Scan Apache logs for IP address that are probably evil, then generates an .htaccess file to DENY them all.
Tags: 403 Forbidden, Apache, askapache, bash, Blocking, debugging, DNS, DreamHost, error log, grep, Htaccess, htaccess files, ip abuse, Logs, Nice, Port, server, servers, Shell, shell script, SSI
Posted in Apache, DreamHost, Security, Shell Scripting | Published on 03/16/2008 |5 Comments »
Learn how to log and debug usernames and passwords used to login to a htaccess basic authorization protected website using php. This article is BOSS and will show you how to fully take control of this aspect of security using php and .htaccess, I don’t believe you will find instructions to do this anywhere else on the net.
Tags: 401, admin, Apache, askapache, ASP, authorization, debugging, DreamHost, errordocument, GET, HowTo, Htaccess, Htpasswd, httpd, Login, password, PHP, Redirect, Rewrite Tricks, rewritecond, rewriterule, Security, server, Source Code, stat, Username
Posted in Apache, Apache Modules, DreamHost, Featured, Htaccess, Linux Unix BSD, Mod_Rewrite, PHP, Security, Server Administration, Shell Scripting | Published on 01/29/2008 |6 Comments »
Today I successfully learned how to compile and run multiple custom php installations for a DreamHost account, and to get it working I came upon a simple shell script that I made a couple changes to.
Tags: Apache, askapache, bash, curl, DreamHost, filesystem, GET, Hacking, Linux, Nice, PHP, Port, post, Python, ram, Scripts, Shell, shell script, Source Code, stat, Wget
Posted in DreamHost, PHP, Shell Scripting | Published on 12/16/2007 |1 Comment »
Apache .htaccess Directives and Loaded Modules allowed on DreamHost Apache Server 2 Setups.
Tags: admin, Apache, askapache, authorization, Bandwidth, Cache, Cache-Control, Dig, DNS, DreamHost, Email, error log, errordocument, Etags, FilesMatch, filesystem, HowTo, Htaccess, HTTP Error, HTTP Headers, httpd, httpd.conf, HTTPS SSL, Linux, Logs, mod_include, Mod_Rewrite, Mod_Security, Mod_Setenvif, mysql, Performance, Port, ram, Redirect, Redirection, Request Method, Rewrite Tricks, Scripts, Security, server, server config, Server Side Includes, servers, SetEnvIf, Shell, Socket, SPEED, SSI, stat, Web Hosting
Posted in Apache, Apache Modules, DreamHost, Htaccess | Published on 11/23/2007 |No Comments »
NOTE: This is a very old post, I do NOT recommend DreamHost for anyone other than spammers. They are not a long-term solution.
Tags: Apache, Backups, DreamHost, GET, hellish experiences, Htaccess, Linux, long term solution, mysql, Perl, PHP, spammers, SSH, SSI, stat, support staff, Web Hosting
Posted in DreamHost, Making Money, Review, Web Hosting | Published on 11/11/2007 |2 Comments »