Welcome To Snipplr
Everyone's Recent Snippets Tagged apache
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
699
posted 15 years ago by occam
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
946
posted 15 years ago by iloveitaly
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
882
posted 15 years ago by kwilson
daily hits on the youtube.video helper methods in 'utility' cls only on //ads
0
831
posted 15 years ago by rowntreerob
Just insert it into your .htaccess file to redirect all your 404 error pages to any address
2
827
posted 15 years ago by caruso_g
This is the command to re-enable apache after you disabled it.
0
601
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
581
posted 15 years ago by jackkeller
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
749
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
749
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
1749
posted 15 years ago by iridium