Hey everyone,
could someone help me here with my pebkac issue? 😃
Basically i have 2 folders in /var/www/html one for the subdomain and one for the main domain.
When accesing forum.example.com it leads to the content of main domain? I have no clue whats going on.
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
add_header X-Frame-Options SAMEORIGIN;
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
server {
listen 80 default_server;
listen [::]:80;
access_log /var/www/logs/x.net.access.loxxxxg;
error_log /var/www/logs/xxxxx.net.error.log;
server_name forum.xxxxx.net www.forum.xxxxx.net;
root /var/www/html/forum.xxxxxx.net;
location / {
index index.php index.html;
include /var/www/html/forum.xxxx.net/.nginx.conf;
}
}
Thats my subdomain config.
Kind regards