Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th March 2013, 21:00
pchott pchott is offline
Junior Member
 
Join Date: Feb 2013
Posts: 11
Thanks: 2
Thanked 1 Time in 1 Post
Question Client nginx redirection configuration

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
Reply With Quote
Sponsored Links
  #2  
Old 18th March 2013, 21:13
almere almere is offline
ISPConfig Developer
 
Join Date: Nov 2012
Location: Netherlands, Rotterdam
Posts: 231
Thanks: 20
Thanked 37 Times in 32 Posts
Send a message via Skype™ to almere
Default

Quote:
Originally Posted by pchott View Post
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...
Reply With Quote
  #3  
Old 18th March 2013, 21:18
pchott pchott is offline
Junior Member
 
Join Date: Feb 2013
Posts: 11
Thanks: 2
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by almere View Post
First: rewrite ^/test.php$ /index.php redirect;

Second: rewrite ^/test2.php$ /index.php redirect;

Didn't test it. But should works...
Ok, that syntax but how can client write that himself over ISPconfig or someway else?
Reply With Quote
  #4  
Old 18th March 2013, 21:21
almere almere is offline
ISPConfig Developer
 
Join Date: Nov 2012
Location: Netherlands, Rotterdam
Posts: 231
Thanks: 20
Thanked 37 Times in 32 Posts
Send a message via Skype™ to almere
Default

Quote:
Originally Posted by pchott View Post
Ok, that syntax but how can client write that himself over ISPconfig or someway else?
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.
Reply With Quote
The Following User Says Thank You to almere For This Useful Post:
pchott (18th March 2013)
  #5  
Old 18th March 2013, 21:29
pchott pchott is offline
Junior Member
 
Join Date: Feb 2013
Posts: 11
Thanks: 2
Thanked 1 Time in 1 Post
Smile

Quote:
Originally Posted by almere View Post
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.
Stupid me I thought that nginx does not use htaccess file.
Reply With Quote
  #6  
Old 18th March 2013, 21:30
almere almere is offline
ISPConfig Developer
 
Join Date: Nov 2012
Location: Netherlands, Rotterdam
Posts: 231
Thanks: 20
Thanked 37 Times in 32 Posts
Send a message via Skype™ to almere
Default

Of course it does
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php-fpm configuration on nginx ijujym Installation/Configuration 3 14th December 2012 18:14
Strange error: client denied by server configuration manarak General 2 10th June 2012 11:55
magento installation and client denied by server configuration error pawan Installation/Configuration 3 4th April 2012 00:34
Being Spammed/Hacked/Probed not sure PLEASE HELP! kresser General 10 29th October 2010 17:25
email client configuration davidg General 3 22nd August 2005 16:40


All times are GMT +2. The time now is 10:59.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.