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 1283 posted 16 years ago by occam
These tweaks improved my Yslow score from F to B.
1 1446 posted 16 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 1548 posted 16 years ago by iloveitaly
1 1308 posted 16 years ago by paulbooker
drop the prefix fields and sort , profile by type
0 1577 posted 16 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 1488 posted 16 years ago by kwilson
2 1553 posted 16 years ago by cuscus1986
just a comment
0 1234 posted 16 years ago by daywalker2000
http://www.debian-administration.org/articles/207
0 1318 posted 16 years ago by randyjhunt
daily hits on the youtube.video helper methods in 'utility' cls only on //ads
0 1442 posted 16 years ago by rowntreerob
1 1396 posted 16 years ago by alexaivars
Just insert it into your .htaccess file to redirect all your 404 error pages to any address
2 1399 posted 16 years ago by caruso_g
This is the command to re-enable apache after you disabled it.
0 1136 posted 16 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 1135 posted 16 years ago by jackkeller
3 1858 posted 16 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 1390 posted 16 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 1296 posted 16 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 2708 posted 17 years ago by iridium
1 1125 posted 17 years ago by burnsra
0 1180 posted 17 years ago by czapata