On 10/07/14 15:58, Hannes Magnusson wrote:
>> domain) and add a simple redirect to the apache vhost config, so requests to
>> > www.php.net will be redirected to php.net
> Its not apache, you need to do it in the frontend nginx I guess.

Main 'server' entry is to PHP.net

Secondary 'server' entry
server {
        server_name www.php.net;
        return 301 $scheme://php.net/$request_uri;
}

The redirections to other subdomians will be a little more complex :)

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to