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 365 posted 13 years ago by occam
These tweaks improved my Yslow score from F to B.
1 416 posted 13 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 549 posted 13 years ago by iloveitaly
1 386 posted 13 years ago by paulbooker
drop the prefix fields and sort , profile by type
0 489 posted 13 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 489 posted 13 years ago by kwilson
2 392 posted 13 years ago by cuscus1986
just a comment
0 380 posted 13 years ago by daywalker2000
http://www.debian-administration.org/articles/207
0 384 posted 13 years ago by randyjhunt
daily hits on the youtube.video helper methods in 'utility' cls only on //ads
0 445 posted 13 years ago by rowntreerob
1 380 posted 13 years ago by alexaivars
Just insert it into your .htaccess file to redirect all your 404 error pages to any address
2 433 posted 13 years ago by caruso_g
This is the command to re-enable apache after you disabled it.
0 304 posted 13 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 312 posted 13 years ago by jackkeller
3 512 posted 13 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 371 posted 13 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 385 posted 13 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 1055 posted 13 years ago by iridium
1 333 posted 13 years ago by burnsra
0 314 posted 13 years ago by czapata