How can client with ISPconfig manage redirection in nginx? Like: http://www.domain.com/test.php ---> http://www.domain.com/index.php http://www.domain.com/test2.php ---> http://www.domain.com/index.php ... something that htaccess is used at apache. nginx Directive can only admin manage. Thank you, Jan
First: rewrite ^/test.php$ /index.php redirect; Second: rewrite ^/test2.php$ /index.php redirect; Didn't test it. But should works...
Well, what i posted above is for .htaccess file, so your clients can use it. It's currently not possible to set redirect from one file to another in ISPConfig.
You can place your rewrite rules in the nginx Directives field on the Options tab of a website in ISPConfig. Of course, the Options tab is accessible only for admin to avoid people placing rubbish in that field (which would prevent nginx from starting...).
Still some confusion thank you falko, that option i have find and is working nicely. I still don't know how client can use htaccess. Accoring to nginx http://wiki.nginx.org/LikeApache-htaccess it does not support htaccess, so that means that somehow i have to specially add some configuration so nginx would read htaccess file. Problem is that client need to manage rewrite himself
That's not possible without admin access to ISPConfig. That's why nginx hosting should be offered as managed hosting only, i.e., the hoster manages rewrites for the client.