Plesk 12.x / Linux :: Stop Nginx From Listening On Specific IP Port 80 / 443

Dec 10, 2014

How can I remove a few "server { }" blocks from the file "/etc/nginx/plesk.conf.d/server.conf" without them being readded by plesk?

I want to stop nginx from listening on port 80/443 for a specific IP which is listed there.

Very much like described here: [URL] ....

But with nginx running in front of apache...

My setup looks like this:
* Plesk 12 + Ubuntu 14.04
* IP-Pair1 (IPv4_1 + IPv6_1)
* IP-Pair2 (IPv4_2 + IPv6_2)

IP-Pair1 is supposed to host admin and customer access.
= Plesk-admin-interface (lighhttpd?) on 80/443 instead of 8443 (ssh on 22, ftp ...)

IP-Pair2 is supposed to host visitor access.
= Plesk webspaces (nginx/apache) on 80/443

So I want to stop nginx from grabbing ports 80/443 of IP-Pair1 and listen to IP-Pair2 addresses only. Then I want to set plesk-admin interface to listen to 80/443 on IP-Pair1 only.

View 2 Replies


ADVERTISEMENT

Plesk 12.x / Linux :: Migration Failing Due To HTTPD Not Listening To Specific IPs

Sep 16, 2014

I built the system on Centos 6.5 with plesk 12 with a range of ips. I then (after the fact) copied the IPs of the old server to the new and moved all the domains to their IP's. This way today we flipped the routes and all should work.

The problem is that the domains only work when putting :7080 behind them. It seems like the httpd is only listening on the old IP and not the new ones. How to make plesk/httpd listen with the new IP's on port 80"

httpd.conf

#Listen 12.34.56.78:80
Listen 7080

I added all the other IP's and tried changing ports under Listen but that does not work either. So changing the listening port does not work.

View 4 Replies View Related

Plesk 12.x / Linux :: What Is APSC (listening On Port 6308)

Feb 8, 2015

What is apsc? I found an apsc.conf (in /etc/sw-cp-server/conf.d) the file contains the line "listen 6308 ssl;". So far that explains why sw-cp-server is listening on that particular tcp port.

Which service is provided by apsc? Can I change it to listen only to 127.0.0.1? I like my server to have a minimum of open ports to the public.

View 5 Replies View Related

Plesk 11.x / Linux :: How To Know If Nginx Served A Specific Page

Jun 3, 2014

I have setup Nginx to serve static pages. I cache some pages and therefor they are static and should be served by Nginx. Now, how can i check if a specific page actual was served by Nginx and not Apache?

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

Plesk 12.x / Linux :: Port 443 Not Responding / Nginx Failed On Startup

Jun 30, 2015

I have made a fresh plesk 12 install on a cent os 7. all is working fine except the SSL 443 port. on startup the following error message is thrown:

Code:
nginx.service - Startup script for nginx service
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled)
Active: failed (Result: exit-code) since Tue 2015-06-30 17:55:37 CEST; 6min ago
Process: 800 ExecStartPre=/usr/sbin/nginx -q -t (code=exited, status=1/FAILURE)
Process: 797 ExecStartPre=/usr/bin/test $NGINX_ENABLED = yes (code=exited, status=0/SUCCESS)
Process: 788 ExecStartPre=/bin/echo Starting nginx service (code=exited, status=0/SUCCESS)

[code]....

View 2 Replies View Related

Plesk 12.x / Linux :: Listening On Two IP Addresses

Dec 3, 2014

I need to listen to two IP addresses supporting many domains.

It the pass we achieve this on the Data Centre firewall. This option is no longer available.

Traffic is been presented to Plesk 12.0.18 on

Eth0 – 192.168.0.2
Eth1 – 192.168.0.12

I set up 192.168.0.2 – all is working well

I installed NGINX – all is well and the websites are running faster.

Normally I would try to listen on two IP address in Apache. This option I could not get working as Plesk creates the Apache configuration files from the information entered through the panels. This in turn over rights any manual changes to the Apache configuration files.

I understand that I could use NGINX to achieve this. Is this correct how is it achieved?

View 1 Replies View Related

Wrong IP Address Listening To Port 80

Jun 2, 2008

