This forum is dedicated to Apache, Nginx, Lighttpd, Squid and other HTTP transport protocol related software
| 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 : 111 | Replies : 0
|
|
| 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
|
|
| 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
|
|
| 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 : 3705 | Replies : 0
|
|
| Top |
 |
Post subject: Pcfg_openfile: unable to check htaccess file, ensure it is readable Posted: Sun May 23, 2010 1:14 am |
|
|
While playing with permisions i got the following errors in the error_log of Apache 2 with mod_rewrite enabled.
[Mon May 24 01:10:31 2010] [crit] [client X.X.X.X] (13)Permission denied: /home/www/domain.tld/img/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable [Mon May 24 01:10:58 2010] [crit] [client X.X.X.X] (13)Permission denied: /home/www/domain.tld/img/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable [Mon May 24 01:11:04 2010] [crit] [client X.X.X.X] (13)Permission denied: /home/www/domain.tld/img/.htaccess pcfg_openfile: unable to check ...
Read more : Pcfg_openfile: unable to check htaccess file, ensure it is readable | Views : 3587 | Replies : 0
|
|
| Top |
 |
Post subject: Phpbb 3.0.5 "Log me on automatically" cookies and sessions problem Posted: Tue May 18, 2010 11:44 pm |
|
|
|
| Top |
 |
 |
Post subject: Nginx + apache (for PHP) with real IP addresses in logs Posted: Tue May 18, 2010 4:49 pm |
|
|
I was trying to get nginx to work with apache 2.2.15. The idea is that nginx will ofer the static content and apache the PHP content. Very easy to do and a lot of documentation is available over the internet on how to do it. However, i encountered some issue when i was trying to get nginx to send the real IP address of the visitor to the apache server and not the localhost ip ...
Read more : Nginx + apache (for PHP) with real IP addresses in logs | Views : 2143 | Replies : 0
|
|
| Top |
 |
Post subject: Re: Can somebody recommend an affordable SEO Posted: Wed May 05, 2010 10:40 am |
|
|
Hi,
Before you contracting a 3rd party company to do your SEO it would be best if you started to read the basic SEO tehniques (Using page titles with your important keywords, using the title attribute in your links that would include keywords, using the alt attribute with images, using keywords in your domain name and urls, as you can see in the url of this post).
Besides SEO optimization, you should also "inspect" your ...
Read more : Re: Can somebody recommend an affordable SEO | Views : 310 | Replies : 1
|
|
| Top |
 |
 |
Post subject: Drupal The Taxonomy Menu has been removed Posted: Fri Apr 30, 2010 5:53 pm |
|
|
After playing with drupal a little, I saw the message "The Taxonomy Menu has been removed" and there was no Taxonomy in the "Administer" -> Content management menu.
This was because I had enabled Taxonomy wrapper module in Administer->Content Management->Categories
Disabling the wrapper brought the Taxonomy back.
Read more : Drupal The Taxonomy Menu has been removed | Views : 353 | Replies : 0
|
|
| Top |
 |
|
Last 10 active topics
|