#1  
Old 16th July 2011, 17:13
mitho7 mitho7 is offline
Member
 
Join Date: Apr 2007
Posts: 33
Thanks: 4
Thanked 1 Time in 1 Post
Default DirectoryIndex problem

Hello Friends,

I'm using Debian GNU/Linux 6.0.2 (squeeze) and Apache 2.2. I have set the virtual hosting as per the example http://www.debian-administration.org/articles/412.

My site comes if i type full url (www.example.com/index.html) but if i do not use index.html (www.example.com/) comes up page cannot display. I have default site set up which works ok. if i type the ip address (http://192.168.1.3/) it can read the index.html.

I have dir module loaded. also have set up the DirectoryIndex index.html

dir.conf:

Code:
<IfModule mod_dir.c>

          DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm

</IfModule>
under sites-available i have default:
Code:
<VirtualHost *>
        ServerName no_vhost_entry:80
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/html/default

        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/html/default>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride Limit
                Order allow,deny
                allow from all
        </Directory>

        <IfModule mod_headers.c>
                Header set Cache-Control no-cache
        </IfModule>

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ErrorLog /var/log/apache2/error.log
</VirtualHost>
under sites-available i have www.example.com:
Code:
<VirtualHost *>
        ServerAdmin webmaster@example.com
        ServerName  www.example.com
        ServerAlias example.com

        # Indexes + Directory Root.
        DirectoryIndex index.html
        DocumentRoot /home/www/www.example.com/htdocs/

        # CGI Directory
        ScriptAlias /cgi-bin/ /home/www/www.example.com/cgi-bin/
        <Location /cgi-bin>
                Options +ExecCGI
        </Location>


        # Logfiles
        ErrorLog  /home/www/www.example.com/logs/error.log
        CustomLog /home/www/www.example.com/logs/access.log combined
</VirtualHost>
Just want to get some light here

Thanks,
Bip
__________________
--
Bip
www.makeonlineshop.com
Reply With Quote
Sponsored Links
  #2  
Old 17th July 2011, 11:37
mitho7 mitho7 is offline
Member
 
Join Date: Apr 2007
Posts: 33
Thanks: 4
Thanked 1 Time in 1 Post
Default

i feel so stupid now. it is working fine. It's my browser mozilla, i clear the cache and working ok.
__________________
--
Bip
www.makeonlineshop.com
Reply With Quote
The Following User Says Thank You to mitho7 For This Useful Post:
falko (17th July 2011)
  #3  
Old 23rd July 2011, 12:16
eyeoncomputers eyeoncomputers is offline
Junior Member
 
Join Date: May 2011
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

For what it's worth, I have had times where there were i would get "permission denied", even though i thought everything was set up correctly. Only to find out i had the wrong selinux context set on my index file. This is a nook that can often be a hard one to check because may forget about it -- although it not directly related to your issue i am in hope that someone would read this thread one day and use this bit of info to solve their problem
__________________
Solaris ZFS How To
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TLS Problem admins Installation/Configuration 1 19th September 2009 10:55
ERROR- Connection dropped by imap-server Al1937 Installation/Configuration 10 4th September 2009 21:15
Problem with mail and plugin djmostek Installation/Configuration 10 3rd September 2007 21:12
postfix mysql on fedora core5 igongora Installation/Configuration 7 17th April 2007 04:40
SMTP TLS Problem with Mail Client dschmid Installation/Configuration 1 9th December 2005 01:56


All times are GMT +2. The time now is 20:43.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.