• This forum has a zero tolerance policy regarding spam. If you register here to publish advertising, your user account will be deleted without further questions.

DirectoryIndex @ VHCS

üüchh

Registered User
Hallo!
Hab mir heute auf meinen Vserver Vhcs per aptitude installiert, nun habe ich folgendes Problem das DirectoryIndex nur für index.html und index.php eingestellt, für .htm würd ichs brauchn! 1.kenn mich nich in dem Wirwarr der ganzen CFG's aus und 2.hab ich auch schon einige editierte, geholfn hat dies jedoch nichts...!
Thx schon mal :)
mfg

Bevor ichs vergiss, bitte keiner der schreibt ich soll doch in die httpd.conf, DirectoryIndex index.php index.htm index.html einfügen...
 
Last edited by a moderator:
Bevor ichs vergiss, bitte keiner der schreibt ich soll doch in die httpd.conf, DirectoryIndex index.php index.htm index.html einfügen...

warum nicht ?? das ist die einzige möglichkeit die ich kenne ?!
 
argh :) Hast es falsch verstanden... Ist klar das man das SO machn muss, aber ich weiß weder in WELCHER (vhcs hat viele verschiedene) noch genau WO in der richtigen config...
 
/etc/apache2/sites-available/vhcs2.conf

Code:
# httpd Data BEGIN.

#
# Web traffic accounting.
#

LogFormat "%B" traff

#
# GUI Location.
#

Alias /vhcs2 /var/www/vhcs2/gui
<Directory /var/www/vhcs2/gui>
    AllowOverride none
    Options MultiViews IncludesNoExec FollowSymLinks
    ErrorDocument 404 /vhcs2/errordocs/index.php
    DirectoryIndex index.html index.php index.htm
</Directory>

<Directory /var/www/vhcs2/gui/tools/filemanager>
    php_flag register_globals On
    php_admin_value open_basedir "/var/www/vhcs2/gui/tools/filemanager/:/tmp/:/usr/share/php/"
</Directory>

Alias /vhcs_images /var/www/vhcs2/gui/images
<Directory /var/www/vhcs2/gui/images>

    AllowOverride none
    Options MultiViews IncludesNoExec FollowSymLinks
</Directory>

#
# Default GUI.
#

<VirtualHost _default_:*>

    DocumentRoot /var/www/vhcs2/gui

    <Directory /var/www/vhcs2/gui>
        Options Indexes Includes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>

# httpd [xx.xx.xx.xx ] virtual host entry BEGIN.

NameVirtualHost xx.xx.xx.xx

# httpd [domain.de] dmn group entry BEGIN.

# httpd [{SUB_NAME}] sub entry BEGIN.
# httpd [{SUB_NAME}] sub entry END.

# httpd [domain.de] dmn entry BEGIN.
<VirtualHost domain.de>

    #
    #User vu2001
    #Group vu2001
    #

    #
    #SuexecUserGroup vu2001 vu2001
    #

    ServerAdmin     [email]root@domain.de[/email]
    DocumentRoot    /var/www/virtual/domain.de/htdocs

   ServerName      domain.de
    ServerAlias     [url]www.domain.de[/url] domain.de

    ErrorLog        /var/log/apache2/users/domain.de-error.log
    TransferLog     /var/log/apache2/users/domain.de-access.log

    CustomLog       /var/log/apache2/domain.de-traf.log traff
    CustomLog       /var/log/apache2/domain.de-combined.log combined

    Alias /errors   /var/www/virtual/domain.de/errors/

    ErrorDocument 401 /errors/401/index.php
    ErrorDocument 403 /errors/403/index.php
    ErrorDocument 404 /errors/404/index.php
    ErrorDocument 500 /errors/500/index.php

    # httpd dmn entry cgi support BEGIN.
    ScriptAlias /cgi-bin/ /var/www/virtual/domain.de/cgi-bin/
    <Directory /var/www/virtual/domain.de/cgi-bin>
        AllowOverride None
        #Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
    # httpd dmn entry cgi support END.

    <Directory /var/www/vhcs2/gui>
        php_admin_value open_basedir "/var/www/vhcs2/gui/:/etc/vhcs2/:/proc/:/var/www/virtual/:/tmp/"
    </Directory>

    # httpd dmn entry PHP2 support BEGIN.
    php_admin_value open_basedir "/var/www/virtual/redox-gaming.de/:/usr/share/php/:/tmp/"
    # httpd dmn entry PHP2 support END.

    <Directory /var/www/virtual/redox-gaming.de/htdocs>
        # httpd dmn entry PHP support BEGIN.
        # httpd dmn entry PHP support END.
        Options Indexes Includes FollowSymLinks MultiViews
        AllowOverride AuthConfig
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>
# httpd [domain.de] dmn entry END.

# httpd [domain.de] dmn group entry END.

/etc/apache2/sites-enabled/vhcs2.conf
,
/etc/apache2/sites-available/vhcs2.conf
und
/etc/vhcs2/apache/working/vhcs2.conf

haben den anschein nach den gleichen Inhalt!
(Wir ihr seht hab ich ganz oben schon index.htm eingefügt, gefholfen hats nix!)


/etc/vhcs2/vhcs2.conf
Code:
# apache settings
APACHE_CMD=/usr/sbin/apache2
APACHE_NAME=apache2
APACHE_RESTART_TRY=3
APACHE_WWW_DIR=/var/www/virtual
APACHE_LOG_DIR=/var/log/apache2
APACHE_USERS_LOG_DIR=/var/log/apache2/users
APACHE_BACKUP_LOG_DIR=/var/log/apache2/backup
APACHE_CONF_FILE=/etc/apache2/sites-available/vhcs2.conf
APACHE_SUEXEC_MIN_UID=2000
APACHE_SUEXEC_MIN_GID=2000
APACHE_SUEXEC_USER_PREF=vu
APACHE_USER=www-data
APACHE_GROUP=www-data
 
Last edited by a moderator:
vi /etc/apache2/httpd.conf

# This is here for backwards compatability reasons and to support
# installing 3rd party modules directly via apxs2, rather than
# through the /etc/apache2/mods-{available,enabled} mechanism.
#
#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so

--> einfach da vllt mal das mit den DirectoryIndex reinschreiben?!
 
Moin

Nein, wenn ich mein server neuaufgestzt habe und vhcs wieder drauf habe werde ich mal nachschauen.
 
Dann sag auch bitte woran es lag, könnte andere User Helfen.
 
Hab einfach (vllt nicht das effektivste und einfachste Mittel)
zu jedem User in der vhcs2.conf das DirectoryIndex index.html index.php und index.htm eingefügt...!
mfg
PS gibt noch andre Möglichkeit wie z.B. einen Softlink aber da ich mich nich so doll damit auskenn lass ichs ma^^
 
Da VHCS anscheinend den DirectoryIndex nicht selber pro vhost setzt, sollte es reichen diesen einmal Global zu setzten.

huschi.
 
Back
Top