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


ADVERTISEMENT

Plesk 11.x / Linux :: PHP-FPM / Nginx And Multiple Version Of PHP

Dec 17, 2014

I installed Nginx and PHP-FPM through the Plesk Autoinstaller.It works well with the default PHP version installed originally with the CentOS 6 system (5.3.3). I also installed manually following your KB [URL] .... additional versions of PHP. It works well, and I can use those additional versions through the Plesk UI.

Therefore, I was wondering how to use them with PHP-FPM? As when I activate a domain for Nginx with PHP process (PHP-FPM), it switches the PHP version to 5.3.3 and I can't change this parameter.

View 1 Replies View Related

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 View Related

Plesk 11.x / Linux :: Duplicate Entry When Editing Login Parameters?

Feb 10, 2015

When you try to change the password of the client to login the control panel gives an error: SQLSTATE [23000]: Integrity constraint violation: 1062 Duplicate entry '<login>' for key 'login'

The impression that instead of UPDATE done INSERT.

Parallel Plesk Version: 11.5
OS: Debian Squeeze

View 2 Replies View Related

Plesk 12.x / Linux :: Verify If Gzip Is Enable?

Nov 1, 2014

How to can I verify if gzip is enable? And if not, how can I active/install mod deflate/gzip under plesk 12?

View 8 Replies View Related

Plesk 12.x / Linux :: Unable To Find Pigz / Trying Gzip

Jun 25, 2014

I'm migrating from Plesk 9.5 (Centos 5) to Plesk 12 (Centos 6).I found this in the migration.log file: [24124]: 2014-06-25 14:27:20 DEBUG Unable to find 'pigz', trying 'gzip'

I've installed pigz from Plesk repository and I can execute pigz in the shell, but definitely Plesk Panel doesn't use pigz.I tried with pigz from EPEL repo and the log showed the same error. I also tried to move the binary from /usr/bin/pigz to /bin/pigz and It didn't work.I'm interested in using Pigz to improve the speed of migration and backup.

View 4 Replies View Related

Plesk 12.x / Linux :: Two Version Of PHP

Nov 6, 2014

I have installed a version of php (v5.4). My Web run correctly before and now not. My web is Joomla 2.5. I recived this error:Fatal error: Class 'JConfig' not found in /var/www/vhosts/*********/httpdocs/includes/framework.php on line 56.

View 1 Replies View Related

Plesk 12.x / Linux :: 502 Bad Gateway Using Nginx

Oct 30, 2014

Today at 12.50 pm my (ubuntu 14.04.1 LTS) server running plesk 12.0.18 suddenly stopped serving websites. Any attempts to access a webpage on any vhost returned the 502 bad gateway using Nginx error messsage.When I looked at the nginx logs, I found messages like:

2014/10/30 14:48:00 [error] 3099#0: *101 connect() failed (111:

Connection refused) while connecting to upstream, client: m.m.m.m, server: , request: "GET /server-status HTTP/1.0", upstream: URL....

Restarting apache & nginx (/etc/init.d/apache2 restart & /etc/init.d/nginx restart) made no difference and I had to reboot to restore http access.

