Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th July 2009, 02:01
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 133
Thanks: 2
Thanked 7 Times in 7 Posts
Default How to list a directory with no html file

I have a directory on my web server that I have a bunch of drivers on, I dont want to make a page for them I just want to be ale to give the address out, like www.mydomain.com/some/directory/withfileshere

and have it just list all the files there and when someone clicks on of them it initiates a download. Right now If I try that I get a permission denied, I'm assuming because the directory does not have a html page to display?
Reply With Quote
Sponsored Links
  #2  
Old 9th July 2009, 11:54
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

You have to enable indexing for this vhost, e.g. by adding something like this to the apache directives field:

<Directory /var/www/client1/web8/web>
Options +Indexes
</Directory>

The path must match the directory path of this web.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 9th July 2009, 23:19
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 133
Thanks: 2
Thanked 7 Times in 7 Posts
Default

I tried this and it still don't work. I keep getting this:

Code:
ERROR 403 - Forbidden!
The following error occurred:

You are not permitted to access the requested URL.

Please contact the webmaster with any queries.
Please help, as I need this working as well.

--Steve
Reply With Quote
  #4  
Old 10th July 2009, 00:05
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 133
Thanks: 2
Thanked 7 Times in 7 Posts
Default

I'm really trying to figure this out on my own and it is getting very frustrating. So i disabled all options in ISPConfig for the site I'm trying to get to work. Then I enabled everythign I need for this site, and under the apache directives I have this:

Code:
<Directory /var/www/clients/client1/web1/web>
Options Indexes
</Directory>
I've tried with the plus and without, I think I dont need the plus since nothing is in the directives. I cannot see what is wrong here.
Reply With Quote
  #5  
Old 10th July 2009, 02:04
voidzero voidzero is offline
HowtoForge Supporter
 
Join Date: Mar 2009
Posts: 63
Thanks: 11
Thanked 3 Times in 3 Posts
Default

Is the directory set to mode 755?
Reply With Quote
  #6  
Old 10th July 2009, 02:37
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 133
Thanks: 2
Thanked 7 Times in 7 Posts
Default

Yes it is, I even did 777 for good measure:
Code:
drwxr-xr-x  3 web2 client1    4096 2009-07-06 06:40 usb
Here is the error message in the log file:
Code:
[Thu Jul 09 16:22:02 2009] [error] [client 71.243.221.161] client denied by server configuration: /var/www/exeba.com/web/usb
Here is the vhost file for this site:
Code:
<Directory /var/www/exeba.com>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost *:80>
      DocumentRoot /var/www/exeba.com/web

    ServerName exeba.com
    ServerAlias www.exeba.com
    ServerAdmin webmaster@exeba.com

    ErrorLog /var/log/ispconfig/httpd/exeba.com/error.log

    ErrorDocument 400 /error/400.html
    ErrorDocument 401 /error/401.html
    ErrorDocument 403 /error/403.html
    ErrorDocument 404 /error/404.html
    ErrorDocument 405 /error/405.html
    ErrorDocument 500 /error/500.html
    ErrorDocument 503 /error/503.html
        
    <Directory /var/www/exeba.com/web>
        Options FollowSymLinks
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        
        # ssi enabled
        AddType text/html .shtml
        AddOutputFilter INCLUDES .shtml
        Options +Includes
    </Directory>
    <Directory /var/www/clients/client1/web2/web>
        Options FollowSymLinks
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,denyAllow from all  
        
        # ssi enabled
        AddType text/html .shtml
        AddOutputFilter INCLUDES .shtml
        Options +Includes
    </Directory>

    # cgi enabled
        <Directory /var/www/clients/client1/web2/cgi-bin>
      Order allow,deny
      Allow from all  
    </Directory>
    ScriptAlias  /cgi-bin/ /var/www/clients/client1/web2/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl 
    # suexec enabled
    SuexecUserGroup web2 client1
    # php as fast-cgi enabled   
    <Directory /var/www/exeba.com/web>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /var/www/php-fcgi-scripts/web2/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride all
        Order allow,deny 
        Allow from all   
    </Directory>

<Directory /var/www/clients/client1/web2/web/usb>
Options Indexes
</Directory>   
</VirtualHost>
Any ideas?????
Reply With Quote
  #7  
Old 10th July 2009, 11:11
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

You missed to add the code that I posted above. As your path is /var/www/exeba.com/web
, just add this to the apache directives field:

<Directory /var/www/exeba.com/web>
Options +Indexes
</Directory>
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 10th July 2009, 11:35
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 133
Thanks: 2
Thanked 7 Times in 7 Posts
 
Default

I did this and still nothing. Here is the vhost file:
Code:
     </Files>
    </Directory>
    <Directory /var/www/clients/client1/web2/web>
        Options FollowSymLinks
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all

        # ssi enabled
        AddType text/html .shtml
        AddOutputFilter INCLUDES .shtml
        Options +Includes
        <Files ~ '.php[s3-6]{0,1}$'>
            Order allow,deny
            Deny from all
            Allow from none
        </Files>
    </Directory>

    # cgi enabled
        <Directory /var/www/clients/client1/web2/cgi-bin>
      Order allow,deny
      Allow from all
    </Directory>
    ScriptAlias  /cgi-bin/ /var/www/clients/client1/web2/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    # suexec enabled
    SuexecUserGroup web2 client1

<Directory /var/www/exeba.com/web>
Options +Indexes
</Directory>
</VirtualHost>
One thing I do see and not sure if it by design or what, but in /var/www/ there is the actual website name, and then /clients/client1/web# wiht the same sites, would that have anything to do with it? Do I need to tell it the Directive for each path to that site???

Here is the error.log for the latest change...
Code:
10 01:28:29 2009] [error] [client 76.83.21.252] client denied by server configuration: /var/www/exeba.com/web/index.php
10 01:28:33 2009] [error] [client 76.83.21.252] client denied by server configuration: /var/www/exeba.com/web/usb/index.php 
10 01:28:36 2009] [error] [client 76.83.21.252] client denied by server configuration: /var/www/exeba.com/web/usb/index.php 
10 01:28:39 2009] [error] [client 76.83.21.252] client denied by server configuration: /var/www/exeba.com/web/usb/index.php 
10 01:28:40 2009] [error] [client 76.83.21.252] client denied by server configuration: /var/www/exeba.com/web/usb/index.php 
10 01:28:40 2009] [error] [client 76.83.21.252] client denied by server configuration: /var/www/exeba.com/web/usb/index.php 
10 01:28:40 2009] [error] [client 76.83.21.252] client denied by server configuration: /var/www/exeba.com/web/usb/index.php 
10 01:28:41 2009] [error] [client 76.83.21.252] client denied by server configuration: /var/www/exeba.com/web/usb/index.php 
10 01:28:41 2009] [error] [client 76.83.21.252] client denied by server configuration: /var/www/exeba.com/web/usb/index.php 
10 01:28:41 2009] [error] [client 76.83.21.252] client denied by server configuration: /var/www/exeba.com/web/usb/index.php
Not sure what the index.php file is???
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
can't help ispconfig to install please help steve51184 Installation/Configuration 17 20th February 2009 11:37
add web site serr57 Installation/Configuration 18 13th April 2008 12:40
directories in /home/admispconfig/ispconfig renamed? Spudchat General 10 12th April 2007 20:37
[ISPconfig Install] Cannot allocate memory Cordoban Installation/Configuration 3 25th August 2006 14:20
Debian install error jf1976 Installation/Configuration 25 19th January 2006 23:31


All times are GMT +2. The time now is 01:08.


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