Mail, World Wide Web, Domain Name Server, Samba , Squid proxy
| Message |
Post subject: Nginx + php-fpm setting php upload_max_filesize and other php values per vhost Posted: Mon Jan 02, 2012 4:04 pm |
|
Recent version of PHP support the PHP_VALUE command for fcgi processes. The trick is that multiple values need to be set in one "fastcgi_param PHP_VALUE" directive with a newline character as separator otherwise only the last one will be taken by the php process. Example of increasing PHP's upload_max_filesize ini setting via Nginx web server: Code: location ~ \.php$ { fastcgi_param PHP_VALUE "upload_max_filesize = 50M \n post_max_size=51M"; }
Below example is INCORRECT: location ...
Read more : Nginx + php-fpm setting php upload_max_filesize and other php values per vhost | Views : 110 | Replies : 0 | Forum : Apache, Nginx, Lighttpd and other web server software
|
|
| Top |
 |
Post subject: How to disable anonymous access in samba 3 Posted: Sat Dec 10, 2011 12:08 am |
|
By default, samba on debian allows anonymous limited access (user doesn't provide a password can see public shares). man samba: Quote: restrict anonymous (G)
The setting of this parameter determines whether user and group list information is returned for an anonymous connection. and mirrors the effects of the
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ Control\LSA\RestrictAnonymous
registry key in Windows 2000 and Windows NT. When set to 0, user and group list information is returned to anyone who asks. When set to ...
Read more : How to disable anonymous access in samba 3 | Views : 143 | Replies : 0 | Forum : FTP, Scp, Sftp, Rsync
|
|
| Top |
 |
Post subject: Apache - Restricting "Server" information in HTTP response header with ServerTokens Posted: Thu Nov 10, 2011 1:39 pm |
|
Apache - how to strip down the "Server" field in HTTP response header with ServerTokens By default, the apache webserver may provide too detailed info in the http response header for your needs. Example: Code: HTTP/1.1 404 Not Found Date: Thu, 10 Nov 2011 10:35:52 GMT Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 202 Connection: close Content-Type: text/html; charset=iso-8859-1
Stripping down the "Server" field in the http response can be done in ...
Read more : Apache - Restricting "Server" information in HTTP response header with ServerTokens | Views : 200 | Replies : 0 | Forum : Apache, Nginx, Lighttpd and other web server software
|
|
| Top |
 |
Post subject: Re: Search engine optimization Posted: Sun Jan 30, 2011 6:01 pm |
|
|
|
| Top |
 |
 |
Post subject: Apache to Nginx Server parameters translation with php function Posted: Thu Aug 26, 2010 2:47 pm |
|
|
When ran as Apache module, PHP will get $_SERVER variables in the form that they come in the request: Content-Type, Content-Length, X-File-Size, X-File-Name and so on.
When ran as PHP-FPM with NGINX, php will see the $_SERVER variables in a totally different way (this is because of the default passing of server parameters to fcgi scripts in nginx).
Here's how $_SERVER variables will be seen by php when ran as php-fpm: Array ( [USER] => ...
Read more : Apache to Nginx Server parameters translation with php function | Views : 1562 | Replies : 0 | Forum : Apache, Nginx, Lighttpd and other web server software
|
|
| Top |
 |
 |
Post subject: Postfix change message size limit Posted: Wed Aug 11, 2010 1:31 am |
|
|
|
| Top |
 |
Post subject: Pool for spam Posted: Sat Aug 07, 2010 12:46 pm |
|
|
|
| Top |
 |
 |
Post subject: How to test deflate/gzip compression on a HTTPS (HTTP over SSL) Apache server Posted: Tue Aug 03, 2010 10:30 am |
|
|
To test a server for deflate/gzip compression, it needs to be notified that you, as a client (browser) accept compressed encoding.
This is done, by adding an "Accept-Encoding: compress, gzip" in the header of the request.
Testing an https Apache server for deflate/gzip compression, initiating a connection using openssl client $ openssl s_client -connect 192.168.1.1:443 ...Some output about ssl certificate and ssl protocol and cipher used.... GET / HTTP/1.1 Host: test.server.ro Accept-Encoding: compress, gzip -->press ...
Read more : How to test deflate/gzip compression on a HTTPS (HTTP over SSL) Apache server | Views : 3700 | Replies : 0 | Forum : Apache, Nginx, Lighttpd and other web server software
|
|
| Top |
 |
Post subject: Vsftpd "425 Security: Bad IP connecting." error message. Posted: Sun Jun 13, 2010 8:28 pm |
|
This error appears when the FTP control connection is initialized from IP1 and the data connection is initialized from IP2 for PASSIVE FTP. In these cases vsftpd detects that IP1 and IP2 are different so it terminates the connection. TO disable this check, add Code: pasv_promiscuous=YES to vsftpd.conf and restart it. Man quote: Quote: pasv_promiscuous Set to YES if you want to disable the PASV security check that ensures the data connection originates from the same IP address ...
Read more : Vsftpd "425 Security: Bad IP connecting." error message. | Views : 1724 | Replies : 0 | Forum : FTP, Scp, Sftp, Rsync
|
|
| Top |
 |
Post subject: Problem with activation Posted: Wed May 26, 2010 9:19 am |
|
|
|
| Top |
 |
|
Last 10 active topics
|