Re: Re: cross origin problem for fonts and other static assets on php.net
| From: | Lester Caine | Date: | Thu, 10 Jul 2014 15:17:50 +0000 |
| Subject: | Re: Re: cross origin problem for fonts and other static assets on php.net | ||
| References: | 1 2 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-19429@lists.php.net to get a copy of this message | ||
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