Welcome To Snipplr


Everyone's Recent Snippets Tagged apache



« Prev 1 2 3 4 5 6
This script allows you to monitor a list of applications each running on servers in different environments. For example, these can be webservers: apache/nginx/etc., application servers: tomcat/nodejs/IIS/etc., database servers: mysql/oracle/etc., or...
0 1956 posted 11 years ago by deanhouseholder
By default Apache won't allow you to download a file over 2GB. This PHP script overcomes that along with some extra goodies. The script will read from standard url path the file on the server to download and display the filesize along with a link...
1 2777 posted 12 years ago by deanhouseholder
*Example:* if (!isRewriteMod()) exit('Please install Apache mod_rewrite module.');
0 1745 posted 12 years ago by phpdev
Hiding index.php from url
0 3261 posted 12 years ago by codesnip
Several tricks for your .htaccess file.
0 3393 posted 12 years ago by telltec
To fix the issue with localhost under Windows 8 giving a 403 error (but working for 127.0.0.1) I did the following:
0 1841 posted 12 years ago by rickygri
The idea is to use this piece of code inside a virtualhost block
0 3448 posted 12 years ago by therobot
Get Current URL Path on Apache / IIS
2 2410 posted 13 years ago by rickygri
This redirect is domain independent.
0 3497 posted 13 years ago by abwaters
These two snippets together, the first in the .htaccess file, and the second in your PHP create an elegantly simple solution to arbitrary URLs with php. For a breakdown and example check out the link. Don't want to follow the link, how about the q...
0 2441 posted 13 years ago by FatFolderDesigner
It can be useful to take a peek at what Apache is doing but I always forget the location of the Apache logs so I can use tail.
0 1418 posted 13 years ago by inreflection7
Now I've written it down maybe I'll remember it...
0 1096 posted 13 years ago by tregeagle
stop bandwidth theft!
1 3415 posted 13 years ago by ederfortunatO
0 3402 posted 14 years ago by pentago
I found this useful. Works as expected.
0 1317 posted 14 years ago by RainyDayMedia
0 1253 posted 14 years ago by Jotape
0 1306 posted 14 years ago by silentpro
Useful for WordPress installations that need more than 32M of memory
0 1637 posted 14 years ago by Huskie
2 1911 posted 14 years ago by farstar78
Created by me as a quick and secure way of creating a username and password for basic authentication via a .htpasswd file on an Apache server. A live demo is available at http://www.chrishair.co.uk/supgha/ Thanks.
0 1546 posted 14 years ago by hairzo
Ha az internet explorerben nem sikerül a fájl letöltése(olyan hibát dob, hogy nem tudja letölteni), akkor ezt a headerbe kell belerakni és már töltődik is a fájl.
0 2211 posted 14 years ago by oozolii
(98)Address already in use: make_sock: could not bind to address [::]:80
0 1253 posted 14 years ago by dan532
you want to block other sites to hotlink your images or media files.
0 1386 posted 14 years ago by silviud
Add these lines to your .htaccess file to increase PHPs file upload size limit to 20Mb
0 2550 posted 14 years ago by shodan_uk
This rule allows you to embed fonts cross domain. Especially good when you are serving your fonts from a CDN.
0 1725 posted 14 years ago by demwunz
compress & combine CSS files and param theme with PHP vars
0 1772 posted 14 years ago by giak
0 1185 posted 14 years ago by ericmuyser
Syntax check for Red hat / Centos
0 1275 posted 14 years ago by hamsterbacke82
« Prev 1 2 3 4 5 6