Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd November 2012, 16:35
Undo Undo is offline
Junior Member
 
Join Date: Nov 2010
Posts: 19
Thanks: 4
Thanked 2 Times in 2 Posts
Question [Solved] Apache2 .htaccess features when using ISPC with nginx

Hi everyone,

I have seen that ISPC can now be installed in "nginx mode", that is to say, using nginx instead of Apache2 as the webserver.

I am wondering, though: Is ISPC providing any way, using the ISPC user interface, to emulate the use of .htaccess features?

I am especially thinking of redirection / mod_rewrite. There are some features in the ISPC user interface when using apache2 that use specific apache stuff for redirecting directories to others, etc. ... Have those features been "ported" to the nginx version of ISPC?



Thanks in advance,
Undo

Last edited by Undo; 4th November 2012 at 14:27.
Reply With Quote
Sponsored Links
  #2  
Old 4th November 2012, 11:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

No. You must translate the .htaccess Apache directives to nginx and add them to the nginx Directives field on the Options of the website in ISPConfig.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
Undo (4th November 2012)
  #3  
Old 4th November 2012, 11:45
Undo Undo is offline
Junior Member
 
Join Date: Nov 2010
Posts: 19
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Hi,

Thanks for answering.

Quote:
Originally Posted by falko View Post
No. You must translate the .htaccess Apache directives to nginx and add them to the nginx Directives field on the Options of the website in ISPConfig.
Ok, but 3 more additional questions :

1. What about the "Subdomain for website" and "Alias for website" features (in the left menu, in the "Sites" tab)? They were basically using special apache2's directives.

2. What about the tab "Redirect" when editing a website (where we had the choice between the redirect flags, etc. ...)

3. If we can enter directives that will be put into Nginx configuration, how does ISPC protects from users that put incorrect directives? I have been using nginx since long now, and if you have, for instance, a syntax error in one of the vhosts (that are, then, included in the global config file) and you restart nginx, then it will just not start. If the user can enter any string as a nginx directive, then at the next nginx restart, the complete web server is down!
Reply With Quote
  #4  
Old 4th November 2012, 14:07
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,451
Thanks: 813
Thanked 5,219 Times in 4,090 Posts
Default

Quote:
1. What about the "Subdomain for website" and "Alias for website" features (in the left menu, in the "Sites" tab)? They were basically using special apache2's directives.
On nginx they use nginx directives automatically, so nothing you have to care about. ispconfig handles this automatically.

Quote:
2. What about the tab "Redirect" when editing a website (where we had the choice between the redirect flags, etc. ...)
This function exists for nginx too, the available options are just different to match the functions in nginx. Install a nginx server any try it out.

Quote:
3. If we can enter directives that will be put into Nginx configuration, how does ISPC protects from users that put incorrect directives?
Neither the nginx nor apache directives field are available for userslike you write above, they are only available to the Administrator of the server and a admin should know what he is doing.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
Undo (4th November 2012)
  #5  
Old 4th November 2012, 14:10
Undo Undo is offline
Junior Member
 
Join Date: Nov 2010
Posts: 19
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by till View Post
Neither the nginx nor apache directives field are available for userslike you write above, they are only available to the Administrator of the server and a admin should know what he is doing.
OK, so that means that the features they had access to using .htaccess files are now only available to the admin and not to the user, am I right?
Reply With Quote
  #6  
Old 4th November 2012, 14:14
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,451
Thanks: 813
Thanked 5,219 Times in 4,090 Posts
Default

Quote:
Originally Posted by Undo View Post
OK, so that means that the features they had access to using .htaccess files are now only available to the admin and not to the user, am I right?
Nginx has no feature like .htaccess for users to set directives themself as the nginx developers found it too slow to search for .htaccess like files in the filesystem for every request. Nginx is a fast but special apache replacements for high speed websites, like with most software, speed improvements go hand in hand with reducing functions. Nginx is not a replacement for apache in enuser scenarios for most internet service providers as it requires more knowledge and the .htaccess filedelivered with most cms systems can not be used,so the system administrator has to do these changes for its clients.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 4th November 2012, 14:26
Undo Undo is offline
Junior Member
 
Join Date: Nov 2010
Posts: 19
Thanks: 4
Thanked 2 Times in 2 Posts
 
Default

I know all that stuff. What I wanted to know is if ISPC is bringing ways to work around that fact or not - from a user point of view. It is not, that's totally fine like that, just need to be clear about it. Thanks.
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
[Plugin] nginx reverse proxy for apache2 MaddinXx Plugins/Modules/Addons 7 26th October 2013 23:10
ISPConfig 3.0.1.4 causes Apache to have too many open files gkovacs Installation/Configuration 29 27th February 2013 08:59
Apache2 to Apache2 + Nginx sumfvm Installation/Configuration 3 13th May 2012 10:31
Apache2 high load lano Server Operation 3 24th December 2011 17:29
yet another apache2 tuning thread Ovidiu Server Operation 65 5th July 2011 15:07


All times are GMT +2. The time now is 14:03.


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