Java Docs Folder Name changes along with the URL change
September 06, 2013 07:16AM
I have a existing setup for Java docs, my cuurent working URL is http://somedomain/reference/some-addon-sdk/packages

New URL should point to new folder (copy of same existing folder) containing the new Java docs.

The URL to use is http://somedomain/reference/motion-api/package

I want to connect the new URL to that new folder to make it work

i was trying the below redirect in my Nginx,

===============================================================================================
location /reference {
rewrite /reference/(.*)$ /reference/index.php?path=$1 last;
}

location /index.php { allow all; }
location ~* \.(css|js|png)$ { allow all; }
location ~ /var/www/reference { deny all; }

location ~ ^/reference/motion-api/?$ {
rewrite ^ http://somedomain.com/reference/motion-api/packages? permanent;
}

===============================================================================================


http://somedomain.com/reference/motion-api/packages I am getting 403 on the page it didnt work, please suggest me if any thing i want to make
it work

I placed the file into app/webroot
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 176
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