skip to Main Content

Adding Server Block on Nginx for WildCard domains

I have 2 domains as D1 "abc.com" and D2 "def.com". I have configured D1 as following sever block on Nginx. server { listen 80; server_name *.abc.com,abc.com; root /var/www/abc/public; add_header X-Frame-Options "SAMEORIGIN"; add_header X-Content-Type-Options "nosniff"; index index.php; charset utf-8; location /…

VIEW QUESTION
Back To Top
Search