den Aufruf habe ich schon mit "drupal.local:8099 gemacht" - findet komischerweise nichts.
ich wollte nicht über IPv6 zugreifen- hab die Zeile aus bequemlichkeit dringelassen.
Wie ihr seht habe ich eine zweite Seite am Port 8002- die läuft ganz normal, obwohl sich die Configfiles nicht unterscheiden.... bis auf die angesprochenen Root-Directories (siehe Code letzter Befehl)
Code:
root@adi-pc:/etc/nginx/sites-enabled# netstat -nltp
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8002 0.0.0.0:* LISTEN 1100/nginx
tcp 0 0 0.0.0.0:8099 0.0.0.0:* LISTEN 1100/nginx
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1090/mysqld
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 670/smbd
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 1100/nginx
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN 1315/dnsmasq
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2337/cupsd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 670/smbd
tcp 0 0 0.0.0.0:11935 0.0.0.0:* LISTEN 2598/skype
tcp6 0 0 :::8002 :::* LISTEN 1100/nginx
tcp6 0 0 :::8099 :::* LISTEN 1100/nginx
tcp6 0 0 :::139 :::* LISTEN 670/smbd
tcp6 0 0 :::8080 :::* LISTEN 1100/nginx
tcp6 0 0 ::1:631 :::* LISTEN 2337/cupsd
tcp6 0 0 :::445 :::* LISTEN 670/smbd
root@adi-pc:/etc/nginx/sites-enabled# wget -O/dev/null http://127.0.0.1:8099
--2016-04-14 10:18:22-- http://127.0.0.1:8099/
Verbindungsaufbau zu 127.0.0.1:8099... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: nicht spezifiziert [text/html]
In »»/dev/null«« speichern.
[ <=> ] 79.876 --.-K/s in 0s
2016-04-14 10:18:22 (316 MB/s) - »/dev/null« gespeichert [79876]
root@adi-pc:/etc/nginx/sites-enabled# diff /etc/nginx/sites-available/drupal /etc/nginx/sites-available/shopware
21,22c21,22
< listen 8099;
< listen [::]:8099 ipv6only=on;
---
> listen 8002 ;
> listen [::]:8002 ipv6only=on;
24,25c24,25
< root /var/www/drupal/;
< index test.php index.php;
---
> root /var/www/shopware/;
> index test.php shopware.php;
28c28
< server_name drupal.local;
---
> server_name shopware.local;
was die genannten Befehle angeht sehe ich keine Auffälligkeiten, oder?
Warum steht in der netstat eigentlich 0.0.0.0. als lokale Adresse bei nginx drin? sollte doch 127.0.0.1 heißen....
Zusatz: bin auf eine Idee gekommen
über die IP -Nummern "http://127.0.0.1:8099/" und "http://127.0.0.1:8002/" kann ich schon zugreifen- nur warum geht es nicht wenn ich "drupal.local:8099" aufrufe?
Lg
Lesezeichen