Welcome To Snipplr


Everyone's Recent Snippets Tagged apache



In addition to the recommendations on the Wordpress Website. Limit the amount of PHP files that a writable by Apache. The directory's and files that need to be writable, do not always need to be executed by PHP directly. This makes it a bit har...
1 523 posted 14 years ago by occam
These tweaks improved my Yslow score from F to B.
1 594 posted 14 years ago by zachharkey
Combine this with the my compression script and things load real fast. I think I pulled some of this code of a site on google... can't claim complete credit.
0 759 posted 14 years ago by iloveitaly
1 557 posted 14 years ago by paulbooker
drop the prefix fields and sort , profile by type
0 757 posted 14 years ago by rowntreerob
Due to widespread internet blocking in Iran following the June 2009 election, a network of proxy servers was set up to assist in the free flow of information. The IP range, to the best of my knowledge, should cover the addresses used in Iran, with bl...
0 702 posted 14 years ago by kwilson
2 566 posted 14 years ago by cuscus1986
just a comment
0 557 posted 14 years ago by daywalker2000
http://www.debian-administration.org/articles/207
0 542 posted 14 years ago by randyjhunt
daily hits on the youtube.video helper methods in 'utility' cls only on //ads
0 621 posted 14 years ago by rowntreerob
1 568 posted 14 years ago by alexaivars
Just insert it into your .htaccess file to redirect all your 404 error pages to any address
2 620 posted 14 years ago by caruso_g
This is the command to re-enable apache after you disabled it.
0 448 posted 15 years ago by bhubbard
This is a little trick I've used a few times to emulate Folders on a site and drop the extensions. In this example I'm using a PHP site but could easily be ported for other file types. One caveat to look out for is files will not always want to be ca...
1 431 posted 15 years ago by jackkeller
3 730 posted 15 years ago by erik
A small script that sets up a new VirtualHost with Apache and adds an entry for the site to your hosts file. You need to adjust the paths to your needs. Must be run as root.
0 559 posted 15 years ago by ping_ch
Use this when you want to serve a domain from the document root of another domain on the same box. Along with this config, you will want to replace the httpdocs directory with a symlink to the other domains doc root. (Don't forget to change ownership...
1 571 posted 15 years ago by zachharkey
Return just the Apache version number of your server, and operating system, from $_SERVER['SERVER_SOFTWARE'] Example: print ('Apache Version: ' . apacheversion()); will return something along the lines of... "Apache Version: 2.2.10 (Unix...
1 1463 posted 15 years ago by iridium
1 452 posted 15 years ago by burnsra
0 452 posted 15 years ago by czapata