0

Subdomain Problem

Fragz 4 years ago updated 4 years ago 1

Hello,


I Setup my website (test.com) ist runs an nodebb Forum. So i want an subdomain super.test.com. I setup a new "Website". But the subdomain shows the nodebb Forum instead the /srv/super.test.com Site. have anybody an idea?


my Config looks like:


#AUTOMATICALLY GENERATED - DO NO EDIT!


server {
listen 80;
server_name super.test.com;

}

server {
listen *:433 ssl;
ssl_certificate /etc/letsencrypt/live/super.test.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/super.test.com/privkey.pem;
server_name super.test.com;

access_log /var/log/nginx/super.access.log;
error_log /var/log/nginx/super.error.log;

root /srv/super.test.com;
index index.html index.htm index.php;

ssl on;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.2;
ssl_ciphers "EECDH+AES:EDH+AES:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!RC4";
add_header Strict-Transport-Security max-age=15768000;


location ~ [^/]\.php(/|$) {
alias /srv/super.test.com;


fastcgi_index index.php;
include fcgi.conf;
fastcgi_pass unix:/var/run/ajenti-v-php-fcgi-plex-php-fcgi-0.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

}


location / {
alias /srv/super.test.com;




}

}




oh i forgott the Proxy edits ..


location / {

proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;

proxy_redirect off;


# Socket.IO Support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";

}