I seem to have a strange problem (I am hoping that if I fix this, it will fix another problem I am having).

For some reason (I most probably did by accident) when I run the command lsof -i tcp:80. The information that comes up says that my IP address xx.xxx.xxx.172 is being used to listen to port 80. Yet the IP address that was asignned to me is xx.xxx.xxx.171. I am wondering how I would go about removing wrong IP address so that the right one is listening to the correct port.

I am running centos OS.

View 4 Replies View Related

Apache :: Set Up SSL Listening On Port 443 - Client Authentication

Oct 29, 2014

I am setting up apache 2.4 as a service locally through localhost on a windows 2008 R2 standard server. I have set up SSL listening on port 443 and works correctly, however I am having trouble figuring out how to get apache to authenticate my CAC card.

I have downloaded the DOD certs and put them into various types of files including pem, base 64, der etc and I have yet to figure out a way to get the client certificates validated.

I have left out the information about the SSLCertificateChainFile, SSLCACertificateFile and SSLCARevocationPath as I am sure this must be where my problem is.

Is it possible to get this done through localhost. Here is the error I am getting in the error log.

[Wed Oct 29 11:37:05.675491 2014] [ssl:error] [pid xxxx:tid xxx] [client 127.0.0.1:59282] AH02039: Certificate Verification: Error (20): unable to get local issuer certificate

I am using a self created self signed server ceritficate. Here are some details from my httpd-ssl.conf file:

Code:

<VirtualHost _default_:443>
DocumentRoot "${SRVROOT}/htdocs"
ServerName localhost:443

ServerAdmin admin@example.com
ErrorLog "${SRVROOT}/logs/jtdi.log"
TransferLog "${SRVROOT}/logs/jtdi-Transfer.log"

[Code] ....

View 1 Replies View Related

Port Only Listens To Specific IP

Jan 26, 2007

I would like to limit a port to only listens to requests from a specific IP. How can I do that?

It's a red hat system, with apf installed.

View 5 Replies View Related

How Can I Define A Specific Port For A Subdomain

Mar 21, 2007

I'm currently running Pootle on www.example.com:8000 and I'd like to be able to access it from pootle.example.com but Pootle has its own python server. I use Apache. How could I do that?

View 4 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 12.x / Linux :: CentOS 7 - Add New IP To Use On Specific Website

Jan 2, 2015

I have the latest centos 7 and plesk 12 installed on a dedicated server and i wish to add a new IP to use on a specific website. However, when I am trying to add the IP in plesk i am getting the following error:

Code:
Error: ifmng failed: sh: /sbin/ifconfig: No such file or directory /sbin/ifconfig 'eth0:1' '85.214.93.196' netmask '255.255.255.255' up exited with non-zero status 127

I have read somewhere on the forum that installing iptables can fix this but cents 7 is using the new firewald and i am wondering if in the future such a change will not affect the well being of the overall server.

Is there any solution to this problem or will there be a fix from Plesk in the near future ?

View 6 Replies View Related

Plesk 12.x / Linux :: SSL Cert For Specific Domain

Dec 15, 2014

Currently i'm running a server with 12 customers on it. They all have their own domainnames and subscriptions. One of them wants to secure his site with SSL and also his mail traffic. Currently he is using the mail.hisdomain.com server for receiving/sending e-mail. I want to install a certificate so that domain is secured. How can i accomplish this?

When i look on the server there is only 1 PEM file for the whole server. If i'm going to install his KEY and CRT in that file than all my clients will use that certifcate right? Can i make it so that only his domain uses thoses certifcates? Plesk is configured to use Postfix with Courier.

View 1 Replies View Related

Plesk 11.x / Linux :: Turn Off SPF Checking For A Specific IP?

Nov 6, 2014

I want to reject all email traffic from the internet except those as below can send mail to my Plesk server :

+ my antispam ( smarthost ) with IP ( a.b.c.d )
+ all my user in the plesk server with authentication

So i plan to set SPF checking on to Reject mail if SPF does not resolve to pass but

1. can't find option to whitelist my smarthost IP Is that option Local Rule: " v=spf1 ip4=a.b.c.d -all "

2. all of my user do not affected by the "Reject mail if SPF does not resolve to pass " right ?

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







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