logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: .htaccess should allow some directives
Author
gentlemedia



Joined: 21 Jul 2017
Posts: 2
Location: Rhodes, Greece

PostPosted: Fri 21 Jul '17 16:56    Post subject: .htaccess should allow some directives Reply with quote

Hi,

I'm new here, because I'm new to configuring a VPS. The VPS was required for CS-Cart Multi-vendor that gets installed on it.

The OS (centOs) has Apache 2.4 installed on it and this came with WHM/cPanel. According to the CS-Cart server requirements I have to do this:

Quote:
the .htaccess file should allow the following directives
:

Which are:
    DirectoryIndex
    Deny
    Allow
    Options
    Order
    AddHandler
    RewriteEngine
    RewriteBase
    RewriteCond
    RewriteRule


http://docs.cs-cart.com/4.6.x/install/system_requirements.html

I'm totally new to this and have added the following to a Apache config file:
Code:
<Directory /home/hennepplaza/public_html/>
    Options FollowSymLinks MultiViews Includes Indexes
    AllowOverride All
    Require all granted
</Directory>


Is this enough or do I have to add more rules/blocks to the config file?

Thanks in advance !

Ralph
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Sun 23 Jul '17 16:59    Post subject: Reply with quote

AllowOverride All enables all settings for .htaccess files.
Short answer: yes it is enough

Options Includes is only needed for SSI pages.
Indexes and MuliViews only if you need to display the content of folders in the webbrowser
Back to top
gentlemedia



Joined: 21 Jul 2017
Posts: 2
Location: Rhodes, Greece

PostPosted: Mon 24 Jul '17 1:11    Post subject: Reply with quote

That's good to hear Smile Thank you, James!
Back to top


Reply to topic   Topic: .htaccess should allow some directives View previous topic :: View next topic
Post new topic   Forum Index -> Apache