Register for your free account! | Forgot your password?

You last visited: Today at 20:18

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Nginx & Plesk

Discussion on Nginx & Plesk within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1

 
.MaisKolben™'s Avatar
 
elite*gold: 24
Join Date: May 2009
Posts: 1,165
Received Thanks: 1,222
Nginx & Plesk

Hallo zusammen,

ich habe ein kleines Problem mit Plesk zu bearbeiten momentan bzw. mit Nginx und der Reverse Proxy Funktion.

Folgendes Problem besteht:

In der default proxy Conf von Nginx habe ich folgenden Code zu verzeichnen:
Code:
location / {
		proxy_pass https://IPADRESSE:PORT;
		proxy_set_header Host             $host;
		proxy_set_header X-Real-IP        $remote_addr;
		proxy_set_header X-Forwarded-For  $proxy_add_x_forwarded_for;
		proxy_set_header X-Accel-Internal /internal-nginx-static-location;
		access_log off;
	}
*IP-Adresse & Port zensiert.

Nun möchte ich jedoch zu dem "location / {}" part jedoch Custom Code zu einzelnen Domains hinzufügen und nicht die default Conf verändern, welche ja dann den Code für jede Domain übernehmen würde.

Klingt erstmal nicht kompliziert, die Funktion ist auch gegeben im Plesk Panel, jedoch bekommt man einen "duplicate location" Fehler, wenn man in der Custom Conf nochmals "location / {}" verwendet, was ja logisch ist.

Hat jemand eine Idee wie ich diese location ohne weitere Probleme in einer Custom Conf verwenden kann oder hat dafür evtl. eine alternative Lösung?

Ich wäre für jede Hilfe dankebar!


Gruß,
MaisKolben
.MaisKolben™ is offline  
Reply


Similar Threads Similar Threads
[S] Owncloud installation auf nginx
06/04/2016 - elite*gold Trading - 1 Replies
Siehe Titel, biete bisschen Egold... (wenns klappt) Eig kann ich das aber es will nicht und hab wenig zeit. Wichtig: Auf nginx Auf Linux Debian Nur per Remote Zugriff auf meinen Rechner
s&f + nginx
10/11/2014 - Browsergames - 0 Replies
Hi, I have problem with s&f on nginx www server. Register,login and other don't works, can make s&f runnable on nginx?
Nginx Problem Debian 7
08/05/2013 - Unix/Linux - 12 Replies
Guten Tag, ich kämpfe seit paar Std mit Nginx, alle Lösungen die ich im Internet gefunden habe, haben mir nicht weiter geholfen. Im Error Log steht folgendes: 2013/08/04 14:20:46 2456#0: *7 connect() failed (111: Connection refused) while connecting to upstream, .... 2013/08/04 14:58:53 2456#0: *13 connect() failed (111: Connection refused) while connecting to upstream, ... Wenn ich auf irgendeine Seite von mir gehe kommt immer:



All times are GMT +1. The time now is 20:19.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.