Deflate / Gzip Don't Work With Nginx Or Apache

Feb 5, 2015

Whatever i try to modify configuration there is no way i can get file delivered by apache or NGINX to be deflate/gzip compressed.

OS: Debian 7.7
Plesk version: 12.0.18 Update #33

I've tried to add these lines to Nginx (Vhost directives) but it change nothing :
# Gzip Settings
gzip on;
gzip_buffers 16 8k;
gzip_comp_level 4;
gzip_http_version 1.1;
gzip_min_length 1100;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/x-javascr$ application/xml application/xhtml+xml application/xml+rss;
gzip_vary on;
gzip_static on;
gzip_proxied any;
gzip_disable "MSIE [1-6].";

I also tried to disable Nginx and configure deflate in apache with following lines (Vhost directives then in a file in apache2/conf.d) but it is the same ...

<IfModule mod_deflate.c>
# Force deflate for mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)s*,?s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding

[code]....

View 5 Replies


ADVERTISEMENT

Plesk 12.x / Linux :: NGINX Does Not GZIP Scripts With Version Parameters

Jun 3, 2015

I'm using latest plesk with ubuntu 12.04, apache and nginx, gzip is enabled and working fine, except for JS and CSS files wich have version parameters in the URI, for example :

[URL] ....

here is my conf in /etc/nginx/conf.d/gzip.conf :

Code:
gzip on;
gzip_disable "MSIE [1-6].(?!.*SV1)";
gzip_proxied any;
gzip_types text/plain text/css application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon image/bmp image/svg+xml;
gzip_vary on;
Gzip is working fine for every other ressources loaded

I know i can strip these ?ver= using PHP, but if nginx could just enqueue them properly as they are...

View 3 Replies View Related

FreeBSD With Nginx: PHP Sto To Work Every 6-10h

May 30, 2009

I have install FreeBSD and i use Nginx for run my website on this webserver.

All working good and the server running from 1/2month..

Today when i visits my site i have see Nginx Gateway Error 502..
and from shell i run top command and all processor are using 0% of cpu but use the normal ram..

all is stopped..

but i don't know why and how happen..

Any people have the same error?

I think i do create a monitor script and when appen just reboot the server (i have solve this problem rebooting the server each 502 error)

View 4 Replies View Related

Plesk 12.x / Linux :: How To Connect Nginx To Work With Directory

Dec 12, 2014

How to connect nginx to work with directory web_users for some virtual host?

This directory contains two accounts (user1, user2) with a large amount of static content (files .jpg), the downloaded web users themselves. At the moment they are processed by Apache, which causes an additional load on the server.

In hosting configuration for virtual host "domain.tld" set:

document root: httpdocs. (That is, the "httpdocs" and "web_users" directories are on the same level).

In the web server configuration settings (in additional nginx directives) i can't use the directive "server" (refuses to save), where you can specify the location of the additional "document root" for nginx.

View 3 Replies View Related

Apache Vs Nginx (mod_php VS Php-fpm)

Jun 23, 2009

Here is the comparison between Apache and Nginx. Request processing overhead and real-world application performance measurements included.

[url]

View 7 Replies View Related

Nginx Works With Apache

Aug 14, 2008

I am doing my web like this:

1) nginx listening at port 80

2) apache listening at port 78

3) nginx throws all shtml pages to apache

they are working perfectly, except one small thing:

I don't want any public visitor may visit port 78 directly, for now, both:

[url]

[url]

are working for visitors.

Anybody knows how to block/hide port 78 to the public access?

my nginx config snippet:

Code:
location = /index.shtml {
proxy_pass [url]

}

my apache2 config snippet:

Code:
Listen 78
If I make apache as follows:

Code:
Listen 127.0.0.1:78
I will get 502 bad gateway when I visit:

[url]

View 1 Replies View Related

Convert Apache To Nginx

Apr 13, 2015

I am wondering if there is an easy way to convert apache to nginx on my Plesk 12 server. Ideally, I would like to save all my hosts without having to re set them all up. I have been searching online, but haven't found a simple way to do so.

View 1 Replies View Related

NGinx Vs Apache Vs Litespeed Vs The Rest

Apr 20, 2009

According to the latest trend and technological advances, which server software should people go with from the very beginning. Which do you recommend as on today?

