1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Plesk 11 with nginx and htaccess?

Discussion in 'Plesk 11.x for Linux' started by Azurel, Jan 30, 2013.

  1. Azurel

    Azurel Regular Pleskian

    21
    57%
    Joined:
    Jan 29, 2013
    Messages:
    431
    Likes Received:
    1
    Location:
    Germany
    Hi.

    On my actual server I working without Plesk and without nginx. Now I want move to Plesk with nginx.

    I use kohana framework and forums that need htaccess files. Must I insert the content of htaccess files in apache2 httpd.conf or in nginx? I would not have single htaccess files anymore.
     
  2. Sergey L

    Sergey L Golden Pleskian Staff Member

    32
    43%
    Joined:
    Aug 10, 2006
    Messages:
    1,195
    Likes Received:
    30
    Hi, as Nginx in Plesk acts as optimizing proxy in front of Apache, you can keep using .htaccess files for you application. Apache will interpret them as usual. If you need to move the directives into Apache configs use conf/vhost.conf file - more information is available at How to customize Apache vhost

    .htaccess directives don't need to go into nginx config, as nginx won't recognize them anyway. It is configured in quite a different manner.
     
  3. tkalfaoglu

    tkalfaoglu Regular Pleskian

    30
    68%
    Joined:
    Oct 6, 2005
    Messages:
    290
    Likes Received:
    1
    there is an addon to PLESK that automatically converts .htaccess to nginx format. I'm trying it now.. it seems to work..
     
Loading...