Welcome! Log In Create A New Profile

Advanced

Check Rewrite and Update to /home?

May 26, 2012 06:50PM
Hello Gents,

Right now, we catch all http://www.domain.com requests and do a simple rewrite to https://www.domain.com. I would like to update this re-write to point to https://www.domain.com/home.

Here is my server section for the non-SSL (http) server:

server {
listen 192.168.1.1:80;
server_name www.domain.com;
location / {
add_header X-Frame-Options SAMEORIGIN;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_next_upstream error timeout invalid_header;
rewrite ^ https://$server_name$request_uri? permanent;
}
}

How should I modify the rewrite statement to point to /home? My Google-Fu is failing me.
Subject Author Posted

Check Rewrite and Update to /home?

mevans336 May 26, 2012 06:50PM

Re: Check Rewrite and Update to /home?

Javi Lavandeira May 26, 2012 07:30PM

Re: Check Rewrite and Update to /home?

mevans336 May 29, 2012 09:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 244
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready