Plesk 12.x / Linux :: Enable / Disable Nginx Per Domain
Feb 24, 2015Is it possible to control if nginx is active on a per domain basis? If so, how do we configure this. If not, how do we disable nginx completely?
View 3 RepliesIs it possible to control if nginx is active on a per domain basis? If so, how do we configure this. If not, how do we disable nginx completely?
View 3 RepliesI have a Plesk 12 server running under Debian 7. I have a website with only mail so I disable web hosting. The problem is that the client needs to use webmail but webmail does not work (maybe because web hosting is disabled)...
View 1 Replies View RelatedI 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 Relatedhow to automatically enable nginx by default for all domains/subscriptions and or even just as a whole since we do not use apache at all.
View 18 Replies View RelatedI have a Plesk 12.0.18 (Update #22) running on CentOS 6.6 (Final) and I have a very irritating issue with nginx.
Anytime a customer creates a domain and/or subdomain everything is registered and going wel except that nginx is not restarted/reloaded to reflect the changes and I have to restart nginx manually.
I cannot find anything that causes this, no obvious errors in the logs and or errors in the UI.
Since we switched to Plesk 12 and activated nginx the problem reoccurs reliably on every domain change.
As soon as a customer creates a new domain or alias and Apache restarts nginx delivers 502 errors for maybe 10 seconds. After that everything is fine again.
The system is Debian 6.0.10 with Plesk 12.0.18 Update #38
That might not be a problem in small environments, but with >100 domains the timeout is annoying enough for customers to pick up the phone.
Adding this to /etc/sw-cp-server/config did not do the trick.
http {
fastcgi_buffers 32 32k;
fastcgi_buffer_size 64k;
fastcgi_read_timeout 600;
fastcgi_send_timeout 600;
}
I recently needed to make some changes to the domain.conf file at the following path: /etc/nginx/plesk.conf.d/vhosts. When I try to edit the file it just has 3 lines at the top warning me that the changes made here would not persist, while other domain confs have full configs inside.
I am positive that the domain in question is set to use nginx, double checked this, so what gives? Why is the file blank?
I've tried to enable https on a domain /server: vpn, debian 6.0.10, plesk 12.0.18/ but all I receive is a 403 forbidden error. I can't find any other related option, what could be the problem?
View 4 Replies View RelatedOur server : [URL] .....
plesk v11 (64BITS)
PROBLEM DESCRIPTION
We found 502 Bad Gateway error Nginx on multiple domain "currently troissoeursetunfrere.com is a wordpress site e-commerce" and also malittleboutique.com ecommerce wordpress, possibly to fix this problem we have followed this tutorial " [URL] ....
we perform the following operations:
sudo apt-get remove php5 php5-cgi php5-fpm
sudo apt-get install php5 php5-cgi php5-fpm
Following these operations we lost access to cpanel.
I have an error that has arisen me for no apparent reason. This error does not allow me to enable or disable DNS domains. I searched for solutions but have not found anything.
The error message is: ERROR: Call to undefined method plesk__client__domain__dns__toggle::_postRequestRequired() (DNSToggleUIPointer.php:26)
And as I said DNS appears when activated or deactivated by the domain from Plesk panel
Version: 11.5.30 #48
New to Plesk in general so I don't know for sure if the "Register Domain Names" feature is part of our 'Web Pro Edition' or comes by default.
Also, is the domain registration option showing up because when installing Plesk I enabled the "Enable access to premium commercial apps"?
So my question is, can we still set it up so users have access to install applications (free and commercial), but disable the domain registration option?
I have several domains configured in my Plesk, and one of them is set as the "Detault site" under Home >> Tools & Setings > IP address management.This has the unpleasant side effect that any domain I point to this IP renders content from the Default site unless it's setup. How can I configure the default site to render content from only one domain?
View 1 Replies View RelatedHow do we disable email on the domain entirely? The client is hosting email externally - the offered spam filtering is wholely inadequate and we're seeing a few of these happening - to the point I'm considering offering externally hosted email plans anyway - but back to the problem - I need to delete the mailboxes and then disable mail - and then remove the DNS records for webmail etc - but can't seem to find how to turn off locally hosted email for a domain.
View 11 Replies View Relatedis it good or not and why we should enable or disable it in cpanel server or other server?
View 11 Replies View RelatedMy customer using exchange on internal office, the https port conflict with their work. how do I disable https port on their domain?
I am using plesk 11.x and I have about 300 domains on it.
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?
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 RelatedI 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 Relatedthis 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.
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)?
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.
how to know if mail() function is enabled or disabled on my server? how to enable/disable it?
can it be done via server control panel or is there a shell command for it?
one more thing, where to get/edit the SMTP data for my server?
My Plesk Panel version 11.0.9 on Microsoft Windows Server 2008 R2 Service Pack 1 with mail Server : IceWarp Server 10.2.2
And my subscriptions had 2 domains : matbaocare.com (main domain) & matbaocare.net (second domain).
When I create E-mail Address , by default I can choose several domain on my account with @matbaocare.com or @matbaocare.net.
But I don't want to create E-mail with second domain, just main domain can use email !
How to config Plesk to auto disable create E-mail with several domain on account?
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.
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] ....
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.
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!?
how to change ports of Nginx from 80 to 8080 I would like install Varnish
View 2 Replies View RelatedI have upgraded from 10 to 12 and now I have "502 Bad Gateway nginx" error. I have atached logas..
View 1 Replies View Relatedi 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.
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?