btw anybody has experience with all 3 (apache/nginx/litespeed) webservers?

I have -

On a common shared environment, I started off with Apache - was fine until some load started generating and it became crapache.

Then litespeed - Totally awesome, could seriously feel the difference, but its cost is something not everybody can afford.

Then nginx - Very nice, felt like litespeed only, the only difference was it got quite complex in configuring it at a later stage BUT its free'ness made me love it badly.

View 4 Replies View Related

Use Nginx Instead Of Apache In Plesk Server

Feb 25, 2015

I have a VPS running Parallels Plesk 12.0.18 Update#36 and CentOS 6.6. I'll like to move (if it's possible uninstall complete) Apache and let Nginx to manage all the request coming from outside.

View 4 Replies View Related

Optimizing For Bandwidth On Apache And Nginx

Dec 17, 2014

We'd like to use this tool from Google on our Plesk server: [URL]

is it useful getting these tools going on server, and are they worth it?

View 1 Replies View Related

Convert Apache Rewrite Rules To Nginx

Nov 24, 2012

How to convert apache rewrite rule to nginx:

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^naujienos+ news.php/$1 [L]
RewriteRule ^naujienos/p(.*)$ /news.php?pg=$1 [nc]
RewriteRule ^naujienos/?$ /news.php [nc]
RewriteRule ^naujienos?$ /news.php [nc]

View 5 Replies View Related

Nginx As Apache Proxy For Static Content -- Configuration

Nov 23, 2007

I am a non-tech person trying to configure Nginx to serve static content (apache will remain on port 80 for the dynamic stuff).

Nginx is already installed, what I need is a workable configuration file for nginx so that it serves all static stuff (images and a few folders with static html) and instructions in how to create it. The server is running DirectAdmin panel, Apache 2.24, PHP 5.23 and XCache 1.2.

View 12 Replies View Related

Plesk 12.x / Linux :: Passing Headers To Apache Through Nginx

Jul 23, 2014

I want to pass the X-SENDFILE header to apache through nginx.

Is this possible or do i have to disable the reverse proxy?

View 1 Replies View Related

Htaccess Not Work On Apache

Nov 3, 2009

im installing APACHe on windows server 2003 but .htacess not work on apache

View 4 Replies View Related

Apache :: Getting SSL To Work On 2.4.6-6.23.1 On Suse

Jul 29, 2014

OS is OpenSuse 13.1.Yast shows the installed version of Apache2 as 2.4.6-6.23.1..I created my own CA, and used that to create a server certificate. The CA crtificate (in PEM format), and the server key and certificate have been placed in the appropriate directories in /etc/apache2 (the key in ssl.key and the certificates in ssl.crt).

When I check the status, after restarting apache, I see an error claiming that socache_shmcb_module is not installed and that it is ignored. This is, of course wrong, as I included that module in /etc/sysconfig/apache2, and the appropriate LoadModule statement in the Loadmodule.conf file (with the proper full path - /usr/lib64/apache2). This error is the only error I see on the server.

View 9 Replies View Related

Apache :: Cannot Configure To Work With PHP

Aug 7, 2014

(I am using apache 2.2.25).I have this "HTML5 and CSS all in one for dummies" Book. And it tells me I have to configure the .conf file to make apache work with PHP.

At this point I have only edited the Document root folder. The book tells me to find a Loadmodule with an # with a mention of PHP (I'll put the text of the book at the end) and to add an "addtype" statement. If have found neither and when I add the manually the server doesnt work.how can I make PHP work? Also, I have noticed that the Apache commands in CMD don't work. I am running windows 8.1. URL....

View 1 Replies View Related

Apache :: Getting URL Rewrite To Work

May 25, 2015

On my website at www.jamescobban.net I have a directory which contains an ancient copy of my old static implementation of the site. It is there just in case someone has saved a old URL. However the data in that directory is several years out of date, so I would like to redirect the old static URLs to the equivalent dynamic URLs. For example: URLs.....

I wasn't warned that the <Directory> in the Apache conf file has to specify AllowOverride All whereas the default that is created when I install Ubuntu is AllowOverride None.I wasn't warned that I have to enable the mod_rewrite using a2enmod or else the rewrite commands are rejected.I am testing this on my private copy of the web-site where I can fiddle with options like that in the config file, but when I migrate this to my public server I do not have that privilege, so I want to try setting up the URL rewriting in .htaccess.

