Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th May 2013, 00:44
Hairy Hairy is offline
HowtoForge Supporter
 
Join Date: Mar 2013
Location: USA
Posts: 57
Thanks: 6
Thanked 27 Times in 16 Posts
Default Clever ISPConfig Directive Snippets List

I would like to know if anyone has any clever snippets that they would like to share and add to the following list:

/* Large PHP Uploads */
Code:
file_uploads = On
post_max_size = 200M
upload_max_filesize = 200M
/* Display PHP Errors */
Code:
display_errors = On
Thanks!
Reply With Quote
The Following User Says Thank You to Hairy For This Useful Post:
MaddinXx (12th May 2013)
Sponsored Links
  #2  
Old 12th May 2013, 16:05
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 200
Thanks: 26
Thanked 64 Times in 47 Posts
Default

Good idea. What I often override is open_short_tags and memory_limit per vhost - but the file upload limit one is very handy
Reply With Quote
  #3  
Old 5th May 2014, 13:47
misuv misuv is offline
Member
 
Join Date: Sep 2013
Posts: 31
Thanks: 1
Thanked 1 Time in 1 Post
Default Development & test site

Snippet for testing sites

Code:
max_execution_time = 0;
display_errors = On;
error_reporting =  E_ALL & E_STRICT & E_RECOVERABLE_ERROR & E_DEPRECATED & E_USER_DEPRECATED;
Reply With Quote
  #4  
Old 5th May 2014, 17:11
Nilpo Nilpo is offline
HowtoForge Supporter
 
Join Date: Feb 2013
Location: New Springfield, OH
Posts: 60
Thanks: 4
Thanked 14 Times in 10 Posts
 
Default

I'm not sure if they're of any use to anyone, but here are the ones that I use.

Apache:

/* Force SSL */
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
/* Disable GeioIP2 (when installed) */
Code:
GeoIPEnable Off
/* Block Certain Countries (with mod_geoip2) */
Code:
<IfModule mod_geoip.c>
	GeoIPEnable On
	GeoIPDBFile /usr/share/GeoIP/GeoIP.dat

	SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry
	SetEnvIf GEOIP_COUNTRY_CODE RU BlockCountry
	# ... place more countries here

	Deny from env=BlockCountry
</IfModule>
/* Allow Only Specific Countries (with mod_geoip2) */
Code:
<IfModule mod_geoip.c>
	GeoIPEnable On
	GeoIPDBFile /usr/share/GeoIP/GeoIP.dat

	SetEnvIf GEOIP_COUNTRY_CODE US AllowCountry
	SetEnvIf GEOIP_COUNTRY_CODE CA AllowCountry
	SetEnvIf GEOIP_COUNTRY_CODE MX AllowCountry
	# ... place more countries here

	Deny from all
	Allow from env=AllowCountry
</IfModule>
/* Prevent Static File Caching */
Code:
<FilesMatch "\.(html|htm|js|css)$">
FileETag None
<ifModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</ifModule>
</FilesMatch>
/* Disable ModPagespeed (when installed) */
Code:
ModPagespeed Off
/* ModPagespeed Wordpress Fix (when installed) */
Code:
ModPagespeedDisableFilters rewrite_javascript
Reply With Quote
The Following User Says Thank You to Nilpo For This Useful Post:
Turbanator (7th May 2014)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig not seeing external IP JustonTN Installation/Configuration 6 17th April 2012 12:42
Proftpd + MySQL virtual users, can't connect geekman HOWTO-Related Questions 28 27th September 2010 18:03
ISPConfig 3.0.0.7 Beta released till General 78 24th December 2008 11:47
add web site serr57 Installation/Configuration 18 13th April 2008 11:40
Totally Confused?? :( kingtux Installation/Configuration 7 9th February 2006 22:14


All times are GMT +2. The time now is 05:16.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.