Re: Issue with DirectoryIndex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I completely agree that it is most likely an issue with my config.  I am
pretty new to Apache.  Below is the complete config. I know I probably did
not do some things correctly, but it is working good for except for this one
thing that has just come up.


ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2"


Listen 168.127.1.19:8081


LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_alias_module modules/mod_authn_alias.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule charset_lite_module modules/mod_charset_lite.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule dav_lock_module modules/mod_dav_lock.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
#LoadModule disk_cache_module modules/mod_disk_cache.so
#LoadModule dumpio_module modules/mod_dumpio.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule ldap_module modules/mod_ldap.so
#LoadModule logio_module modules/mod_logio.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule ssl_module modules/mod_ssl.so
#LoadModule status_module modules/mod_status.so
#LoadModule substitute_module modules/mod_substitute.so
#LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule version_module modules/mod_version.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule weblogic_module modules/mod_wl_22.so

<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>

User daemon
Group daemon

</IfModule>
</IfModule>

<IfModule mod_wl_22.so>
	WebLogicCluster 168.127.136.85:9060
	KeepAliveEnabled ON
	KeepAliveSecs 30
	FileCaching OFF
</IfModule>

<Location /PartnersQueryService>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.136.85:9060
</Location>

<Location /Registration>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.136.85:9060
</Location>

<Location /TechPubs>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.136.85:9060
	FileCaching OFF
</Location>

<Location /FNCOrderStatus>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.136.85:9060
</Location>

<Location /training>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.136.85:9060
</Location>

<Location /swreg>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.133.168:9040,168.127.133.167:9040
</Location>

<Location /services>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.133.168:9040,168.127.133.167:9040
</Location>

<Location /purchasing>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.136.85:9060
</Location>

<Location /PromoAdmin>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.136.85:9060
</Location>

<Location /Search>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.136.85:9060
</Location>

<Location /Portal>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.136.85:9060
</Location>

<Location /PartnersAdmin>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.133.168:9040,168.127.133.167:9040
</Location>

<Location /FncUtilsWeb>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.136.85:9060
</Location>

<Location /FncMailer>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.136.85:9060
</Location>

<Location /RmaRequest>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.136.85:9060
</Location>

<Location /FileRefWeb>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.136.85:9060
</Location>

<Location /proposals>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.136.85:9060
	Debug OFF
#	WLLogFile c:/partner3-wl-proxy.log
        DebugConfigInfo OFF
	KeepAliveEnabled ON
	KeepAliveSecs 30
	FileCaching OFF
</Location>

<Location /SwUpgrade>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.136.85:9060
</Location>

<Location /SalesForceSSOWeb>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.136.85:9060
</Location>

<Location /CSRWeb>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.133.168:9040,168.127.133.167:9040
</Location>

<Location /Reseller>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.133.168:9040,168.127.133.167:9040
</Location>

<Location /NSOSKEYGENWeb>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.133.168:9040,168.127.133.167:9040
</Location>

<Location /netsmart2000keygenWeb>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.133.168:9040,168.127.133.167:9040
</Location>

<Location /PartnersSearch>
	SetHandler  weblogic-handler
	WebLogicCluster 168.127.133.168:9040,168.127.133.167:9040
</Location>

<Location /tpg>
	AuthType basic
	AuthBasicProvider ldap
	AuthName "Partners"
	SetHandler test
	Order deny,allow
	Deny from all
	Allow from all
#	AuthLDAPURL ldap://boris.fnc.net.local:389/o=directory1.fnc.fujitsu.com
	AuthLDAPURL
ldap://rchdmzldapd1.fnc.fujitsu.com:389/o=directory1.fnc.fujitsu.com
	AuthzLDAPAuthoritative off
	Require valid-user
</Location>

<Location /SoftwareDownload>
	AuthType basic
	AuthBasicProvider ldap
	AuthName "Partners"
	SetHandler test
	Order deny,allow
	Deny from all
	Allow from all
#	AuthLDAPURL ldap://boris.fnc.net.local:389/o=directory1.fnc.fujitsu.com
	AuthLDAPURL
ldap://rchdmzldapd1.fnc.fujitsu.com:389/o=directory1.fnc.fujitsu.com
	AuthzLDAPAuthoritative off
	Require valid-user
</Location>

<Location /focis>
	AuthType basic
	AuthBasicProvider ldap
	AuthName "Partners"
	SetHandler test
	Order deny,allow
	Deny from all
	Allow from all
#	AuthLDAPURL ldap://boris.fnc.net.local:389/o=directory1.fnc.fujitsu.com
	AuthLDAPURL
ldap://rchdmzldapd1.fnc.fujitsu.com:389/o=directory1.fnc.fujitsu.com
	AuthzLDAPAuthoritative off
	Require valid-user
</Location>



<VirtualHost 168.127.1.19:8081>
    ServerAdmin admin@localhost
    DocumentRoot "D:/docs"
    ServerName 168.127.1.19:8081
    ServerAlias 168.127.1.19:8081
#    UseCanonicalName off
    ErrorLog "logs/partners3/error.log"
    CustomLog "logs/partners3/access.log" common
    SetEnvIf Remote_Addr "168\.127\.1\.59" dontlog
    RewriteEngine On
    RewriteOptions Inherit
    RewriteCond %{REQUEST_METHOD} ^TRACE
    ReWriteRule .* - [F]
</VirtualHost>


ServerAdmin admin@localhost


ServerName 168.127.1.19:8081


DocumentRoot "D:/docs"


<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>


<Directory "D:/docs">
    
    Options Indexes FollowSymLinks

    
    AllowOverride None

    
    Order allow,deny
    Allow from all

</Directory>


<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>


<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>


LogLevel warn