View 4 Replies View Related

(D)Dos Deflate

Jun 5, 2007

I have a few questions regarding (D)Dos Deflate:

How many " Connections " should I set it at before (D)Dos Deflate starts blacklisting and banning IP Addresses? It is set at 150. Should I make it 10?

Should APF Firewall be installed for this to be more effecfive? ( Note, I'm don't know much about Linux and this isn't installed. )

Number of seconds the banned ip should remain in blacklist? It is a at 600 by default. Shouldn't this be infinite?

Quote:

##### frequency in minutes for running the script
##### Caution: Every time this setting is changed, run the script with --cron
##### option so that the new frequency takes effect
FREQ=1

View 9 Replies View Related

Gzip

Jan 2, 2007

whether if its a good diea to enable GZIP?

Will it place additional load on the server with html/forum websites?

For example i have noticed that GZIP is disabled on WHT

View 5 Replies View Related

Gzip

Aug 29, 2007

is gzip better done thorugh php.ini or through a php script?

View 7 Replies View Related

Apache :: 2.4.7 - Can't Get Simple Alias To Work

Jul 25, 2014

I'm using Apache 2.4.7 on Linux Mint 17.

Apache is currently working fine using an alias for one webserver, weewx. I had a heck of a time configuring the alias though, most configurations would result in a 404 error.

I'm trying to get it working with another webserver, IOG. And I'm again getting 404 errors...

Currently my IOG.conf file looks like this:

Code:
Alias /IOG /home/Storage/iog
<Directory /home/Storage/iog>
Options Indexes
AllowOverride None
Require all granted
</Directory>

/home/Storage/iog is good, it's the exact path and is readable/writable by all users.

Options Indexes is included because IOG does not generate an index.html.

AllowOverride None is included because I'm not using .htaccess files, and because it worked for the weewx configuration file.

Require all granted is used because I'm not serving this external to my LAN and would like all LAN machines to have access.

My (working) weewx configuration file:

Code:
Alias /weewx/ "/home/Storage/weewx/"
<Directory "/home/Storage/weewx/">
Options Indexes Includes FollowSymlinks
AllowOverride None
Require all granted
</Directory>

Of course I tried that first, modifying the paths to IOG, and got a 404 error.

I make sure to reload Apache each time I make a change to the configuration file.

View 2 Replies View Related

Apache :: SWF Won't Work On Httpserver But Do On SunOne

Jun 17, 2013

We currently migrating over from SunOne to HTTP Server. Flash files work fine on SunOne but not on the HTTP Server.When you go to run launch.html another window opens but the swf doesnt start playing.Both .flv (video/x-flv) and .swf application/x-shockwave-flash are in the mime.types

Launch.html file
#####################################################
Include /opt/IBM/WebSphere/HTTPServer/conf/httpd.conf
#####################################################
#
#Listen IP address and Port Number

[code]...

View 1 Replies View Related

Apache :: Redirect In HTAccess Does Not Work

Sep 18, 2014

One site just linked to my website with incorrect URL as URL.. want to correct this by redirecting the URL to URL.... Therefore, I add the following line in my .htaccess, as follows: Redirect 301 /aor/%e2%80%9d URL...

However, this does not work. When I input URL... in Firefox or IE, the browser still said the page not found(404) error.

View 1 Replies View Related

Apache Don't Work With PLESK 12.0.18 Upgrade

Sep 17, 2014

I has Parallels Ples 11.X with Cent OS 6.5 and yesterday i tried to upgrade to PLESK 12.0.18.

Now, I can't start the apache module because it´s impossible to create the config file

The issue is:

Details: [2014-09-17 19:46:27] ERR [util_exec] proc_close() failed
[2014-09-17 19:46:34] ERR [panel] Apache config (14109759800.30476400) generation failed: Template_Exception: Can not restart web server: Service /etc/init.d/httpd failed to start
Service /etc/init.d/httpd failed to start

file: /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 104
code: 0
Can not restart web server: Service /etc/init.d/httpd failed to start
Service /etc/init.d/httpd failed to start

I try with cp the certifies and writing a new private key but it didn't work.

I try to reinstall the Plesk but it didn't work.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved