Replacing apache with nginx
Stephen Nelson-Smith
sanelson at gmail.com
Tue Sep 30 23:41:03 MSD 2008
Hi,
Thanks for your help!
> unique location quite enough:
>
> server {
> listen 80;
> server_name example.com;
> location /xml {
> rewrite ^ https://example.com$request_uri permanent;
> }
> }
Please would you explain how this works - I can't see how this
redirects -everything- *apart from* http://www.example.com/xml, which
should be allowed to proceed as http only.
S.
More information about the nginx
mailing list