Strangely if I browsed with port 7080 specified (i.e. http://n.n.n.n:7080), this worked fine for all vhosts, so apache (which I believe is listening on this port while nginx listens on port 80) is working fine - nginx is just not able to pass stuff to it?

View 15 Replies View Related

Plesk 11.x / Linux :: How To Update Nginx

May 12, 2014

My current version of nginx in plesk 11.5.44 is 1.5.0 and i would like to update it to the latest stable version which is 1.6.0. However, i cannot seem to manage to do so. I tried with yum update nginx but i receive Package(s) nginx available, but not installed.

View 1 Replies View Related

Plesk 12.x / Linux :: Php Is Not Working On Nginx

Dec 18, 2014

I running magento on plesk 12 and trying to configure nginx, but only home page is working and all other pages are not working with error 404.

View 6 Replies View Related

Plesk 12.x / Linux :: Bad Gateway Nginx

Jun 17, 2015

this is a fresh Plesk 12 installation on a Dedicated Server, on Debian 6. I haven't installed a License key yet.When i tried to run MIgration Manager, the loading was taking forever. Also, when i try to enter Webserver Configurations Troubleshooter, i get 502 Bad Gateway nginx error.In the /var/log/sw-cp-server/error_log i get this error:

Code:
2015/06/17 11:42:47 [error] 3918#0: *52 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: A.B.C.D, server: , request: "GET /modules/configurations-troubleshooter/index.php/index/list HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "X.X.X.X:8443", referrer: "https://X.X.X.X:8443/admin/module/list?context=modules"
When i try to insert a Plesk License, i also get this error:

Code:
2015/06/17 10:29:17 [error] 5643#0: *81 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: A.B.C.D., server: , request: "POST /server/
key_upload.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "X.X.X.X:8443", referrer: "https://X.X.X.X:8443/server/key_upload.php"

I followed this KB article 118757 but no luck. Also, the server resources are at the lowest usage and there is >2 TB disk space available.

View 2 Replies View Related

Plesk 11.x / Linux :: Updating Nginx To Use TLS 1.2?

Apr 30, 2015

My server admin already upgraded my OpenSSL to version 1.0.1m 19 Mar 2015 and he also upgraded Nginx to 1.6. I'm also running CentOS v5.11 and Plesk v11.5.

However, he tells me that he still can't get TLS 1.2 to work because he noticed that my server uses a different version of Nginx (sw-nginx), which he believes is part of Plesk. How we can get TLS 1.2 working on the Plesk copy of Nginx (sw-nginx)?

View 1 Replies View Related

Plesk 12.x / Linux :: 502 Bad Gateway Nginx

Jun 23, 2015

We have a problem with a magento website. Often (perhaps when we use administration), we have the message "502 Bad Gateway nginx".

We have added server instructions in Plesk Nginx:
proxy_buffers 16 16k;
proxy_buffer_size 32k;
fastcgi_buffer_size 32k;
fastcgi_buffers 16 12k;

But we have still the problem.

We have tried :
[URL] ....
And
[URL] ....

Without results...

The log file say:

[client x.x.x.x] client denied by server configuration: /var/www/vhosts/domain.com/httpdocs/app/etc/local.xml

x.x.x.x is the website IP.

View 4 Replies View Related

Plesk 11.x / Linux :: Possible To Have 2 Version PHP On Server?

Jan 25, 2015

Are that possible to have 2 version on my server?I upgrade from 5.3 to 5.4 yesterday but 2 site is down after upgrade of php.And i need 5.4 for 1 site and 5.3 for this other.

View 2 Replies View Related

Plesk 12.x / Linux :: Update Php Version?

Jan 10, 2015

I've tried a few times to update php on my server from version 5.3 to the latest 5.5 however it keeps conflicting with apache2 that's installed and I ended up having to re-install everything as I accidentally deleted Plesk attempting to fix it.

Ideally I'd rather just run nginx with php-fpm without apache but it's not as straightforward anymore with plesk and how to go about updating PHP?

I've got a clean install of Parallels Plesk v12.0.18_build1200140606.15 running on Ubuntu 12.04.2 LTS.

View 8 Replies View Related

Plesk 12.x / Linux :: How To Remove And Purge Nginx

Jun 10, 2015

Plesk 12 will not do it and if you reinstall it you get errors after installation. Maybe a bug but seems nobody is interested in answering my question before.

I tried to remove by

apt-get remove --purge sw-nginx
dpkg -r sw-ningx

Both of them display that is removed but after a new installation are the folders not created and maybe old files not overwritten if not deleted.

View 1 Replies View Related

Plesk 12.x / Linux :: Error On Enabling Nginx

May 20, 2015

I wanted to activate nginx on my server als describes on [URL] ...

Installing was no problem, but when i try to enable nginx, I always get errors:

/usr/local/psa/admin/sbin/nginxmng -e
[2015-05-20 10:42:36] ERR [util_exec] proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
[2015-05-20 10:42:37] ERR [util_exec] proc_close() failed

[Code] ....

View 7 Replies View Related

Plesk 12.x / Linux :: How To Set Nginx To Show Real IP

Mar 23, 2015

Is here a tutorial special for plesk 12 that show me how set nginx to show real visitor ip in access_log and php?

Actual nginx show for IPv6 visitors the own server IPv6 in access_log and php.

View 5 Replies View Related

Plesk 12.x / Linux :: ERROR IP Nginx After UPDATE

Mar 18, 2015

how is it possible that after an update my main site is down? This site: www.orderhosting.it has plesk Panel and I have 20 sites. They work perfectly but my main site is off. I think there is an error in the configuration because:

[root@orderhosting ~]# grep -r 199.99.36.73 /etc/nginx/
[root@orderhosting ~]#

This is strange.Error log does not report any errors, only this: [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?

View 7 Replies View Related

Plesk 12.x / Linux :: How To Change Ports Of Nginx

Jul 9, 2014

how to change ports of Nginx from 80 to 8080 I would like install Varnish

View 2 Replies View Related

Plesk 12.x / Linux :: Bad Gateway Nginx After Upgrade

Aug 18, 2014

I have upgraded from 10 to 12 and now I have "502 Bad Gateway nginx" error. I have atached logas..

View 1 Replies View Related

Plesk 12.x / Linux :: Wordpress 404 Not Found Nginx

Dec 19, 2014

i went to server setting and checked manage php with nginx then start getting 404 Not Found nginx. It was clear that it s a problem with the wordpress permanent links so i went in wordpress back-end and switched to default links then it start working but when i switched to permanent link againi got the previous error again

I searched for a while on internet and i found . URL.... So the problem that i have is that i added this piece of code manually in : /var/www/vhosts/system/domaine.com/conf/nginx.conf....Since it s mentioned above

#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.

View 14 Replies View Related

Plesk 12.x / Linux :: 502 Bad Gateway Error When Use NGINX

Jan 14, 2015

I have a server with the latest version of plesk and centos.

The main site is Articoli Promozionali

Until now kept on the server active both apache and nginx.

Tonight I tried to disable apache leaving only nginx.

That raises the error: 502 bad gateway NGINX at all sites on that server.

To use nginx i need to keep active apache?

What can cause that error?

View 1 Replies View Related

Plesk 12.x / Linux :: Additional Nginx Directives

Sep 3, 2014

I am trying to add the following nginx configuration to Plesk through

Website & Domains -> Web Server Settings

The conf i am adding is:

location /folder/folder/ { try_files $uri /folder1/folder2/file.php; }
or
location ^~ /folder/folder/ { try_files $uri /folder1/folder2/file.php; }

but it doesn't seem to be working.

gives 404

View 1 Replies View Related

Plesk 12.x / Linux :: How To Enable Nginx For All Domains

Nov 18, 2014

I have installed the nginx on my server and want to activate it for all my domains, to do this, i have to do it manually for each domains. But there should be an easier way. Apache uses too much ram.

View 7 Replies View Related

Plesk 12.x / Linux :: Nginx Wildcard Subdomain

Jul 3, 2014

I have a problem with Nginx on myPlesk 12 with wildcard dns.I want subdomains URl to be like root domain url. Exemple. URL...You can see a live exemple here: URL.... give error 404 instead of showing root domain file (URL....). It's the same for images.What specific rule I must add in plesk panel?

View 5 Replies View Related

Plesk 12.x / Linux :: No Access To AWStats Using Nginx

Oct 8, 2014

Using Plesk 12 on a VPS with Ubuntu 12.04 LTS. In the Web Server Settings, if I select "Process PHP by nginx", then the URL "<domain>/plesk-stat/webstat/" is answered by Nginx with "404 Not Found". Having sniffed around, it seems:

/var/www/vhosts/system/VHOST/statistics/webstat is getting statistics gathered.I can't say if they are complete, or even sensible, but things are happening there.The various Alias and other statements required for access to AWStats via Apache are contained in the Apache config file /var/www /vhosts/system/VHOST/conf/last_httpd.conf..But no equivalent statements are generated in /var/www/vhosts/system/VHOST/conf/last_nginx.conf.

View 2 Replies View Related

Plesk 12.x / Linux :: Nginx / No Data Received

Mar 21, 2015

i have installed today Reverse Proxy Nginx on Plesk 12. After have activing Nginx, website show "no data received".

Nginx error.log:

PHP: no "ssl_certificate" is defined in server listening on SSL port while SSL handshaking-----conflicting server name

View 6 Replies View Related

Plesk 11.x / Linux :: Nginx IP When Server Reboot

May 6, 2014

When I reboot my centOS 6.5 + Plesk 11.5 server, Nginx doesn't start and every time I need to go to Server > IP Addresses and click Reread IP.Then Plesk says that need to repair one of these ips, I click repair and then Nginx can start. ( I have 3 ips [2 ipv4 and 1 ipv6] )

View 3 Replies View Related

Plesk 12.x / Linux :: How To Switch To NGINX Only As Web Server

Oct 26, 2014

As the title says: How do I switch to NGINX only as my web server, while disabling/removing apache in Plesk?

View 2 Replies View Related

Plesk 12.x / Linux :: How To Change Nginx Port

Feb 3, 2015

I need changing the nginx port. I've followed various threads and have created a custom nginxDomainVirtualHost.php file at: /usr/local/psa/admin/conf/templates/custom/domain, while the website indeed moves to the port I have set, a second nginx thread starts at port 80 and takes over in it's place.

I need to put varnish at port 80 and cannot do so until all services relinquish control on port 80.

Followed clues here: [URL] ....

some here: [URL] .....

Turn's out to be able to change the nginx port to a non-standard port you need to edit 6 files

nginx.php
nginxDomainForwarding.php
nginxDomainForwardingIpDefault.php
nginxDomainVhost.php
nginxDomainVhostIpDefault.php
nginxWebmail.php

For the time being i disabled SSL support for my test domain as I didn't need it. The line you need to look for the in above files is:

Code:

$VAR->server->nginx->httpPort

So the line would finally become from this:

Code:

<?php echo $VAR->includeTemplate('server/nginxVhosts.php', array(
'ssl' => false,
'frontendPort' => $VAR->server->nginx->httpPort,
'backendPort' => $VAR->server->webserver->httpPort,
)) ?>

to this:

Code:

<?php echo $VAR->includeTemplate('server/nginxVhosts.php', array(
'ssl' => false,
'frontendPort' => "8888",
'backendPort' => $VAR->server->webserver->httpPort,
)) ?>

To get this to work you'll need to create a custom directory at: /usr/local/psa/admin/conf/templates

And copy the files over from the root of /usr/local/psa/admin/conf/templates/default

View 1 Replies View Related







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