|
Home > Archive > Netware Webserver > June 2005 > Antw: Re: Wrong startpage
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Antw: Re: Wrong startpage
|
|
| Dirk Emmermacher 2005-06-14, 2:45 am |
| Hello Timothy.
Thanhs for your answer .
Here is my httd.conf file:
# TABLE: (0)
# NWConfVersion = 28
#
#
ServerRoot "SYS:/APACHE2"
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
ThreadStackSize 65536
StartThreads 25
MinSpareThreads 10
MaxSpareThreads 50
MaxThreads 1024
MaxRequestsPerChild 0
MaxMemFree 100
#Listen 12.34.56.78:80
Listen 80
SecureListen 443 "SSL CertificateDNS"
#
ServerName fs1.intranet.ntb
#
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
#LoadModule auth_anon_module modules/authanon.nlm
#LoadModule auth_dbm_module modules/authdbm.nlm
#LoadModule auth_digest_module modules/digest.nlm
#LoadModule cern_meta_module modules/cernmeta.nlm
#LoadModule dav_module modules/mod_dav.nlm
#LoadModule dav_fs_module modules/moddavfs.nlm
#LoadModule expires_module modules/expires.nlm
#LoadModule file_cache_module modules/filecach.nlm
#LoadModule headers_module modules/headers.nlm
#LoadModule info_module modules/info.nlm
#LoadModule mime_magic_module modules/mimemagi.nlm
#LoadModule proxy_module modules/proxy.nlm
#LoadModule proxy_connect_module modules/proxycon.nlm
#LoadModule proxy_http_module modules/proxyhtp.nlm
#LoadModule proxy_ftp_module modules/proxyftp.nlm
#LoadModule rewrite_module modules/rewrite.nlm
#LoadModule speling_module modules/speling.nlm
#LoadModule status_module modules/status.nlm
#LoadModule unique_id_module modules/uniqueid.nlm
#LoadModule usertrack_module modules/usertrk.nlm
#LoadModule vhost_alias_module modules/vhost.nlm
#LoadModule edir_module modules/mod_edir.nlm
#
# UseCanonicalName: Determines how Apache constructs self-referencing
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client. When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off
#
#
# DocumentRoot "SYS:/APACHE2/htdocs"
#
AccessFileName .htaccess
TypesConfig conf/mime.types
#
DefaultType text/plain
#
#
HostnameLookups Off
ErrorLog "|SYS:/APACHE2/bin/rotlogs.nlm sys:/apache2/logs/error_log 5M"
#
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog "|sys:/apache2/bin/rotlogs.nlm sys:/apache2/logs/access_log 5M" common
ServerSignature On
Alias /icons/ "SYS:/APACHE2/icons/"
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "SYS:/APACHE2/manual$1"
Alias /error/ "SYS:/APACHE2/error/"
#
ScriptAlias /cgi-bin/ "SYS:/APACHE2/cgi-bin/"
#
IndexOptions FancyIndexing VersionSort
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
#
DefaultIcon /icons/unknown.gif
#
ReadmeName README.html
HeaderName HEADER.html
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
#
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
#
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
#
ForceLanguagePriority Prefer Fallback
#
AddDefaultCharset ISO-8859-1
#
AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5
# For russian, more than one charset is used (depends on client, mostly):
AddCharset WINDOWS-1251 .cp-1251 .win-1251 .ru
AddCharset CP866 .cp866
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8 .utf8
#
AddCharset GB2312 .gb2312 .gb
AddCharset utf-7 .utf7
AddCharset utf-8 .utf8
AddCharset big5 .big5 .b5
AddCharset EUC-TW .euc-tw
AddCharset EUC-JP .euc-jp
AddCharset EUC-KR .euc-kr
AddCharset shift_jis .sjis
#
AddType application/x-tar .tgz
AddType image/x-icon .ico
#
#
#AddHandler send-as-is asis
#
#AddHandler imap-file map
#
#
AddHandler type-map var
#
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#
ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
ErrorDocument 410 /error/HTTP_GONE.html.var
ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
# The following line instructs Apache to load the jk module
# Include the welcome page configuration
Include "SYS:/adminsrv/webapps/welcome/web-inf/welcome-apache.conf"
# This is to work around a bug in IE that doesn't handle the server shutting
# down keepalive requests on secure sockets
Include sys:/tomcat/4/conf/tomcatdocs-apache.conf
Include sys:/tomcat/4/conf/tomcatadmin-apache.conf
Include sys:/tomcat/4/conf/tomcatmanager-apache.conf
# NetWare iManager Config
Include sys:/tomcat/4/conf/nps-Apache.conf
# SOURCE OBJECT: cn=FS1,cn=NetWare Group,cn=Apache Group,o=han
DocumentRoot DATA:/Intranet
DirectoryIndex index.html index.html.var Index.html
ServerAdmin Dirk.Emmermacher@ntb-infoline.de
# TABLE: (1)
LoadModule ldap_module modules/utilldap.nlm
LoadModule auth_ldap_module modules/authldap.nlm
LoadModule jk_module modules/mod_jk.nlm
# TABLE: (2)
<Directory />
#
#
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "SYS:/APACHE2/htdocs">
#
# This should be changed to whatever you set DocumentRoot to.
#
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Files ~ "^\.ht">
#
# This files block prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
Order allow,deny
Deny from all
</Files>
<Directory "SYS:/APACHE2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "SYS:/APACHE2/manual">
#
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
<Files *.html>
SetHandler type-map
</Files>
SetEnvIf Request_URI ^/manual/de/ prefer-language=de
SetEnvIf Request_URI ^/manual/en/ prefer-language=en
SetEnvIf Request_URI ^/manual/fr/ prefer-language=fr
SetEnvIf Request_URI ^/manual/ja/ prefer-language=ja
SetEnvIf Request_URI ^/manual/ko/ prefer-language=ko
SetEnvIf Request_URI ^/manual/ru/ prefer-language=ru
RedirectMatch 301 ^/manual(?:/(de|en|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>
<Directory "SYS:/APACHE2/cgi-bin">
#
# "SYS:/APACHE2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
<Directory "SYS:/APACHE2/error">
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback
</Directory>
# SOURCE OBJECT: cn=Intranet-Directory,cn=FS1,cn=NetWare Group,cn=Apache Group,o=han
<Directory DATA:\Intranet>
Options Indexes Multiviews
AllowOverride None
Order deny,allow
Allow from all
</Directory>
# TABLE: (3)
<VirtualHost _default_:443>
BrowserMatch "MSIE" nokeepalive downgrade-1.0 force-response-1.0
</VirtualHost>
# TABLE: (4)
<IfModule mod_jk.c>
JkWorkersFile "sys:/adminsrv/conf/mod_jk/workers.properties"
JkLogFile "logs/mod_jk.log"
JkLogLevel error
</IfModule>
# TABLE: (5)
<IfModule mod_edir.c>
eDirServer fs1.intranet.ntb
hDirUserSubDirectory public_html
RemoteDirEnabled off
</IfModule>
# TABLE: (6)
<IfModule mod_auth_ldap.c>
#
#This directive specifies the file that contains all of the character set information
#that auth_ldap needs to do the charset conversions
#
AuthLDAPCharsetConfig conf/charset.conv
</IfModule>
# TABLE: (7)
<IfModule mod_mime_magic.c>
#
MIMEMagicFile conf/magic
</IfModule>
So that's my http.conf. Only the startpage is not right. It is possible to get other directories direct.
I wonder yesterday about one thing. I stopped Apache,Webadmin and tomcat to recover it from tape.
Before recoering I dropped the dirs apache2, adminsrv and tomcat. After some seconds there was the directory
apache2 created by another process.
Best regards.
Dirk Emmermacher
| |
| Timothy Leerhoff 2005-06-15, 2:45 am |
| Looks like you are missing the following line:
DocumentRoot "SYS:/APACHE2/htdocs"
--
Timothy Leerhoff
Novell Support Forum Volunteer Sysop
The future comes slowly, the present flies and the past stands still
forever
| |
| Dirk Emmermacher 2005-06-15, 2:45 am |
| Hello Timothy.
> Looks like you are missing the following line:
>
> DocumentRoot "SYS:/APACHE2/htdocs"
No, after some playing around I wonder about the
redirection of the Index.Html.
I take a look into this file.
The webmanager.html modifies the Index.html.
The original sourcecode was completly exchanged
by a redirection to /welcome.
Here is the sourcecode of the modified page:
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<script language="JavaScript">
<!--
var sThisURL = unescape('/welcome/index.html');
function doRedirect()
{
actualRedirect();
}
function actualRedirect()
{
setTimeout("top.location.href = sThisURL", 500 );
}
// -->
</script>
<script language="JavaScript1.1">
<!--
function actualRedirect()
{
top.location.replace(sThisURL);
}
if ("MSIE" == navigator.appName )
doRedirect();
// -->
</script>
</head>
<meta target="top" content="1;url=/welcome/index.html" http-equiv="refresh">
<body marginwidth="0" leftmargin="0" bgcolor="#efeee9" topmargin="0" marginheight="0" onLoad="doRedirect()"></body>
</html>
So I say thank you, for your help.
Best regards from Hannover, Germany.
Dirk Emmermacher
| |
| Timothy Leerhoff 2005-06-20, 8:45 pm |
| Glad to be a small part in the fix.
--
Timothy Leerhoff
Novell Support Forum Volunteer Sysop
The future comes slowly, the present flies and the past stands still
forever
|
|
|
|
|