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 ...
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...
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)
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.
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.
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.
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.
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.
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.
(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....
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.
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
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.
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
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.
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.