Hello, Could someone please tell me if there is a better way to rewrite my config file. I have 1 domain that has got several subdomain and ssl. From what you can see all the port listening on port 80 uses the same setting and the same apply for the port 443. Thank you very much in advance Fred --- server { listen 80 default; server_name domain1.co.uk www.domain1.co.uk;by The_Apprentice - How to...
Bellow is what I came up with.. server { listen 80; server_name maindomain.com www.maindomain.com; location ~ ^/\~([^/]+)/(.*)$ { location ~ ^/\~wine/(.*)$ { rewrite ^(.*)$ http://wine.maindomain.com$1 permanent; } location ~ ^/\~restaurant/(.*)$ { rewrite ^(.*)$ http://restaurant.maindomain.com$1 permanent; } location ~ ^/\~hotel/(.*)$ {by The_Apprentice - How to...
Hello everyone, I am new to Nginx and this forum so I hope you can help me out. I am curently developping a website made out of multiple site. I have 3 independant wordpress sites that are all link via landing page. The structure is as follow User goes to www.maindomain.com and end up on a landing page. From there, they can access 3 sites (by clicking on image). The links to the imagesby The_Apprentice - How to...
![]() |
![]() |
![]() |
![]() |
|