
3rd November 2012, 16:35
|
|
Junior Member
|
|
Join Date: Nov 2010
Posts: 19
Thanks: 4
Thanked 2 Times in 2 Posts
|
|
[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.
|

4th November 2012, 11:38
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
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.
|
|
The Following User Says Thank You to falko For This Useful Post:
|
Undo (4th November 2012)
|

4th November 2012, 11:45
|
|
Junior Member
|
|
Join Date: Nov 2010
Posts: 19
Thanks: 4
Thanked 2 Times in 2 Posts
|
|
Hi,
Thanks for answering.
Quote:
Originally Posted by falko
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!
|

4th November 2012, 14:07
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
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.
|
|
The Following User Says Thank You to till For This Useful Post:
|
Undo (4th November 2012)
|

4th November 2012, 14:10
|
|
Junior Member
|
|
Join Date: Nov 2010
Posts: 19
Thanks: 4
Thanked 2 Times in 2 Posts
|
|
Quote:
Originally Posted by till
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?
|

4th November 2012, 14:14
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Quote:
Originally Posted by Undo
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.
|

4th November 2012, 14:26
|
|
Junior Member
|
|
Join Date: Nov 2010
Posts: 19
Thanks: 4
Thanked 2 Times in 2 Posts
|
|
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.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 18:34.
|
|
Recent comments
17 hours 13 min ago
22 hours 17 min ago
1 day 2 hours ago
1 day 4 hours ago
1 day 18 hours ago
1 day 18 hours ago
1 day 23 hours ago
2 days 6 hours ago
2 days 7 hours ago
2 days 8 hours ago