i got this to work pretty good. i just need to make some "improvements/modifications"
this is my current config:
## redirecting www to non-www
server {
listen 80;
server_name
www.mysite.net;
rewrite ^/(.*)
http://mysite.net/$1 permanent;
}
server {
listen 80;
server_name mysite.net;
access_log /var/log/nginx/mysite.net.access.log;
## Default location
location / {
root /srv/vhosts/mysite.net;
index index.html index.htm index.php;
}
## Redirect trafic to https
location ~ ^.*$ {
rewrite ^/(.*)
https://mysite.net$uri permanent;
}
.
.
.
.
.
i need to have
mysite.net/something/ not to be redirected to https.
everything else to be redirected, but not that directory.
is it possible to set it up that way ???