Apache 1.3.12 problem s otevrenim *-.html v /home/user

J.Paryzek paryzek na petrof.com
Sobota Červen 17 10:05:14 CEST 2000


Dobry den.

Nainstaloval jsem APACHE 1.3.12 na RH 6.0 pod root
Na temze Pc ma zrizen ucet uzivatele test (/home/test).
Je zalozen /home/test/public_html/ a v nem index.html
----------------------------------------------------------------------------
-------------
Prihlasim se jako user test pres X window spustim Netscape
a zadam http://localhost/ ... objevi se uvodni stranka pro Apache
Pokud zadam http://localhost/~test vypise se hlaska
<< The requested URL /~test was not found on this server.>>
----------------------------------------------------------------------------
-------------
V UserDir mam public_html.
Pristupova prava /home/test/public_html nastavaena na 777
----------------------------------------------------------------------------
-------------
Neni mi jasne jak psat cestu v UserDir
Jak se dostat na index.html v /home/user/public_html
Dekuji za radu.

Prikladam cast opisu httpd.conf
****************************************************************************
User nobody
Group nobody
#
ServerAdmin paryzek na pardal
#
ServerName pardal
#
DocumentRoot "/dlf1/apache/htdocs"
#
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory "/dlf1/apache/htdocs">

#
    Options Indexes FollowSymLinks MultiViews
#
    AllowOverride None
#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all
</Directory>
#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS PROPFIND>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS PROPFIND>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
    DirectoryIndex index.html
</IfModule>

#
# AccessFileName: The name of the file to look for in each directory
# for access control information.
#
AccessFileName .htaccess

#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

#
# CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
# document that was negotiated on the basis of content. This asks proxy
# servers not to cache the document. Uncommenting the following line
disables
# this behavior, and proxies will be allowed to cache the documents.
#
#CacheNegotiatedDocs


#
UseCanonicalName On

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
<IfModule mod_mime.c>
    TypesConfig /dlf1/apache/conf/mime.types
</IfModule>
..................
...............
*******************************************************************






Další informace o konferenci Linux