<IfModule log_config_module>
    
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
    LogFormat "%{clientip}i %h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    
    CustomLog "logs/access.log" common

    
</IfModule>

<IfModule alias_module>
    
    ScriptAlias /cgi-bin/ "C:/Program Files/Apache Software
Foundation/Apache2.2/cgi-bin/"

</IfModule>

<IfModule cgid_module>
    #
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #
    #Scriptsock logs/cgisock
</IfModule>


<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>


DefaultType text/plain

<IfModule mime_module>
    
    TypesConfig conf/mime.types

    
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the
server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
</IfModule>


<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>


John

awarnier wrote:
> 
> What version of Apache are you using, on which platform ?
> Can you give us you whole configuration file ? What you are telling us 
> about your configuration, and the URLs which you mentioned in your first 
> post, do not match.
> About this :
> <VirtualHost x.x.x.x:8081>
> Are you sure that you are really using name-based virtual hosts, or is 
> this an address-based virtual host scheme ?
> In any case, the following lines are probably incorrect :
>      ServerName x.x.x.x:8081
>      ServerAlias x.x.x.x:8081
> ServerAlias should not include a port number.  ServerName can include 
> one, but only if you really know what you are doing.
> What do your "Listen" and "NameVirtualHost" directives look like ?
> 
> The reason for all the questions and remarks above is : under Apache 
> 2.x, there are hundreds or thousands of systems where the DirectoryIndex 
> works exactly as expected.  So the problem in all likelihood is not with 
> Apache, but with something in your configuration which prevents it from 
> working.  But the information you provide seems incomplete or 
> inaccurate, so it is difficult to help you.
> 
> 
> jwberger wrote:
>> How do I check to see if it is inheriting.  Also, I tried adding the
>> DirectoryIndex in the VirtualHost section, but it still did not work.
>> 
>> John
>> 
>> 
>> awarnier wrote:
>>> With the configuration structure show  below, your DirectoryIndex 
>>> statement does not apply to the VirtualHost section.  It applies to the 
>>> "main" configuration.  When you use name-based VirtualHost sections, 
>>> whetever is outside of them normally only specifies defaults, overridden 
>>> (or not) by the directives in each VirtualHost section.
>>> However, not all directives are automatically "inherited" by VirtualHost 
>>> sections. You should check if this one is.
>>>
>>>
>>>
>>> jwberger wrote:
>>>
>>>> Here is the some of the information from my conf file.
>>>>
>>>> <VirtualHost x.x.x.x:8081>
>>>>     ServerAdmin admin@localhost
>>>>     DocumentRoot "D:/docs"
>>>>     ServerName x.x.x.x:8081
>>>>     ServerAlias x.x.x.x:8081
>>>>     ErrorLog "logs/partners3/error.log"
>>>>     CustomLog "logs/partners3/access.log" common
>>>>     SetEnvIf Remote_Addr "x\.x\.x\.x" dontlog
>>>>     RewriteEngine On
>>>>     RewriteCond %{REQUEST_METHOD} ^TRACE
>>>>     ReWriteRule .* - [F]
>>>> </VirtualHost>
>>>>
>>>>
>>>> ServerAdmin admin@localhost
>>>>
>>>>
>>>> ServerName x.x.x.x:8081
>>>>
>>>> DocumentRoot "D:/docs"
>>>>
>>>>
>>>> <Directory />
>>>>     Options FollowSymLinks
>>>>     AllowOverride None
>>>>     Order deny,allow
>>>>     Deny from all
>>>> </Directory>
>>>>
>>>>
>>>> <Directory "D:/docs">
>>>>     Options Indexes FollowSymLinks
>>>>     AllowOverride None
>>>>     Order allow,deny
>>>>     Allow from all
>>>> </Directory>
>>>>
>>>>
>>>> <IfModule dir_module>
>>>>     DirectoryIndex index.html
>>>> </IfModule>
>>>>
>>>>
>>>> John
>>>>
>>>> Igor Cicimov wrote:
>>>>> 404 means "file not found" which means you don't have any index.html
>>>>> file
>>>>> in
>>>>> the other folders you try to access.
>>>>>
>>>>> On Thu, Oct 8, 2009 at 5:58 AM, jwberger <jwberger28@xxxxxxxxxxx>
>>>>> wrote:
>>>>>
>>>>>> I am having an issue with the DirectoryIndex. We have it set as
>>>>>> DirectoryIndex index.html  We have a site the runs at
>>>>>> https://www.site.com
>>>>>> .
>>>>>> When we hit that site as shown it comes up fine because there is an
>>>>>> index.html file there.  However, if we go further down to
>>>>>> http://www.site.com/tpg or http://www.site.com/tpg/docfiles/online
>>>>>> either
>>>>>> with or without the ending /, we get a 404 error.  I have tried
>>>>>> moving
>>>>>> the
>>>>>> DirectoryIndex to different areas of the conf file but cannot get it
>>>>>> to
>>>>>> work.  I know this is probably very basic, but I just cannot figure
>>>>>> it
>>>>>> out.
>>>>>> Thanks for any assistance.
>>>>>>
>>>>>> John
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/Issue-with-DirectoryIndex-tp25792416p25792416.html
>>>>>> Sent from the Apache HTTP Server - Users mailing list archive at
>>>>>> Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> The official User-To-User support forum of the Apache HTTP Server
>>>>>> Project.
>>>>>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>>>> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>>>>>>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>>>>>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>>>>>
>>>>>>
>>>
>>> ---------------------------------------------------------------------
>>> The official User-To-User support forum of the Apache HTTP Server
>>> Project.
>>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>>> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>>>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>>
>>>
>>>
>> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Issue-with-DirectoryIndex-tp25792416p25822187.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux