sentora / sentora-installers

Provides a central place to store, version and distribute the Sentora installer and upgrade scripts from.
GNU General Public License v3.0
154 stars 148 forks source link

error in httpd.conf, index.html not working in disabled page #82

Closed serweb-labs closed 8 years ago

serweb-labs commented 8 years ago

I'm surprised there are no complaints about this. "Disabled" page, display a "Forbidden" Message. The solution its in httpd.conf, add 'index.html' to DirectoryIndex.

before

<Directory /etc/sentora/panel>
    Options +FollowSymLinks
    DirectoryIndex index.php
    <IfModule mod_php5.c>
        AddType application/x-httpd-php .php
        php_flag magic_quotes_gpc Off
        php_flag track_vars On
        php_flag register_globals Off
        php_admin_value upload_tmp_dir /var/sentora/temp
    </IfModule>
</Directory>

after

<Directory /etc/sentora/panel>
    Options +FollowSymLinks
    DirectoryIndex index.html index.php
    <IfModule mod_php5.c>
        AddType application/x-httpd-php .php
        php_flag magic_quotes_gpc Off
        php_flag track_vars On
        php_flag register_globals Off
        php_admin_value upload_tmp_dir /var/sentora/temp
    </IfModule>
</Directory>

Sorry for my bad english.

MBlagui commented 8 years ago

Nope there is defaults already in apache config otherwise no one would ever get an index.php by default.

Not an issue.

M B